Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local marble = Instance.new("Part", owner.Character)
- marble.Position = Vector3.new(0, 10, 0)
- owner.Character.Humanoid.RequiresNeck = false
- marble.Shape = Enum.PartType.Ball
- marble.Size = Vector3.new(8,8,8)
- local decal = Instance.new("Decal", marble)
- decal.Face = Enum.NormalId.Top
- local happyFace = "http://www.roblox.com/asset/?id=4435280948"
- decal.Texture = happyFace
- marble.Material = "Slate"
- marble.BrickColor = BrickColor.new("Bright yellow")
- marble.BottomSurface = Enum.SurfaceType.Smooth
- marble.TopSurface = Enum.SurfaceType.Smooth
- marble.Name = "Ball"
- marble:SetNetworkOwner(owner)
- local density = 1
- local friction = 1
- local elasticity = 0
- local frictionWeight = 100000000000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- marble.CustomPhysicalProperties = physProperties
- NLS([[
- local char = owner.Character
- local HRP = owner.Character.Head
- local marble = owner.Character:WaitForChild("Ball")
- workspace.CurrentCamera.CameraSubject = marble
- local Velocity = Instance.new("BodyAngularVelocity")
- Velocity.Parent = marble
- local Hum = char:WaitForChild("Humanoid")
- Hum.PlatformStand = true
- local velocitylol = Instance.new("BodyVelocity", marble)
- velocitylol.MaxForce = Vector3.new(0,0,0)
- local bg = Instance.new("BodyGyro",marble)
- bg.P = 10000000
- bg.MaxTorque = Vector3.new(0,0,0)
- local Mouse = owner:GetMouse()
- function KeyDown(key)
- key = key:lower()
- if key:byte() == 32 then
- velocitylol.MaxForce = Vector3.new(0,math.huge,0)
- velocitylol.Velocity = Vector3.new(0,50,0)
- wait(0.25)
- velocitylol.Velocity = Vector3.new(0,0,0)
- velocitylol.MaxForce = Vector3.new(0,0,0)
- end
- end
- Mouse.KeyDown:Connect(KeyDown)
- local speed = 24
- function sprinton(key)
- key = key:lower()
- if key:byte() == 48 then
- speed = 50
- end
- end
- function sprintoff(key)
- key = key:lower()
- if key:byte() == 48 then
- speed = 24
- end
- end
- Mouse.KeyUp:connect(sprintoff)
- Mouse.KeyDown:connect(sprinton)
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local grow = ReplicatedStorage:WaitForChild("growinglol")
- function gro(key)
- key = key:lower()
- if key == "q" then
- grow:FireServer("Grolol")
- workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 25
- elseif key == "e" then
- grow:FireServer("shrink")
- workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 25
- end
- end
- Mouse.KeyDown:connect(gro)
- while true do
- task.wait()
- marble.BodyAngularVelocity.AngularVelocity = Vector3.new(char.Humanoid.MoveDirection.z * 16,0,char.Humanoid.MoveDirection.x * -16)
- marble.BodyAngularVelocity.MaxTorque = Vector3.new(1000000,1000000,1000000)
- bg.MaxTorque = Vector3.new(0,0,0)
- velocitylol.MaxForce = Vector3.new(0,0,0)
- if char.Humanoid.MoveDirection == Vector3.new(0,0,0) then
- marble.BodyAngularVelocity.MaxTorque = Vector3.new(0,0,0)
- bg.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bg.CFrame = marble.CFrame
- velocitylol.MaxForce = Vector3.new(math.huge,0,math.huge)
- velocitylol.Velocity = Vector3.new()
- end
- end
- ]],marble)
- owner.Character.HumanoidRootPart.Position = Vector3.new(10000,10000,10000)
- wait(0.1)
- owner.Character.HumanoidRootPart.Anchored = true
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local grow = Instance.new("RemoteEvent", ReplicatedStorage)
- grow.Name = "growinglol"
- local function sizer(player, action)
- if action == "shrink" then
- marble.Size = marble.Size * 0.75
- elseif action == "Grolol" then
- marble.Size = marble.Size * 1.25
- end
- end
- grow.OnServerEvent:Connect(sizer)
Add Comment
Please, Sign In to add comment