Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Twitdoof LocalScript
- local mp = game.Players.LocalPlayer --Get LocalPlayer from Players(means get the person who is running the script)
- local mpc = mp.Character --Get it's Character
- local mouse = mp:GetMouse() --Get it's mouse
- 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
- mpc.Head.face:remove() --Removes the face from Head
- for k,v in pairs(mpc:GetChildren()) do --Checks everything in mpc(Character)
- if v.ClassName == "Part" then --Check if that thing is a part
- v.Transparency = 1 --Makes it invisible
- elseif v.ClassName == "Hat" then --Removes all Hats
- v:remove() --get removed :D
- end
- end
- local ball = Instance.new("Part",mpc) --Create a Part in mpc
- ball.Size = Vector3.new(6,16,6) --The size of ball
- ball.TopSurface = "Smooth" --Top Surface
- ball.BottomSurface = "Smooth" --Botttom Surface
- ball.BrickColor = BrickColor:Yellow() --Make the part yellow
- ball.Shape = "Ball" --Shape Ball
- local spikes = Instance.new("SpecialMesh",ball) --Add Mesh
- spikes.MeshType = "FileMesh" --File mesh
- spikes.MeshId = "http://www.roblox.com/asset/?id=9982590" --This is a link to a mesh which has spikes
- spikes.Scale = Vector3.new(2.1,2.1,2.1) --The Scale
- spikes.TextureId = "http://www.roblox.com/asset/?id=21108484" --Color yellow
- local kbptp = Instance.new("Weld",mpc.Torso) --Weld in Torso
- kbptp.Part0 = mpc.Torso --Set main part as Torso
- kbptp.Part1 = ball --Attach the part to main part(Torso)
- local b = Instance.new("BodyVelocity",ball) --Put velocity in part
- b.maxForce = Vector3.new(math.huge,0,math.huge) --Means how much force it has
- local go = false --Variable for no spam
- local speed = 10 --Speed
- mouse.Button1Down:connect(function() --Mouse click
- mpc.Humanoid.PlatformStand = true
- go = true --Means it activated and activate
- end)
- mouse.Move:connect(function() --Mouse move
- if go == true then --Check if activated
- if speed < 1005 then --If speed is less than 1005 then increase
- speed=speed+100 --Add more speed
- wait(1) --Wait 1 for slow effect
- end
- b.velocity = mouse.hit.lookVector*speed --Set velocity
- end --end of if statement
- end) --end of function
- mouse.Button1Up:connect(function() --if mouse click released
- go = false --unactivated
- b.velocity = Vector3.new(0,0,0) --set velocity to 0
- speed = 10 --speed goes low
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement