Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Respawn Button Tutorial for Roblox Studio 2022-- (this is a remake, since i knew it was an instant respawn for my other script)
- 1. Right Click anywhere on the screen. Then a GUI Called "insert object" will show. Search "Model" Then click on the Plus Sign. Search "Part" then click on it (I dont know if it will work tho)
- 2. Put a ClickDetector in the Part (if you dont know how put your mouse on the object and click the plus symbol)
- 3. Name the ClickDetector "Click" (This is optional. You dont need to put a name or put if you want)
- 4. Insert a "Script" in the part
- 5. Copy and paste the script (Test this and see if it works)
- local a = script.Parent.Parent.Cart:Clone
- local deb = false
- function chng()
- if deb == true then return end
- deb = true
- local new = a:clone()
- new.Parent = script.Parent.Parent
- new:MakeJoints()
- script.Parent.BrickColor = BrickColor.new(21)
- wait()
- script.Parent.BrickColor = BrickColor.new(28)
- deb = false
- end
- script.Parent.Click.MouseClick:Connect(chng)
- 6. After that, Close the script. Then add the thing you want for respawning
- 7. Insert it in the Model.
- (Note: I dont think it will work with cars)
- Try and see if it works:)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement