Advertisement
urabigfatnoob

float v2 beta

Sep 5th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. chr = workspace.supercoolguy53
  2. chr.Humanoid.WalkSpeed = 50
  3. mouse = game.Players.LocalPlayer:GetMouse()
  4. part = Instance.new("Part",workspace.supercoolguy53)
  5. part.Size = Vector3.new(10,1,10)
  6. part.Anchored = true
  7. part.Transparency = .9
  8. pos = 3.6
  9.  
  10. mouse.KeyDown:connect(function(key)
  11. if key == 'q' then
  12. pos = 3.8
  13. elseif key == 'e' then
  14. pos = 3.4
  15. end
  16. end)
  17.  
  18. mouse.KeyUp:connect(function(key)
  19. if key == 'q' or key == 'e' then
  20. pos = 3.6
  21. end
  22. end)
  23.  
  24. while game:GetService('RunService').RenderStepped:wait() do
  25. part.CFrame = chr.Torso.CFrame - Vector3.new(0,pos,0)
  26. for i = 0,1,.05 do
  27. game:GetService('RunService').RenderStepped:wait()
  28. part.Transparency = i
  29. part.CFrame = chr.Torso.CFrame - Vector3.new(0,pos,0)
  30. end
  31. part.CFrame = chr.Torso.CFrame - Vector3.new(0,pos,0)
  32. for i = 1,0,-.05 do
  33. game:GetService('RunService').RenderStepped:wait()
  34. part.Transparency = i
  35. part.CFrame = chr.Torso.CFrame - Vector3.new(0,pos,0)
  36. end
  37. part.CFrame = chr.Torso.CFrame - Vector3.new(0,pos,0)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement