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: how would I make a tool follow your mouse

Previous Thread :: Next Thread 
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 02:16 PM
before I posed about getting the Y from the camera position, blah, I was so stupid, The mouse's position is what I wanted the tool to follow.
anyways, what would I do for this?

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 02:26 PM
bump

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
FrozenSmite is not online. FrozenSmite
Joined: 17 Jul 2013
Total Posts: 2242
20 Oct 2013 02:26 PM
tool.Position = mouse.Hit.p

♫♪ repeat wait() until game.Players.FrozenSmite.HasALife == true ♪♫
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 02:28 PM
kthx

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 02:57 PM
it breaks the tool .-.

local Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
while true do
wait(0.1)
for index, child in pairs(script.Parent:GetChildren()) do
if child:IsA("BasePart") then
child.Rotation = Mouse.Hit.p
wait(0.1)
end
end
end

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
20 Oct 2013 02:59 PM
You need to CFrame with welds, just saiyan.

When life gives you lemons, get your engineers to invent combustible lemons - Cave Johnston
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 03:03 PM
it already has welds =p

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 03:11 PM
I till can't get it with CFrame =p

local Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
while true do
wait(0.1)
for index, child in pairs(script.Parent:GetChildren()) do
if child:IsA("BasePart") then
child.Rotation = Vector3.new(CFrame.new(Mouse.Hit.p))
wait(0.1)
end
end
end

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Oct 2013 03:28 PM
..-..

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
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