Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Touched:Connect(function(touch)
- if touch.Parent:FindFirstChild("Humanoid") ~= nil and touch.Parent:FindFirstChild("ForceField") == nil then
- local newff = Instance.new("ForceField")
- newff.Parent = touch.Parent
- newff.Visible = false
- end
- end)
- script.Parent.TouchEnded:Connect(function(touch)
- if touch.Parent:FindFirstChild("Humanoid") ~= nil and touch.Parent:FindFirstChild("ForceField") ~= nil then
- touch.Parent.ForceField:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement