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 » Scripters
Home Search
 

Re: rotation help

Previous Thread :: Next Thread 
freeroblox1234567 is online. freeroblox1234567
Joined: 19 May 2011
Total Posts: 120
03 Oct 2017 04:10 PM
any idea how to add rotation to this?

event.Event:connect(function(model,endpos, rot, speed)
if model.PrimaryPart == nil then return end
for i = 0, 1, speed do
if model == nil or model.PrimaryPart == nil then break end
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame:lerp(endpos, i))
if model.PrimaryPart.CFrame ~= model.PrimaryPart.CFrame:lerp(endpos, i) then
break
end
wait()
end
return
end)

any time I try to do endpos * CFrame.FromEulerAnglesXYZ(0, rot, 0)
it just spins the model around constantly even though rot is always just one number.


Report Abuse
freeroblox1234567 is online. freeroblox1234567
Joined: 19 May 2011
Total Posts: 120
03 Oct 2017 04:14 PM
b


Report Abuse
NexanianStudios is online. NexanianStudios
Joined: 16 Jul 2016
Total Posts: 1109
03 Oct 2017 04:19 PM
CFrame.new(primaryPart.Position)*CFrame.Angles(0,math.rad(90),0)
Report Abuse
freeroblox1234567 is online. freeroblox1234567
Joined: 19 May 2011
Total Posts: 120
03 Oct 2017 04:27 PM
worked, thanks


Report Abuse
NexanianStudios is online. NexanianStudios
Joined: 16 Jul 2016
Total Posts: 1109
03 Oct 2017 04:49 PM
No problemo
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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