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: anchor script

Previous Thread :: Next Thread 
eaglemaneagle is not online. eaglemaneagle
Joined: 11 Dec 2010
Total Posts: 2510
16 Sep 2012 08:03 AM
game.Players.PlayerAdded:connect(function(player)

If game.Workspace.Part.Anchored = false then

game.Workspace.Part.Anchored = true

end

end

game.Workspace.Part.Anchored = false


So what the script is "SUPPOSED" to do is Anchor everything in Workspace that is named Part. I havent tested it but before I do maybe you could find some errors for me?
Report Abuse
eaglemaneagle is not online. eaglemaneagle
Joined: 11 Dec 2010
Total Posts: 2510
16 Sep 2012 08:04 AM
game.Players.PlayerAdded:connect(function(player)

If game.Workspace.Part.Anchored = false then

game.Workspace.Part.Anchored = true

end

end

Report Abuse
eaglemaneagle is not online. eaglemaneagle
Joined: 11 Dec 2010
Total Posts: 2510
16 Sep 2012 08:06 AM
fix, game.Players.PlayerAdded:connect(function(player)

If game.Workspace.Part.Anchored = false then

game.Workspace.Part.Anchored = true

end

end


script.game.Workspace:connect.PlayerAdded

Report Abuse
usama8800 is not online. usama8800
Joined: 29 Dec 2009
Total Posts: 225
16 Sep 2012 08:16 AM
there are many error but im not telling them. WHY did you post this if u DIDNT TRY
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
16 Sep 2012 08:25 AM
u stuped idot. u maik some easy eror
Report Abuse
centraltrains is not online. centraltrains
Joined: 18 May 2010
Total Posts: 1331
16 Sep 2012 09:05 AM
1. ifs need an ==
b. I think the player added function is diffrent
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
16 Sep 2012 09:07 AM
The playeradded event is fine - but are you wanting the player to be anchored when their character spawns? what you want, after the playeradded event, is characteradded (I think it's that, go into the Object browser (Help -> Object browser) to check)
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