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 » Scripting Helpers
Home Search
 

Re: Script that doesn't work.

Previous Thread :: Next Thread 
RookieTrooper is not online. RookieTrooper
Joined: 15 Jun 2009
Total Posts: 4572
20 Jul 2012 12:20 PM
SCRIPT IN WORKSPACE THAT DOESN'T WORK

function onPlayerLeaving(Player)
local x = game.Workspace:FindFirstChild("Home"..script.Parent.Parent.Parent.Parent.Name)
if not (x) then
return
else
x.Home:Remove()
x.Name = "Home"
wait(.5)
s = game.Lighting["Home"..script.Parent.Parent.Parent.Parent.Name]
s.Parent = x
s.Name = "Home"
end
end
game.Players.PlayerRemoving:connect(onPlayerLeaving)





SCRIPTED GUI BUTTON THAT DOES WORK




function onButtonClicked()
local x = game.Workspace:FindFirstChild("Home"..script.Parent.Parent.Parent.Parent.Name)
if not (x) then
return
else
x.Home:Remove()
x.Name = "Home"
wait(.5)
s = game.Lighting["Home"..script.Parent.Parent.Parent.Parent.Name]
s.Parent = x
s.Name = "Home"
end
end
script.Parent.MouseButton1Click:connect(onButtonClicked)

Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Jul 2012 12:23 PM
The top script won't work in Play Solo.
Report Abuse
RookieTrooper is not online. RookieTrooper
Joined: 15 Jun 2009
Total Posts: 4572
20 Jul 2012 12:24 PM
I tried it in multi-player, with an alt.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Jul 2012 12:25 PM
Output?
Report Abuse
RookieTrooper is not online. RookieTrooper
Joined: 15 Jun 2009
Total Posts: 4572
20 Jul 2012 12:27 PM
I'm sorry I'm not a very experienced scripter, how do I find the output?
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Jul 2012 12:36 PM
Well it depends. In Play Solo, you go View > Output, but if you're testing it in online mode you should make messages that signify checkpoints in your script.
Report Abuse
RookieTrooper is not online. RookieTrooper
Joined: 15 Jun 2009
Total Posts: 4572
20 Jul 2012 12:45 PM
Here is the model, maybe you'll have better luck finding the output.

http://www.roblox.com/Home-Door-item?id=87074716
Report Abuse
RookieTrooper is not online. RookieTrooper
Joined: 15 Jun 2009
Total Posts: 4572
20 Jul 2012 12:47 PM
I think maybe it's something on line 2.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Jul 2012 06:10 PM
Ok, I'll take a look.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Jul 2012 06:23 PM
I set everything up including the GUI and PlayerRemoving part and the door and it all worked fine, so I don't know what to tell you.
Report Abuse
RookieTrooper is not online. RookieTrooper
Joined: 15 Jun 2009
Total Posts: 4572
20 Jul 2012 06:51 PM
Can you set it up so I can see?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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