Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- part1 = Instance.new("Part", owner.Character)
- part2 = Instance.new("Part", owner.Character)
- part2.CFrame = CFrame.new(0,1,50)
- part1.CFrame = CFrame.new(0,1,0)
- here = false
- function thinghere(part)
- here = true
- if part.Name ~= "Base" then
- wait(1.5)
- if here then
- part.CFrame = part2.CFrame * CFrame.new(0,1,0)
- end
- end
- end
- function thinghere2(part)
- here = false
- end
- part1.Touched:Connect(thinghere)
- part1.TouchEnded:Connect(thinghere2)
- here2 = false
- function thinghere3(part)
- here2 = true
- if part.Name ~= "Base" then
- wait(1.5)
- if here2 then
- part.CFrame = part1.CFrame * CFrame.new(0,1,0)
- end
- end
- end
- function thinghere4(part)
- here2 = false
- end
- part2.Touched:Connect(thinghere3)
- part2.TouchEnded:Connect(thinghere4)
- part1.Anchored = true
- part2.Anchored = true
- while true do
- part1.CFrame = part1.CFrame * CFrame.Angles(0,0.2,0)
- part2.CFrame = part2.CFrame * CFrame.Angles(0,0.2,0)
- wait(0.00001)
- end
- part1.BottomSurface = Enum.SurfaceType.Smooth
- part1.TopSurface = Enum.SurfaceType.Smooth
- part2.BottomSurface = Enum.SurfaceType.Smooth
- part2.TopSurface = Enum.SurfaceType.Smooth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement