Rotating Objects

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Put Spin On An Bowling Ball(not just using orientation or any of that)
  2. What is the issue? Include screenshots / videos if possible!
    I dont know how to do it
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried to find a topic simmaler to it but it was all just orientation or somtin else i dont want
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

I dont currently have a script (im looking for how to do it like some fancy operation i dont know about)

2 Likes

Orientation is the simplest way to do it. I don’t know why you want something else. If the bowling ball is affected by physics (unanchored), you can use AngularVelocity, but it will roll away. So be careful. Make sure that:

  1. The ball is unanchored
  2. The ball has an Attachment called Attachment
local ball = script.Parent -- assuming the script is inside of the bowling ball
local attachment = ball:WaitForChild("Attachment")

local ANGULAR_VELOCITY = Vector3.new(10, 0, 10) -- replace with X Y Z values

function placeVelocity()
	local velocity = Instance.new("AngularVelocity")
	velocity.AngularVelocity = ANGULAR_VELOCITY
	velocity.MaxTorque = 10000
	velocity.Attachment0 = attachment
	velocity.Parent = ball
	velocity.Enabled = true
end

function removeVelocity()
	if not ball:FindFirstChildWhichIsA("AngularVelocity") then return end
	ball:FindFirstChildWhichIsA("AngularVelocity"):Destroy()
end

-- whenever in your code
placeVelocity()

-- if you need to disable the spin call removeVelocity()

I found what i needed and its annular velocity thanks though btw what i needed is the player to through a bowling ball and that ball to have a spin factor(like in bowling)

1 Like

You should have marked my answer as the solution, not your comment :slight_smile:

I found the answer myself though

You just told me somthing i alr new :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.