> game.Players.PlayerAdded:connect(function(plr) wait() plr.Humanoid.NameDisplayDistance = 0 plr.Humanoid.HealthDisplayDistance = 0 wait(5) script.Parent.Script:Destroy() end)
In starterpack, the only output is I get is "Something unexpectedly tried to set the parent of to NULL while trying to set the parent of . Current parent is Backpack."
Do this instead:
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:Wait() - wait for character to be added in plr.Humanoid.DisplayDistanceType = "None" -- ain't nobody viewing le display!!1! mwahwaha wait(5) script.Parent:Destroy()
Your real problem was
script.Parent.Script:Destroy() -- the second "Script" is useless --[[ INSTEAD DO --]] script.Parent:Destroy() -- or script:Destroy()
Also... why exactly is this in a tool?
make sure to put this is startercharacterscripts
local player = game.Players.LocalPlayer local playerpart = game.Workspace:WaitForChild(player.Name) local human = playerpart.Humanoid human.NameDisplayDistance = 0 human.HealthDisplayDistance = 0
Final script:
script.Parent.Humanoid.DisplayDistanceType = "None" wait(10) script:Destroy()