Advertisement
noslenpo

Orb 1

Aug 12th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. --Twitdoof LocalScript
  2. local mp = game.Players.LocalPlayer --Get LocalPlayer from Players(means get the person who is running the script)
  3. local mpc = mp.Character --Get it's Character
  4. local mouse = mp:GetMouse() --Get it's mouse
  5.  
  6. mpc.Humanoid.PlatformStand = true --This basically causes a person to lose control unless they press backspace leave this part or you can't use the script
  7. mpc.Head.face:remove() --Removes the face from Head
  8. for k,v in pairs(mpc:GetChildren()) do --Checks everything in mpc(Character)
  9. if v.ClassName == "Part" then --Check if that thing is a part
  10. v.Transparency = 1 --Makes it invisible
  11. elseif v.ClassName == "Hat" then --Removes all Hats
  12. v:remove() --get removed :D
  13. end
  14. end
  15.  
  16. local ball = Instance.new("Part",mpc) --Create a Part in mpc
  17. ball.Size = Vector3.new(6,16,6) --The size of ball
  18. ball.TopSurface = "Smooth" --Top Surface
  19. ball.BottomSurface = "Smooth" --Botttom Surface
  20. ball.BrickColor = BrickColor:Yellow() --Make the part yellow
  21. ball.Shape = "Ball" --Shape Ball
  22. local spikes = Instance.new("SpecialMesh",ball) --Add Mesh
  23. spikes.MeshType = "FileMesh" --File mesh
  24. spikes.MeshId = "http://www.roblox.com/asset/?id=9982590" --This is a link to a mesh which has spikes
  25. spikes.Scale = Vector3.new(2.1,2.1,2.1) --The Scale
  26. spikes.TextureId = "http://www.roblox.com/asset/?id=21108484" --Color yellow
  27. local kbptp = Instance.new("Weld",mpc.Torso) --Weld in Torso
  28. kbptp.Part0 = mpc.Torso --Set main part as Torso
  29. kbptp.Part1 = ball --Attach the part to main part(Torso)
  30. local b = Instance.new("BodyVelocity",ball) --Put velocity in part
  31. b.maxForce = Vector3.new(math.huge,0,math.huge) --Means how much force it has
  32. local go = false --Variable for no spam
  33. local speed = 10 --Speed
  34. mouse.Button1Down:connect(function() --Mouse click
  35. mpc.Humanoid.PlatformStand = true
  36. go = true --Means it activated and activate
  37. end)
  38. mouse.Move:connect(function() --Mouse move
  39. if go == true then --Check if activated
  40. if speed < 1005 then --If speed is less than 1005 then increase
  41. speed=speed+100 --Add more speed
  42. wait(1) --Wait 1 for slow effect
  43. end
  44. b.velocity = mouse.hit.lookVector*speed --Set velocity
  45. end --end of if statement
  46. end) --end of function
  47. mouse.Button1Up:connect(function() --if mouse click released
  48. go = false --unactivated
  49. b.velocity = Vector3.new(0,0,0) --set velocity to 0
  50. speed = 10 --speed goes low
  51. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement