Search
 
SCRIPT & CODE EXAMPLE
 

LUA

how to kill humanoid with click detector roblox

--Kill a humamanoid in Lua. Grepper doesn't support Lua so this is set to "Whatever"
game.Players.PlayerAdded:Connect(function(player) -- gets player
local detector = --Add detector here
local function onClicked()
	player.Character.Humanoid.Health = 0 --or whatever you want it to be
    --optional more code
end
	detector.MouseClick:Connect(onClicked)
end)
Comment

PREVIOUS NEXT
Code Example
Lua :: wait for player character roblox 
Lua :: lua string replace 
Lua :: lua print table 
Lua :: table in lua 
Lua :: rhyme api 
Lua :: roblox get how many players in server 
Lua :: roblox format string 
Lua :: when do true loop on roblox lua 
Lua :: how to make auto scroll roblox 
Lua :: lua math.random 
Lua :: <font color="" roblox 
Lua :: roblox for loop 
Matlab :: if directory exist matlab 
Matlab :: matlab if not true 
Matlab :: matlab complex numbers 
Matlab :: two return variables in matlab 
Basic :: mongodb command remove by _id 
Basic :: how to capture link cefsharp 
Basic :: visual basic non modal message box 
Elixir :: elixir list map key string to atom 
Elixir :: elixir enum chunk_by 
Scala :: new scala project 
Scala :: scala string get char 
Excel :: google sheets stack columns vertically 
Excel :: select full column in excel 
Perl :: difference between @ and $ in perl 
Pascal :: function in pascal 
Gdscript :: godot get global position 3 
Abap :: the interface between the abap dictionary and the underlying database management system 
Assembly :: discord bot remove message 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =