Advertisement
Animescapetower

Untitled

Mar 2nd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. --[[
  2.  
  3. This is a script that makes an anchored brick rotate!
  4. Just resize the brick to your desired size!
  5. This script was made by ProjectTwo
  6. Free for anyone to use!
  7. ]]
  8. character = game.Players.LocalPlayer.Character
  9. local model = Instance.new("Model")
  10. model.Parent = character
  11. local p = Instance.new("Part")
  12. p.Name = "Potion"
  13. p.Transparency = 0
  14. p.FormFactor = Enum.FormFactor.Custom
  15. p.CanCollide = false
  16. p.Size = Vector3.new(2,2,2)
  17. p.TopSurface = Enum.SurfaceType.Smooth
  18. p.BottomSurface = Enum.SurfaceType.Smooth
  19. p.Anchored = true
  20. p.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) -- So it won't weigh down the player
  21. p.Parent = model
  22. local p2 = Instance.new("Part")
  23. p2.Name = "Potion2"
  24. p2.Transparency = 0.5
  25. p2.FormFactor = Enum.FormFactor.Custom
  26. p2.CanCollide = false
  27. p2.Size = Vector3.new(6,6,6)
  28. p2.TopSurface = Enum.SurfaceType.Smooth
  29. p2.BottomSurface = Enum.SurfaceType.Smooth
  30. p2.Anchored = true
  31. p2.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) -- So it won't weigh down the player
  32. p2.Parent = model
  33.  
  34. while true do
  35. wait()
  36. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  37. p2.CFrame = p2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement