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

4 comments
that doesnt do anything lol
sorry, im not very good at scripting
i know i suck, please forgive me im trying to do the best i can ;-;
thanks for helping tho gg