yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 20 Jun 2014 04:08 AM |
-- Trying to make the gui move with the mouse. wat do?
script.Parent.MouseHoverEnter:connect(function(Player) Player.PlayerGui.InteractGui.Frame.Visible = true Player.PlayerGui.InteractGui.Frame.Label.Text = script.Parent.Parent.Name end)
script.Parent.MouseHoverLeave:connect(function(Player) Player.PlayerGui.InteractGui.Frame.Visible = false end) -----------PROBLEM local Player = Game.Players.LocalPlayer local Mouse = Player:GetMouse() Mouse.Button1Down:connect(function() Player.PlayerGui.InteractGui.Frame.Position = Mouse.Position
end)
|
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 20 Jun 2014 04:23 AM |
maybe Mouse.Position.x,Mouse.Position.y
idk man I aint neva done this stuff before. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 05:06 AM |
whttt Player.PlayerGui.InteractGui.Frame.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y) -- u nob stop stealing my code |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 20 Jun 2014 12:22 PM |
put this under local Player = Game.Players.LocalPlayer
if Player ~= nil then
also I think you need to move some things around. |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 20 Jun 2014 12:45 PM |
| ... There's a property that allows you to drag the gui... in game... |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 20 Jun 2014 12:46 PM |
| Player.PlayerGui.InteractGui.Frame.Position = UDim2.new(0,Mouse.X,0,Mouse.Y) |
|
|
| Report Abuse |
|
|