I have a script for trampoline, and i want to launch the player up wards or what ever direction the trampoline faces at.
local Pad = script.Parent
Pad.Touched:Connect(function(hit)
script.Parent.Dust:Emit(5)
script.Parent.DashLines:Emit(7)
if hit.Parent:FindFirstChild("Humanoid") then
local Attachment = Instance.new("Attachment", hit.Parent:WaitForChild("HumanoidRootPart"))
local LV = Instance.new("LinearVelocity", Attachment)
LV.VelocityConstraintMode = Enum.VelocityConstraintMode.Plane
LV.Attachment0 = Attachment
LV.MaxForce = math.huge
LV.PrimaryTangentAxis = Vector3.new(1, 0, 0)
LV.SecondaryTangentAxis = Vector3.new(0, 0, 1)
LV.PlaneVelocity = Vector2.new(0, 1000) --> Or whatever velocity you want to put here
--LV.VectorVelocity = hit.Parent:WaitForChild("HumanoidRootPart").CFrame.lookVector * 100
task.wait(0.2)
LV:Destroy()
Attachment:Destroy()
end
end)
This script does not launch the player upwards