Search
 
SCRIPT & CODE EXAMPLE
 

LUA

how to make a kill block in roblox

local part = script.Parent --Paste this in a script and put that script inside a part
local damage = 100 --Damage the part will do (100 = Instakill)
part.Touched:Connect(function(hit) --The function below will fire when the part is touched 
  --hit = the thing that touched the part
  local hum = hit.Parent:FindFirstChildWhichIsA("Humanoid") --checks if the thing that touched the part is a part of a player or anything that has a "Humanoid" 
  if hum then --if it was then the player will take 100 damage
     hum:TakeDamage(100)
  end
end)
Comment

how to make kill block in roblox lua

how to make kill part
Comment

PREVIOUS NEXT
Code Example
Matlab :: if directory exist matlab 
Matlab :: matlab read from txt file 
Matlab :: matlab get row from matrix 
Matlab :: matlab for loop matrix 
Matlab :: octave disable warning 
Matlab :: matlab symbolic set value 
Matlab :: matlab complex numbers 
Matlab :: print hello world n times in matlab 
Matlab :: Load .mat data in Matlab 
Matlab :: SAVE TABLE IN MATLAB 
Basic :: excel vba chck that the range is empty 
Basic :: how to capture link cefsharp 
Basic :: basic murmur hash function 
Elixir :: elixir catch 
Elixir :: elixir enum all 
Elixir :: liveview component 
Scala :: scala enum 
Scala :: reduce scala 
Actionscript :: how to resize a base64 image 
Excel :: google sheets select element after split 
Excel :: select full column in excel 
Perl :: perl 
Pascal :: pascal input format check 
Powershell :: call function powershell 
Clojure :: hello world in clojure 
Erlang :: erlang exit from shell 
Assembly :: discord bot edit message 
Assembly :: list all sensors android 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery unselect option 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =