Advertisement
Rovo112

Probe

Feb 17th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. plr = game:GetService("Players").LocalPlayer
  2.  
  3. script.Parent=game['Players'][plr.Name]['Backpack']
  4.  
  5. local camera = workspace.CurrentCamera
  6. local probe=Instance.new('Part',workspace)
  7. probe.Material='Foil'
  8. probe.BrickColor=BrickColor.new('Deep orange')
  9. probe.Transparency=0
  10. probe.Shape = "Ball"
  11. probe.Anchored=true
  12. probe.CanCollide=false
  13. probe.BottomSurface='Smooth'
  14. probe.TopSurface='Smooth'
  15. probe.Locked=true
  16. probe.Name='NP ['..plr.Name..']'
  17. probe.FormFactor='Custom'
  18. probe.Size=Vector3.new(3,3,3)
  19. -----Chat-----
  20. plr.Chatted:connect(function(msg)
  21. game:GetService('Chat'):Chat(probe,plr.Name..' : '..tostring(msg),'Green')
  22. end)
  23.  
  24. ----Player destroy----
  25. plr.Character=nil
  26. plr:remove()
  27. ---Rotation and moving---
  28. local rot=.001
  29.  
  30. local rot2=.1
  31.  
  32. coroutine.wrap(function()
  33. while wait() do
  34. rot=rot+rot2
  35. local asd = math.rad((rot*10)*math.pi)
  36. probe.CFrame = camera.Focus*CFrame.Angles(0,asd,0)
  37. end
  38. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement