#how do i rotate a tool's handle without rotating the entire player?

55 messages · Page 1 of 1 (latest)

fast hazel
solar quiver
#

What are the properties of the tool

fast hazel
#

normal part properties but i made it massless

solar quiver
#

send screenshot

hoary lava
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sage oak
#

Show your code

fast hazel
#
local tool = script.Parent
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char.Humanoid

local holdtrack = plr.Character.Humanoid.Animator:LoadAnimation(script.Animation)
holdtrack.Priority = Enum.AnimationPriority.Idle

tool.Equipped:Connect(function()
    holdtrack:Play()
    tool.GripPos = Vector3.new(1.65, 0, 0)
    while true do
        task.wait(.05)
        tool.Handle.CFrame = tool.Handle.CFrame * CFrame.Angles(5, 0, 0)
    end
end)

tool.Unequipped:Connect(function()
    holdtrack:Stop()
end)
sage oak
#

Yeah you are setting the position of the handle

#

You can't do that to an assembly if you dont want it to move

#

Find the grip and set its c0

#

Or c1 if that doesnt turn out

fast hazel
#

im awful with toolgrip so you might have to help me with this

#

i only really know how to use grippos

sage oak
#

Well you better learn how welds work then

#

No better time than now

fast hazel
#

yeah

#

so wdym find the c0 of the grip

sage oak
#

A "grip" isnt actually a thing for tools

fast hazel
#

its just a renamed weld right

sage oak
#

What I am refering to is the weld that holds it to your character

fast hazel
#

i see

sage oak
#

Welds have C0 and C1

#

Basically offsets relevant to the parts

#

By changing them, you are changing how the part is positioned relevant to the other one in an assembly.

fast hazel
#

is rightgrip what im supposed to find? because i cant find any weld inside the tool when i hold it

#

i may be misunderstanding though

fast hazel
#

alright

#

deleted rightgrip to see what itd do and it dropped the handle so i think its what im looking for

#

so what should i do next

sage oak
#

Change it's C0 to animate it spinning

fast hazel
#

hm alright

#

orientation in the c0 right

sage oak
#

No, it is a cframe

fast hazel
#

oh my god yeah thats exactly what i was looking for

#

ah

sage oak
#

Both are cframes

#

They are the offset relevant to the other part respective to their part

fast hazel
#

i see

solar quiver
#

wait so is the problem in the code or physics

fast hazel
#

code

sage oak
#

It's both..

fast hazel
#

ah

sage oak
#

Your code is interacting with the engine in an unwanted way

fast hazel
#

so wait i wanna change the c0's cframe right

sage oak
#

Yes

#

You will need to know how cframes work for this

fast hazel
#

i know how they work (mostly)

#

still get a little confused sometimes but ive done it enough

#

got it working

vast reefBOT
#

studio** You are now Level 6! **studio

fast hazel
#

ty @sage oak

fast hazel
#

lol