Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game:GetService("Players").LocalPlayer
- script.Parent=game['Players'][plr.Name]['Backpack']
- local camera = workspace.CurrentCamera
- local probe=Instance.new('Part',workspace)
- probe.Material='Foil'
- probe.BrickColor=BrickColor.new('Deep orange')
- probe.Transparency=0
- probe.Shape = "Ball"
- probe.Anchored=true
- probe.CanCollide=false
- probe.BottomSurface='Smooth'
- probe.TopSurface='Smooth'
- probe.Locked=true
- probe.Name='NP ['..plr.Name..']'
- probe.FormFactor='Custom'
- probe.Size=Vector3.new(3,3,3)
- -----Chat-----
- plr.Chatted:connect(function(msg)
- game:GetService('Chat'):Chat(probe,plr.Name..' : '..tostring(msg),'Green')
- end)
- ----Player destroy----
- plr.Character=nil
- plr:remove()
- ---Rotation and moving---
- local rot=.001
- local rot2=.1
- coroutine.wrap(function()
- while wait() do
- rot=rot+rot2
- local asd = math.rad((rot*10)*math.pi)
- probe.CFrame = camera.Focus*CFrame.Angles(0,asd,0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement