Search
 
SCRIPT & CODE EXAMPLE
 

LUA

how do you find a humanoid in roblox

-- Player = Stores stuff like you UserId. Its you!- Developers have access to like purchases and so
-- Character = How you look like - The Model in your Workspace
-- Humanoid = A little Robot inside the Character that Holds Values like your Health or WalkSpeed

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(Character)
		local Humanoid = Character:FindFirstChild("Humanoid")
		print(Character.Name)
		print(Humanoid.Health)
	end)
end)
Comment

finding humanoid roblox. part

local brick = script.parent

brick.Touched:Connect(function(player)
    local humanoid = player.parent:FindFirstChildWichIsA("Humanoid")
    --do anything here you want
Comment

PREVIOUS NEXT
Code Example
Lua :: lua concatenation 
Lua :: Set core GUI Roblox 
Lua :: ex: CFrame to vector3 roblox lua 
Lua :: random number genarator 
Lua :: how to make a day/night script roblox 
Lua :: Get Nearest Player fivem 
Lua :: what is lua programming language 
Lua :: lua remove duplicates from table 
Lua :: lua how to print NUMBER 
Lua :: In range loop 
Lua :: roblox part touched 
Matlab :: matlab how to set figure size so you can see plot 
Matlab :: log base 10 matlab 
Matlab :: matlab label size 
Matlab :: matlab what comes instead of drawmode 
Basic :: mongodb command remove by _id 
Basic :: convert c++ code to c online 
Basic :: visual basic excel freeze first row 
Elixir :: elixir write base64 to file 
Elixir :: phoenix run test 
Scala :: print hello world in scala 
Scala :: How to have scalable images using image view xamarin XML 
Actionscript :: Create menu group in Maximo 
Excel :: convert number to date in excel 
Perl :: perl variables 
Pascal :: exceptions in pascal 
Powershell :: start-process pwsh 
Clojure :: clojure def 
Assembly :: json vulnerabilities 
Assembly :: re optional 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =