Advertisement
BabyGoatz

Untitled

Oct 5th, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. local part = Instance.new("Part",Workspace)
  2. part.BrickColor = BrickColor.new("Royal purple")
  3. part.Material = 'Neon'
  4. part.Anchored = true
  5. part.Size = Vector3.new(3,4,3)
  6. local you=game.Workspace.BabyGoatz.Torso
  7. local angle=0.01
  8. local speed=0.01
  9. local radius=10
  10. local function rot()
  11. if part then
  12. local x=math.cos(angle)*radius
  13. local y=0
  14. local z=math.sin(angle)*radius
  15. part.CFrame=CFrame.new(you.CFrame.p + Vector3.new(x,y,z)) * CFrame.Angles(math.rad(angle * 101),math.rad(angle * 101),math.rad(angle * 101))
  16. angle=angle+speed
  17. end
  18. end
  19. game:service'RunService'.Stepped:connect(function() rot() end)
  20. local msg = Instance.new("Dialog")
  21. msg.Parent = game.Workspace.Part
  22. msg.InitialPrompt = ("Click me!")
  23. local click = Instance.new("ClickDetector")
  24. click.Parent = part
  25. local function onMouseClick(player)
  26. local e = Instance.new("Part",Workspace)
  27. e.Material = 'Neon'
  28. e.BrickColor = BrickColor.new("Royal purple")
  29. e.Size = Vector3.new(5,5,5)
  30. end
  31. click.MouseClick:connect(onMouseClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement