|
| 05 Dec 2012 07:01 PM |
I am a new script creator. I am REALLY attempting to learn, my friend understand it MUCH better then I do. So usually she does the scripting on my games for me, but I can't get a hold of her recently and I need this script badly for my game. I know you guys don't give out the scripts, even some explanation would be awesome, heck. Does it even work?
What I Need: You know those gear giver's? (usually the guns in war games) Well I need a object the humanoid touches and it shows a GUI (I already have the GUI made) I just don't know how to create an object to make the GUI appear on the screen...Other problem. When the Humaniod gets a certain range from the giver (or the room) the GUI disappears. I have seen it happen. Not sure if it can be done. If you want more detail PLEASE PM me I reply to all, and I could really use some help from you advanced scripter's!
|
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:03 PM |
| do you have an understanding of geometry, and algebra? |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 05 Dec 2012 07:04 PM |
Oh my gosh.. I think you need to take it slow, and learn what there is to know before you start stuff like this. You'll need to know, events, methods, variables, functions, and how to set properties before you attempt any of this. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:09 PM |
I am in Algebra I, I understand geometry better then anyone in my class.
My friend usually does this. I know this is to advanced for me, that's why I was hoping, even though it's kind of flexing the rules, for someone to post the script here. Or tell me who to go to. |
|
|
| Report Abuse |
|
|
Nagrath1
|
  |
| Joined: 27 Aug 2011 |
| Total Posts: 42 |
|
|
| 05 Dec 2012 07:13 PM |
enabled = true SetCooldown = ### --- Insert the Cooldown over these hashtags.
function onTouched(part) if not enabled then return end enabled = false local h = part.Parent:findFirstChild("Humanoid") if (h ~=nil) then end wait(0.03) game.Lighting:findFirstChild("INSERT NAME OF TOOL HERE"):clone().Parent = game.Players:findFirstChild(part.Parent.Name).Backpack script:findFirstChild("INSERT NAME OF THE GUI HERE!"):clone().Parent = game.Players:findFirstChild(part.Parent.Name).PlayerGui wait(SetCooldown) enabled = true end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:14 PM |
| ok, thanks. I will tell you if it works in a min or so. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:15 PM |
beforehand, you may want to do a few smaller scale demonstrations of these in order to get a proper understanding on what you're doing. Scripting isn't always putting strings of code together~it's also about connecting them in a logical way.
to tell distance between two blocks in studs:
(part1.Position - part2.Position).magnitude
to make a gui dissappear (also works on all guis' children):
PlayerGui.ScreenGui.GuiName.Active = false --true for visible, false is invisible.
to detect a brick being touched, hit being the part that touched it:
part.Touched:connect(function(hit) --stuff end) |
|
|
| Report Abuse |
|
|
Nagrath1
|
  |
| Joined: 27 Aug 2011 |
| Total Posts: 42 |
|
|
| 05 Dec 2012 07:16 PM |
Kesin, you don't need to slow down to make a GUI giver out of a Tool Giver. ._.
|
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 05 Dec 2012 07:17 PM |
You do if you want to learn anything. The more she knows, the less she'll struggle. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:19 PM |
| well yeah, I know that. The magnitude thing however, I think it does. Since she is asking for it to disappear after the player walks away from the part the player's touched, I'd say it'd be best to take it slow. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:19 PM |
| I wish I only had more time to learn, really. Oh and I placed the script in about to test it.... |
|
|
| Report Abuse |
|
|
Nagrath1
|
  |
| Joined: 27 Aug 2011 |
| Total Posts: 42 |
|
|
| 05 Dec 2012 07:19 PM |
The more you pointlessly test things, the more you get confused and forget things. The more you test unimportant things, the more you get off-based.
Fries are done. |
|
|
| Report Abuse |
|
|
Xlaive
|
  |
| Joined: 25 Aug 2012 |
| Total Posts: 97 |
|
|
| 05 Dec 2012 07:19 PM |
| I believe the Active property only covers mouse events, Visible is what you'd want. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:22 PM |
^what he said
also, how is it pointless if it's for educating someone on something they admit they're bad in? Seems relevant to me. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:28 PM |
| I just don't have time, my parents see this as a video game. Not as a educational one. This could really help me with my Algabra, so I pass and when I get to high school I go to either advanced Algabra or geometry! Sorry to disipoint how dumb I am at scripting D: |
|
|
| Report Abuse |
|
|
Xlaive
|
  |
| Joined: 25 Aug 2012 |
| Total Posts: 97 |
|
|
| 05 Dec 2012 07:32 PM |
| The level of math you're in doesn't affect your scripting abilities. Sure, having backgrounds on certain math-related subjects would help, however, like how you learned them in school, you would just have to try learning it, but by yourself. |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 07:34 PM |
| I will attempt. Maybe in the summer time, but believe it or not in NYC (my home) there is many scripting class's. Maybe not for Lua, but for scripting and computer science in general, might think about getting involved in that. |
|
|
| Report Abuse |
|
|