Basically whenever I have a tool, I want the parent to be workspace. I've been testing and nothing has been working.
players=workspace.PLAYERS local player = game.Players.LocalPlayer local character = player.Character or player.Character:wait() game.Players.PlayerRemoving:connect(function(player) local f=character:GetChildren() for i=1,#f do if f[i].ClassName == "Tool" or f[i].ClassName == "Part" then -- the part that doesnt work f[i].Parent=workspace else end end local v=players.RED:GetChildren() for i=1,#v do if v[i].Value==player.Name then v[i].Value="" else end end local c=players.BLUE:GetChildren() for i=1,#c do if c[i].Value==player.Name then c[i].Value="" else end end end)
Thanks for all the help,
LukeGabrieI aka EnergyBrickz
Just do this
workspace:FindFirstChild("LukeGabrieI"):Find
What you did on the first line is wrong becuase you missed out game and plus Players shouldnt be all capital.
players = game.workspace.Players local player = game.Players.LocalPlayer local character = player.Character or player.Character:wait() game.Players.PlayerRemoving:connect(function(player) local f=character:GetChildren() for i=1,#f do if f[i].ClassName == "Tool" or f[i].ClassName == "Part" then -- the part that doesnt work f[i].Parent=workspace else end end local v=players.RED:GetChildren() for i=1,#v do if v[i].Value==player.Name then v[i].Value="" else end end local c=players.BLUE:GetChildren() for i=1,#c do if c[i].Value==player.Name then c[i].Value="" else end end end)