|
| 21 Mar 2014 05:54 PM |
I'm not too bad at scripting but this time I need some help. I need a script that makes a part invisible but makes it visible when a player is just 10 studs away...I already made the rest of my script... |
|
|
| Report Abuse |
|
|
yurhomi10
|
  |
| Joined: 10 Dec 2008 |
| Total Posts: 13886 |
|
| |
|
|
| 21 Mar 2014 05:56 PM |
LocalScript in starterGui Define player as game.Players.LocalPlayer repeat wait() until player.Character Then use a while loop,checking the magnitude between the part and the char torso
Have the part in currentcamera,instead of workspace |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 21 Mar 2014 05:58 PM |
| You could use magnitude or have a thin part in a 10 stud diameter of the part with a touched event. |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Mar 2014 06:01 PM |
Ill do some of it for you.
ConditionsOfFunction:connect(function(newP)) game.Workspace.Part.Transparecy = 1.0 elseif ConditionsForUnInvisibleHere end) |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 21 Mar 2014 06:11 PM |
| ^Dude, that had almost nothing to do with what he was asking. Given, it's relevant, but he asked how to make a part invisible *in a 10 stud radius*. I highly doubt you telling him that a condition and an event and a change of property is going to help him learn that. |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 06:18 PM |
ok dude so if you read my instructions and are stupid enough to not undertsand it shutup now listen
he changes condition of function
changes condition of when to be visible
and my script works
bam boom wadabamalama |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 06:20 PM |
| You're horrible at explaining things McChicken. |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 06:20 PM |
| i know but i gave him it he just needs to follow my instructions RIGHTly NOT WRONGly |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 06:32 PM |
| You didn't even write the script right. You didn't have an end for the if statement, just for the anonymous function. |
|
|
| Report Abuse |
|
|
wixoa
|
  |
| Joined: 23 Dec 2011 |
| Total Posts: 28 |
|
|
| 21 Mar 2014 07:12 PM |
while wait() do P1 = Workspace.Part Player = game.Players.Player1 distance = (P1.Position - Player.Character.Torso.Position).magnitude if distance < 10 then P1.Transparency = 1 else P1.Transparency = 0 end end |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 08:10 PM |
| While you guys were arguing, I went off and made one myself. Thanks for the attempts though, I appreciate it. This forum post shall now hereby be closed. |
|
|
| Report Abuse |
|
|