So What I need to do, is increase the LookVector and UpVector, when a player shoots a puck. Currently, it only shoots the puck forward, but when I add UpVector, it will only move the puck up or move the puck forward. It will not move Up and Forward.
Current Script for when the Tool is Activated:
local Part = workspace:WaitForChild("Puck")
local veo = power * 10
if enabled == true and workspace:FindFirstChild("Puck") ~= nil then
if Part:FindFirstChild("Weld") ~= nil then
Part:FindFirstChild("Weld"):Destroy()
end
if veo > 125 then
veo = 125
end
if veo <= 50 then
script.Parent.Handle.Slap.Volume = 0.5
script.Parent.Handle.Slap:Play()
elseif veo >= 50 then
script.Parent.Handle.Slap.Volume = 1
script.Parent.Handle.Slap:Play()
end
Part.Velocity = script.Parent.Parent:WaitForChild("Torso").CFrame.LookVector * veo
wait(0.5)
Part.lpt.Value = ""
enabled = false
end
The above post is probably even better but I just tested my method and it seemed to work fine, if the above post is not what your looking for maybe play around with ‘10’ in the Vector3.new(0,10,0), increase its value or something.
EDIT: Nevermid I get what you mean by diagonal. I thought you meant it go where the player WASN’T looking. It works, but it barley goes off the ground. Do I need to increase the veo? And sometimes it’ll go in random directions.
That’s dope.
Ok wait my method is sort of lacklustre tbh because it will always add a vertical velocity of 10studs/s (or whatever you changed it to) no matter how much veo you give it. Maybe that’s what you want, but an alternative is: