generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help

Previous Thread :: Next Thread 
yankeejr is not online. 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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 04:09 AM
bump
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 04:13 AM
Again
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 04:17 AM
Please
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 04:18 AM
Help
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 04:20 AM
Please Help
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 04:22 AM
Help Please
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
20 Jun 2014 04:23 AM
maybe Mouse.Position.x,Mouse.Position.y

idk man I aint neva done this stuff before.
Report Abuse
narbfaic2014 is not online. narbfaic2014
Joined: 31 Mar 2014
Total Posts: 384
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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 10:21 AM
Player is 'a nil value'
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 12:27 PM
next in line please!
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
20 Jun 2014 12:41 PM
please!
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
20 Jun 2014 12:45 PM
... There's a property that allows you to drag the gui... in game...
Report Abuse
jakej78b is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image