User:Matchlighter
From Roblox Wiki
Contents |
Matchlighter?
I play ROBLOX most everyday. You can usually find me online. I like to script and build. below I have several useful scripts that you can use in your places.
ROBLOX Places:
Travel Through the Computer Obby Course
Jet Wars!
Night Games: Capture the Glow Stick
Matchlighter MiniGames
NeighborHood Wars
Matchlighter Labs
Scripts:
To make a script open Roblox Studio then select view on the top bar and select Explorer if it is not already open. To insert a script select where you would like to insert it using Explorer or by simply clicking on the brick or model then select Insert on the top bar then select Script in the window that was just brought up. After you have done that double click on the script in the Explorer to open the script and edit it. After that simply copy and paste one of the following scripts or make your own.
Kill Script
Here is a simple but effective kill script: Simply put this script in a brick. When someone touches this brick they will die.
par = script.Parent
function ontouch(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h ~= nil then
h.Health = 0
end
end
par.Touched:connect(ontouch)
Break Joints Script
Here is a simple Break Joints script: Simply put this script in a brick. When someone touches they with an arm or a leg it will fall off but if some one touches it with there torso or head they will die.
par = script.Parent function ontouch(hit) hit:BreakJoints() end par.Touched:connect(ontouch)
Another kill script
To use this kill script place it in a model with some parts. All those parts are now deadly! This is a alternative to putting the kill script above because it does not cause as much lag and it is easier than adding a several kill scripts.
function ontouch(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h ~= nil then
h.Health = 0
end
end
local c = script.Parent:children()
for i=1, #c do
if c[i].className == "Part" then
c[i].Touched:connect(ontouch)
end
end



