of     1   

PlaystationV
#228425553Monday, December 04, 2017 2:21 PM GMT

i am trying to rotate a model to make sure it is upright at 0 degrees. However when the player clicks, the model moves to mouse.Hit but does not rotate. local player = game.Players.LocalPlayer local mouse = player:GetMouse() function place() local foundation = game.ReplicatedStorage.Foundation:Clone() foundation.Parent = game.Workspace foundation:SetPrimaryPartCFrame(mouse.Hit*CFrame.Angles(0,0,0)) end ##############################
PlaystationV
#228425571Monday, December 04, 2017 2:22 PM GMT

local player = game.Players.LocalPlayer local mouse = player:GetMouse() function place() local foundation = game.ReplicatedStorage.Foundation:Clone() foundation.Parent = game.Workspace foundation:SetPrimaryPartCFrame(mouse.Hit*CFrame.Angles(0,0,0)) end ############################## idk why it displayed like that.
CSploit
#228427746Monday, December 04, 2017 4:08 PM GMT

There are multiple ways to do this. You can use body functions / elements for this or change the rotaion value of a brick inside a script for example : script.Parent.Orientation = 0, 0, 0 -- switch 3 zeros to the rotation numbers in the value "Orientation" of the brick U just switch the three zero's to the orientation u want. Check the brick orientation and rotate it, get the number then rotate back and u have it. no CFraming needed for this. alltho this is not the most effective way. ~ CSploit

    of     1