Advertisement
hjkook

testd

Aug 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local cha = plr.Character
  3. local start = CFrame.new(0, 10, 0)
  4. local en = CFrame.new(0, 11, 0)
  5. --------
  6. local part = Instance.new("Model", workspace)
  7.  
  8. local part1 =Instance.new("Part",part)
  9. part1.Size = Vector3.new(5, 1, 5)
  10. part1.Anchored = true
  11. part1.CFrame = start
  12. part1.BrickColor = BrickColor.new("Bright green")
  13.  
  14. local part2 = Instance.new("Part", part)
  15. part2.Size = Vector3.new(5, 1, 1)
  16. part2.Anchored = true
  17. part2.CFrame = start * CFrame.new(0, 1, 0) * CFrame.Angles(0, math.rad(90), 0)
  18. part2.BrickColor = BrickColor.new("Bright red")
  19.  
  20. part.PrimaryPart = part1
  21.  
  22. while true do
  23. part:SetPrimaryPartCFrame(part:GetPrimaryPartCFrame(start * en * CFrame.new(0, 1, 0)))
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement