Advertisement
astralorchid

test

Oct 19th, 2020 (edited)
1,948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. local ao = "astralorchid"
  2. local char = workspace:WaitForChild(ao)
  3.  
  4. local part = Instance.new("Part")
  5. local seat = Instance.new("VehicleSeat")
  6. local weld = Instance.new("Weld")
  7.  
  8. part.Size = Vector3.new(10,1,10)
  9. part.CFrame = char.PrimaryPart.CFrame + Vector3.new(0,10,0)
  10.  
  11. seat.Size = Vector3.new(2,1,2)
  12. seat.CFrame = part.CFrame + Vector3.new(0,1,0)
  13.  
  14. weld.Part0 = part
  15. weld.Part1 = seat
  16. weld.C0 = CFrame.new(0,0,0)
  17. weld.C1 = CFrame.new(0,0,0)
  18.  
  19. weld.Parent = part
  20. seat.Parent = part
  21. part.Parent = workspace
  22.  
  23. seat.Touched:Connect(function(hit)
  24.     local char = hit.Parent
  25.     local hum = char:FindFirstChild("Humanoid")
  26.     if hum then
  27.         if char.Name == ao then
  28.         else
  29.             hum.Jump = true
  30.         end
  31.     end
  32. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement