KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 20 Dec 2013 10:47 PM |
local script inside text button inside frame nside ScreenGui.
script.Parent = UDim2.new(.3,0,.5,0) player = game.Players.LocalPlayer mouse = player:GetMouse()
mouse.MouseButton1Click:connect(function() game.Lighting.Grenade:Clone().Parent = player.Backpack script.Parent.Parent:destroy() script.Parent:destroy() end)
It does not do anything, please fix it |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 10:48 PM |
script.Parent = UDim2.new(.3,0,.5,0) I dont even know where to start... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Dec 2013 10:48 PM |
"script.Parent = UDim2.new(.3,0,.5,0)" Makes no sense, do you want to set the Position or the Size? So you would do: script.Parent.Position (or Size) = UDim2.new(0.3,0,0.5,0)
it should be: mouse.Button1Click, not mouse.MouseButton1Click |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 20 Dec 2013 10:49 PM |
| Hmmm but MouseButton has worked in past.... |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 10:50 PM |
| MouseButton1Down is for TextButton/ImageButton objects, not mouse objects. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 20 Dec 2013 10:51 PM |
| wazap, I forgot position, is that SO much to make you lose your mind? >_> |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 20 Dec 2013 10:57 PM |
| Thanks! It's fixed! I love you guys! |
|
|
| Report Abuse |
|
|