Search
 
SCRIPT & CODE EXAMPLE
 

LUA

luau kill brick script

local killBrick = -- index your kill brick here

local function onTouched(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if humanoid == nil then return end
	
	humanoid:TakeDamage(humanoid.MaxHealth)
    -- doesn't kill if a ForceField is guarding the Character
end

killBrick.Touched:Connect(onTouched)
Comment

PREVIOUS NEXT
Code Example
Lua :: how to print hello in lua 
Lua :: roblox difference between __index and __newindex 
Lua :: rgb to hex lua 
Lua :: luau how to loop through all players 
Lua :: roblox part tween 
Lua :: Pass values to functions from Onclicks roblox 
Lua :: roblox studio lua for loop 
Lua :: random brick colour in roblox studio 
Lua :: lua in pairs 
Lua :: roblox how to get the players mouse 
Lua :: localplayer lua 
Lua :: replace part of string lua 
Lua :: how to print in lua 
Lua :: check if player owns gamepass 
Lua :: wait for player character roblox 
Lua :: lua string to binary 
Lua :: lua random numbers printing 
Lua :: 1.2 / 1.6 
Lua :: check if play is in group 
Lua :: how to detect collision in roblox studio 
Matlab :: matlab number to string 
Matlab :: matlab if bigger than 
Basic :: mongodb command remove by _id 
Basic :: add firefox 
Elixir :: elixir ecto query to sql 
Elixir :: create new project phoenix 
Scala :: foreach batch spark scala 
Actionscript :: microsoft.visualstudio.web.codegeneration.design 3.1.0 
Excel :: google sheets if 
Perl :: perl hash ref create 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =