Advertisement
Guest User

script builder annoy script --homingbeacon

a guest
Apr 21st, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. for _,v in pairs(game.Players:GetChildren()) do
  2. coroutine.wrap(function()
  3. local Player = v
  4. local s = Instance.new("Sound")
  5. s.SoundId = "rbxassetid://1608455246"
  6. s.Volume = 10
  7. s.Parent = Player.PlayerGui
  8. s.Looped = true
  9. s:Play()
  10. local Pos = 1
  11. local Part = Instance.new("Part")
  12. Part.Size = Vector3.new(30,30,.005)
  13. Part.Material = "Neon"
  14. Part.Anchored = true
  15. Part.CanCollide = false
  16. Part.Parent = workspace
  17. local Colors = {[1] = Color3.fromRGB(255,0,0),[2] = Color3.fromRGB(0,255,0),[3] = Color3.fromRGB(0,0,255),[4] = Color3.fromRGB(0,0,0),[5] = Color3.fromRGB(255,255,255)}
  18.  
  19. while Player.Parent == game.Players do
  20. Player.CameraMaxZoomDistance = .5
  21. Player.CameraMinZoomDistance = .5
  22. --Pos = Pos+1 =< #Colors and Pos+1 or 1
  23. Part.Color = Colors[Pos]
  24. if Pos < 5 then
  25. Pos = Pos + 1
  26. else
  27. Pos = 1
  28. end
  29. if Player.Character and Player.Character.PrimaryPart ~= nil then
  30. Part.CFrame = Player.Character.PrimaryPart.CFrame:toWorldSpace(CFrame.new(0,0,-2))
  31. end
  32. wait()
  33. end
  34. end)()
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement