Advertisement
JaseSous

Safe Zone Script (Roblox)

Feb 8th, 2020
6,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. script.Parent.Touched:Connect(function(touch)
  2. if touch.Parent:FindFirstChild("Humanoid") ~= nil and touch.Parent:FindFirstChild("ForceField") == nil then
  3. local newff = Instance.new("ForceField")
  4. newff.Parent = touch.Parent
  5. newff.Visible = false
  6. end
  7. end)
  8. script.Parent.TouchEnded:Connect(function(touch)
  9. if touch.Parent:FindFirstChild("Humanoid") ~= nil and touch.Parent:FindFirstChild("ForceField") ~= nil then
  10. touch.Parent.ForceField:Destroy()
  11. end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement