Advertisement
ZeeDerp

Mouse trail

Jan 23rd, 2015
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. player=game.Players.LocalPlayer
  2. mouse=player:GetMouse()
  3. display=Instance.new("ScreenGui",player.PlayerGui)
  4. mouse.Move:connect(function()
  5. local x=Instance.new("Frame",display)
  6. x.Size=UDim2.new(0,20,0,20)
  7. x.BackgroundColor3=BrickColor.new("Magenta").Color
  8. x.Position=UDim2.new(0,mouse.X,0,mouse.Y)
  9. spawn(function()
  10. for i = 1, 20 do
  11. wait()
  12. x.BackgroundTransparency=i/20
  13. x.Rotation=i*30 --wat lol tweenposition mutch
  14. end
  15. end)
  16. x:TweenPosition(x.Position+UDim2.new(0,math.random(-30,30),0,math.random(-40,40)),"Out","Sine",0.5)
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement