|
| 24 Oct 2014 03:53 PM |
I posted a thread before like this but I messed up on it, here's the actual one
function onClick() local weGui = Instance.new("SurfaceGui",script.Parent) weGui.Face = "Top" local teGui = Instance.new("TextLabel",script.Parent.SurfaceGui) teGui.BackgroundTransparency = 1 teGui.Position = UDim2.new(0.34, 0, 0.3, 0) teGui.Size = UDim2.new(0, 250, 0, 100) end
script.Parent.MouseButton1Down:connect(onClick)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Oct 2014 04:06 PM |
| MouseButton1Down is for Gui's... |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2014 04:06 PM |
@Oscar That explains it I guess :L What would I use for a part? |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2014 04:08 PM |
| Insert a ClickDetector into the part and use MouseClick instead of MouseButton1Down |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2014 04:09 PM |
| Forgot to mention, put the script in the ClickDetector |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2014 04:20 PM |
@Oscar
Doesn't work, I made sure to change the parents and everything. |
|
|
| Report Abuse |
|
|
| |
|
Tomarty
|
  |
| Joined: 08 Dec 2008 |
| Total Posts: 591 |
|
|
| 24 Oct 2014 04:21 PM |
| use MouseClick instead of MouseButton1Down |
|
|
| Report Abuse |
|
|
| |
|
| |
|