Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = Instance.new("Part",Workspace)
- part.BrickColor = BrickColor.new("Royal purple")
- part.Material = 'Neon'
- part.Anchored = true
- part.Size = Vector3.new(3,4,3)
- local you=game.Workspace.BabyGoatz.Torso
- local angle=0.01
- local speed=0.01
- local radius=10
- local function rot()
- if part then
- local x=math.cos(angle)*radius
- local y=0
- local z=math.sin(angle)*radius
- 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))
- angle=angle+speed
- end
- end
- game:service'RunService'.Stepped:connect(function() rot() end)
- local msg = Instance.new("Dialog")
- msg.Parent = game.Workspace.Part
- msg.InitialPrompt = ("Click me!")
- local click = Instance.new("ClickDetector")
- click.Parent = part
- local function onMouseClick(player)
- local e = Instance.new("Part",Workspace)
- e.Material = 'Neon'
- e.BrickColor = BrickColor.new("Royal purple")
- end
- click.MouseClick:connect(onMouseClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement