Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The tool doesn't work as expected. Want it to move up and down when I click. Not working. Help?

local Tool = script.Parent --make sure this is a Tool object
 
Tool.Equipped:connect(function(Mouse)
	Mouse.Button1Down:connect(function()
		Tool.Pole.PLC.C0 = Tool.Pole.PLC.C0 * CFrame.new(0,10,0)
	end)
end)

That's my script. For some reason when i load into the game, equip the tool, and click, the tool doesn't raise into the air as expected.

Please help if you can, I'm still learning so, that's why I'm here asking for help.

1 answer

The rot axises are intuitive so I would just trial-and-error. X might work. Also did you want degrees?

Tool.Pole.PLC.C0 = Tool.Pole.PLC.C0 * CFrame.new(math.rad(10),0,0)

1 comment

0

unintuitive*

This discussion is preserved as it was. New answers, comments, and votes are closed.