Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Why is my cloned part not rotating correctly?

Asked by 10 days ago

I have it so that it clones the part that is saved in ReplicatedStorage and then places it on the player. Although everything works properly the garden is being placed sideways for whatever reason. When I rotate it by using GardenO.Rotation it's still being placed sideways. Any help?

game.Workspace.RosadaRemote:FindFirstChild("Garden").OnServerEvent:Connect(function(Player, Debounce)
 local deb = false
 local AlreadyTouched = false
 local Character = Player.Character or Player.CharacterAdded:Wait()
 Debounce = true
 local Garden = game:GetService("ReplicatedStorage"):FindFirstChild("Garden")
 local GardenO = Garden:Clone()
 GardenO.Name = "Garden"
 GardenO.Parent = game.Workspace
 GardenO.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,-5,0)
 GardenO.Rotation = Vector3.new(0, -120.32, -90)
 local BV = Instance.new("BodyVelocity")
 BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
 BV.Velocity = Character.HumanoidRootPart.CFrame.lookVector*0
 BV.Parent = GardenO
0
Try math.rad(-90) at lines 11 NiniBlackJackQc 554 — 10d
0
No ^ MCAndRobloxUnited 1522 — 10d
0
GardenO.Rotation = Vector3.new(0,-120.32,math.rad(-90)? songboy50 28 — 10d
0
Vector3 doesn´t use radians. Rotation is just the current rotation as a Vector3, it doesn´t need radians. MCAndRobloxUnited 1522 — 10d

Answer this question