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 » Scripters
Home Search
 

Re: Would this work?

Previous Thread :: Next Thread 
kritiki is not online. kritiki
Joined: 12 Jul 2012
Total Posts: 12323
08 Aug 2015 02:31 PM
if game.Workspace.part.anchor = true then game.Workspace.part.anchor = false

The question is
If a block is lets say ANCHORED would it be unanchored using that script?
I understand how to manually unanchor but im slowly learning LUA
Report Abuse
kritiki is not online. kritiki
Joined: 12 Jul 2012
Total Posts: 12323
08 Aug 2015 02:33 PM
bump
Report Abuse
kritiki is not online. kritiki
Joined: 12 Jul 2012
Total Posts: 12323
08 Aug 2015 02:38 PM
would it?
Report Abuse
Funse is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
08 Aug 2015 02:40 PM
if workspace.part.Anchored then
workspace.part.Anchored = false
end
Report Abuse
ShadowEagle20 is not online. ShadowEagle20
Joined: 04 Feb 2012
Total Posts: 257
08 Aug 2015 02:47 PM
Yeah, just don't forget to put end at the end.
Report Abuse
kritiki is not online. kritiki
Joined: 12 Jul 2012
Total Posts: 12323
08 Aug 2015 02:56 PM
yay thanks guys!
Report Abuse
kritiki is not online. kritiki
Joined: 12 Jul 2012
Total Posts: 12323
08 Aug 2015 03:38 PM
also
when i type this in
if game.Workspace.part.anchor = true then game.Workspace.part.anchor = false it goes 2 spaces down and writes end is that fine?

end
Report Abuse
gangman67 is not online. gangman67
Joined: 04 Jun 2011
Total Posts: 798
08 Aug 2015 03:44 PM
yea but write it like this
if game.Workspace.part.anchor = true then
game.Workspace.part.anchor = false
end
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
08 Aug 2015 03:46 PM
if game.Workspace.part.anchor == true then --if statements need two equal signs
game.Workspace.part.anchor = false
end
Report Abuse
gangman67 is not online. gangman67
Joined: 04 Jun 2011
Total Posts: 798
08 Aug 2015 03:47 PM
^ yea I just copy and pasted his and fixed It I didnt realise it XD
Report Abuse
Burglered is not online. Burglered
Joined: 14 Jul 2011
Total Posts: 962
08 Aug 2015 03:47 PM
if (Workspace.part.Anchored == true) then
Workspace.part.Anchored = true
end

WE are together on the keyboard :P
Report Abuse
superduperturtle1 is not online. superduperturtle1
Joined: 09 Feb 2015
Total Posts: 14
08 Aug 2015 03:48 PM
I'm pretty sure this is useless.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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