Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local cha = plr.Character
- local start = CFrame.new(0, 10, 0)
- local en = CFrame.new(0, 11, 0)
- --------
- local part = Instance.new("Model", workspace)
- local part1 =Instance.new("Part",part)
- part1.Size = Vector3.new(5, 1, 5)
- part1.Anchored = true
- part1.CFrame = start
- part1.BrickColor = BrickColor.new("Bright green")
- local part2 = Instance.new("Part", part)
- part2.Size = Vector3.new(5, 1, 1)
- part2.Anchored = true
- part2.CFrame = start * CFrame.new(0, 1, 0) * CFrame.Angles(0, math.rad(90), 0)
- part2.BrickColor = BrickColor.new("Bright red")
- part.PrimaryPart = part1
- for i = 0,1,.001 do
- part:SetPrimaryPartCFrame(part:GetPrimaryPartCFrame() * CFrame.new(0, 1, -i))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement