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
 

How does this work? e.e

Previous Thread :: Next Thread 
JohnElijah is not online. JohnElijah
Joined: 06 May 2009
Total Posts: 1629
03 Sep 2013 03:29 AM
Well i've been trying to fix this but i've ran out of ideas. This is a script that happens when the mouse "hovers" on the block.

while wait() do
local pla=game.Players:GetChildren()
for i =1,#pla do
local mouse = pla[i]:GetMouse()
if pla[i].mouse.Target ~=nil then
if pla[i].mouse.Target == script.Parent then
print 'Done'
script.Parent:remove()

end
end
end
end
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
03 Sep 2013 03:41 AM
Or:

repeat wait() until game.Players.LocalPlayer ~= nil
player = game.Players.LocalPlayer
mouse = player:getMouse()

function mouseMoved(m)
-- BLAH
end

mouse.MouseMove:connect(mouseMoved)


that should work
Report Abuse
JohnElijah is not online. JohnElijah
Joined: 06 May 2009
Total Posts: 1629
03 Sep 2013 07:26 AM
20:25:06.501 - MouseMove is not a valid member of PlayerMouse
Report Abuse
xWOWZABOYx is not online. xWOWZABOYx
Joined: 05 Aug 2010
Total Posts: 2689
03 Sep 2013 07:42 AM
Just replying to this for future reference.

【◄[ϟ]〓☜✪ xWOWZABOYx; FCOM, SQN COM, Scientist, Veteran, Visionary ✪☞〓[ϟ]►】
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
03 Sep 2013 07:46 AM
I gave you this script, And I said it has to be in a script, in a brick, didn't I?
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