generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Buyable house script is broken

Previous Thread :: Next Thread 
Wabblebabble123 is not online. Wabblebabble123
Joined: 12 Oct 2015
Total Posts: 546
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image