|
| 16 Nov 2016 02:47 PM |
When somebody leaves the server in my game, their name is still there in their house.
Script: owner = script.Parent.OwnerName factoryBackup = script.Parent.Parent.RigBackUp factory = script.Parent stuff = factory.Stuff
if factoryBackup.Value == nil then
stuff.Fence.Value = factory.Fence:clone()
factory.Fence:remove()
factoryBackup.Value = script.Parent:clone()
end
wait(1) while script.Parent ~= nil do if owner.Value ~= "" then local navn = owner.Value leaver = game.Players:FindFirstChild(navn) if leaver == nil then local loc = script.Parent.Parent owner.Value = "" MajorReset = factoryBackup.Value:clone() script.Parent:remove() MajorReset.Parent = loc MajorReset:MakeJoints() end else print ("no owner") end wait(2) end (I copied and pasted it from the script) |
|
|
| Report Abuse |
|