|
| 13 Jan 2015 02:49 PM |
If I want people to press on a GUI and put a hat on their character, do I use welding of something else?
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 02:54 PM |
Plz halp :<
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
MisBloxy
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 164 |
|
|
| 13 Jan 2015 03:05 PM |
| Just use a hat. there is nothing more to add. clone it, and parent it to a player's character. |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:18 PM |
You shouldn't need a local script if your using a gui just saying it's already what I would call 'semi-client sided'
Step 1: Put your hat in replicated storage
Step 2: Insert a script and put it inside the button
Step 3: Edit the script with the following code:
hat = game.ReplicatedStorage.hat -- edit 'hat' with the hat's name that's in repstorage player = script.Parent.Parent.Parent.Parent -- Ussing the button is found at starterGui > -- GUINAME > button
script.Parent.MouseButton1Click:connect(function() hat:Clone().Parent = game.Workspace:FindFirstChild(player.Name) end)
|
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:18 PM |
Doesnt work...
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:19 PM |
| Lol wut? I'm nearly 100% sure it does. |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:23 PM |
nearly, not near enough.
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:24 PM |
| put -- infront of button maybe? Don't see would could be wrong? Output error's? |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:25 PM |
Doesnt work. Thats all im saying... This too...
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:26 PM |
| No, you don't need to use welding. The hat has a TouchInterest instance or something inside of it, consequently the hat is automatically 'equipped'. |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:27 PM |
| Honestly I didn't read your problem I just saw on the other post you said "I have the same problem" so I just pasted my answer here. |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:28 PM |
@The, I want it so that you get a hat once you press a gui, not an actual ROBLOX hat...
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:31 PM |
| What kind of hat is it? A modeled hat, a re-textured hat? |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:32 PM |
A regular hat, one brick.
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:36 PM |
| Shouldn't matter then, if the part itself is named Handle, inside of a Hat... then the character should automatically wear it. |
|
|
| Report Abuse |
|
|