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: Just a bit of help...very easy...

Previous Thread :: Next Thread 
Omnisxiii2 is online. Omnisxiii2
Joined: 03 Mar 2012
Total Posts: 542
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 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
21 Mar 2014 05:55 PM
magnitude
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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 is not online. 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
Omnisxiii2 is online. Omnisxiii2
Joined: 03 Mar 2012
Total Posts: 542
21 Mar 2014 05:59 PM
Okay.
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
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 is not online. 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
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
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
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
21 Mar 2014 06:20 PM
You're horrible at explaining things McChicken.
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
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
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
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 is not online. 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
Omnisxiii2 is online. Omnisxiii2
Joined: 03 Mar 2012
Total Posts: 542
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
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