local bodyGyro = Instance.new(‘BodyGyro’)
bodyGyro.D = 50
bodyGyro.P = 10000
bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
bodyGyro.Parent = iceshard
iceshard.CFrame = humrp.CFrame * CFrame.new(3,4,-4)
iceshard.CFrame = CFrame.new(iceshard.Position, Mouse.p) * CFrame.Angles(0,math.rad(90),math.rad(-90))
while true do
bodyGyro.CFrame = CFrame.lookAt(iceshard.Position, Mouse.p)
wait(0.1)
end
if I try to loop it, it just doesnt spawn the shard but if I dont loop it the shard will face the mouse position, any help? I’m tryna make it so the shard constantly looks in the mouse position
Quick question there, what is humrp?
I recommend you wrap the code in ```, just for visibility purposes.
1 Like
It’s humanoid root part, used it to CFrame the iceshard