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: CloneTrooper1019's Module3Dv3 Script

Previous Thread :: Next Thread 
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
28 May 2015 09:44 AM
How does taymaster and loleris make their shop item rotate? I've tried everything, but when I use it, the items just update.

http://www.roblox.com/Module3D-v3-0-Official-Release-item?id=251867561
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
28 May 2015 11:34 AM
Please! I love this module, but I can't make the items rotate because it keeps updating the CFrame.
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
28 May 2015 11:40 AM
local 3dController = Module3D:Attach3D(Instance guiObj, Instance model)

3dController:SetCFrame(CFrame.angles(i,i,i))
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
28 May 2015 11:40 AM
The Controller object returned by Adorn3D has a function called SetCFrame, which lets you adjust the CFrame offset from where the module is trying to place it.

Heres an example of a sort

local self = script.Parent
local frame = self:WaitForChild("Frame")
local guy = workspace:WaitForChild("Guy")

local model = module3D:Adorn3D(frame,guy)
model:SetActive(true)

local rs = game:GetService("RunService")
local fullRot = math.pi*2 -- 360 degrees in radians.

rs.RenderStepped:connect(function ()
local rotation = CFrame.Angles(0,tick()%fullRot,0)
model:SetCFrame(rotation)
end)
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
28 May 2015 11:42 AM
I meant Attach3D, not Adorn3D lol.
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
28 May 2015 11:43 AM
tick()%fullRot

why not just tick()?
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
28 May 2015 11:45 AM
@builder

Because I'd rather have a number between 0 and 6.28 rather than some massive number in there.

Its not a huge deal, just better to be safe than sorry I guess.
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