So, i want to make a script where the "handle" from a tool will rotate in x,y,z.The problem is the whole character is rotating with the tool.I want to make a ball rotating while the tool is equipped.
This is the script i tried
local Tool = script.Parent
local exterior = Tool:WaitForChild("Handle")
Tool.Equipped:Connect(function()
print("Tool-ul a fost echipat")
while true do
exterior.CFrame = exterior.CFrame * CFrame.fromEulerAnglesXYZ(.1,.1,.1)
wait()
end
end)
Tool.Activated:Connect(function()
print("Tool-ul a fost activat")
end)
Tool.Unequipped:Connect(function()
print("Tool-ul a fost dezechipat")
end)
Tool.Deactivated:Connect(function()
print("Tool-ul s-a dezactivat")
end)
