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 with a small script problem

Previous Thread :: Next Thread 
22ron is not online. 22ron
Joined: 17 Jun 2012
Total Posts: 279
22 Aug 2014 09:06 PM
This script was made to turn a peace in the game but it dose not rotate it...
-----------------------------------------------------------------------------------

if game.Workspace:FindFirstChild("mouseThing") then

part = game.Workspace.mousething

script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)

if key == "r" then
part.CFrame = CFrame.new(0, 50, 0) * CFrame.Angles(0, math.pi, 0)
end
end)
end)
end
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
22 Aug 2014 09:08 PM
Line 2 is wrong

you did mouseThing and mousething
Report Abuse
22ron is not online. 22ron
Joined: 17 Jun 2012
Total Posts: 279
22 Aug 2014 09:22 PM
Thanks but it still is not working...
Report Abuse
DJSasuke1963 is not online. DJSasuke1963
Joined: 30 Nov 2012
Total Posts: 1136
22 Aug 2014 09:28 PM
if game.Workspace:FindFirstChild("mousething") ~= nil then

part = game.Workspace.mousething

script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)

if key == "r" then
part.CFrame = CFrame.new(0, 50, 0) * CFrame.Angles(0, math.pi, 0)
end
end)
end)
end

----------------
Uh try that but I dunno
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