Basically, what I need is when a value is true, it moves the tool to workspace (to fix the players arms instead of them being stuck in a position), then when the tool gets to workspace, it removes it from workspace.
script.Parent.Changed:connect(function()
if script.Parent.Value==true then
for i,v in pairs(game.Players:GetChildren()) do
local ball=v:FindFirstChild('LBA_Ball')
if v:findFirstChild('LBA_Ball') and ball.Parent.Court.Value==script.Parent.Parent.Name then
ball.Parent=workspace
if workspace.LBA_Ball.court.Value==script.Parent.Parent.Name then
workspace.LBA_Ball:Remove()
script.Parent.Value = false
end
end
end
end
end)
Sorry the code is so sloppy, the site is making it like divide up and stuff.
