InfMods

easy safezone roblox script

Sep 23rd, 2022
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. you can either make this a local script or just script
  2.  
  3. heres the safezone script:
  4.  
  5.  
  6. script.Parent.Touched:Connect(function(touch)
  7. if touch.Parent:FindFirstChild("Humanoid") ~= nil and touch.Parent:FindFirstChild("ForceField") == nil then
  8. local newff = Instance.new("ForceField")
  9. newff.Parent = touch.Parent
  10. newff.Visible = false
  11. end
  12. end)
  13. script.Parent.TouchEnded:Connect(function(touch)
  14. if touch.Parent:FindFirstChild("Humanoid") ~= nil and touch.Parent:FindFirstChild("ForceField") ~= nil then
  15. touch.Parent.ForceField:Destroy()
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment