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
|
  |
| Joined: 12 Jul 2012 |
| Total Posts: 12323 |
|
| |
|
kritiki
|
  |
| Joined: 12 Jul 2012 |
| Total Posts: 12323 |
|
| |
|
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 |
|
|
|
| 08 Aug 2015 02:47 PM |
| Yeah, just don't forget to put end at the end. |
|
|
| Report Abuse |
|
|
kritiki
|
  |
| Joined: 12 Jul 2012 |
| Total Posts: 12323 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 08 Aug 2015 03:48 PM |
| I'm pretty sure this is useless. |
|
|
| Report Abuse |
|
|