Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local model = Instance.new("Model", script)
- model.Name = owner.Name
- hum = Instance.new("Humanoid", model)
- hum.MaxHealth = 0
- hum.Health = 0
- local block = Instance.new("Part", model)
- block.Size = Vector3.new(1.5,1.4,1.75)
- block.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- block.Material = 'SmoothPlastic'
- block.Name = "Head"
- local nokill = Instance.new("RemoteEvent", block)
- nokill.Name = "The"
- block.Locked = true
- local block2 = Instance.new("Part", block)
- block2.Size = Vector3.new(1.5,0.1,1.75)
- block2.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block2.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- block2.Material = 'SmoothPlastic'
- ShootWeld = Instance.new("Weld", block)
- ShootWeld.Part0 = block2
- ShootWeld.Part1 = block
- ShootWeld.C0 = CFrame.new(0,0.75,0)
- local nokill2 = Instance.new("RemoteEvent", block2)
- block2.Locked = true
- local block3 = Instance.new("Part", block)
- block3.Size = Vector3.new(0.25,1.125,0.5)
- block3.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block3.Color = Color3.fromHSV(0,0,0)
- block3.Material = 'SmoothPlastic'
- ShootWeld2 = Instance.new("Weld", block)
- ShootWeld2.Part0 = block3
- ShootWeld2.Part1 = block
- ShootWeld2.C0 = CFrame.new(0.5625,-0.0625,0.725)
- local nokill3 = Instance.new("RemoteEvent", block3)
- block3.Locked = true
- block3.CanCollide = false
- local block4 = Instance.new("Part", block)
- block4.Size = Vector3.new(0.25,1.125,0.5)
- block4.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block4.Color = Color3.fromHSV(0,0,0)
- block4.Material = 'SmoothPlastic'
- ShootWeld3 = Instance.new("Weld", block)
- ShootWeld3.Part0 = block4
- ShootWeld3.Part1 = block
- ShootWeld3.C0 = CFrame.new(-0.5625,-0.0625,0.725)
- local nokill4 = Instance.new("RemoteEvent", block4)
- block4.Locked = true
- block4.CanCollide = false
- local block5 = Instance.new("Part", block)
- block5.Size = Vector3.new(1.5,1.4,0.5)
- block5.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block5.Color = Color3.fromHSV(0,0,0)
- block5.Material = 'SmoothPlastic'
- ShootWeld4 = Instance.new("Weld", block)
- ShootWeld4.Part0 = block5
- ShootWeld4.Part1 = block
- ShootWeld4.C0 = CFrame.new(0.125,0,0.675) * CFrame.Angles(0,0,math.rad(-90))
- local nokill5 = Instance.new("RemoteEvent", block5)
- block5.Locked = true
- block5.CanCollide = false
- block5.Transparency = 1
- owner.Character.Parent = nil
- local object = Instance.new("ObjectValue", owner.PlayerGui)
- object.Value = block
- object.Name = 'BLOCK'
- local object2 = Instance.new("ObjectValue", owner.PlayerGui)
- object2.Value = model
- object2.Name = 'MODEL'
- local density = 0.0125
- local friction = 1
- local elasticity = 0
- local frictionWeight = 100000000000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- block2.CustomPhysicalProperties = physProperties
- block3.CustomPhysicalProperties = physProperties
- block4.CustomPhysicalProperties = physProperties
- block5.CustomPhysicalProperties = physProperties
- block:SetNetworkOwner(owner)
- local screengui2 = Instance.new("SurfaceGui", block5)
- screengui2.Name = "Hud"
- screengui2.Face = Enum.NormalId.Front
- local tl = Instance.new("TextBox", screengui2)
- tl.Size = UDim2.new(1, 0, 1, 0)
- tl.Text = "3"
- tl.TextSize = 400
- tl.TextTransparency = 0
- tl.BackgroundTransparency = 1
- tl.Position = UDim2.new(0,0,0,0)
- NLS([[
- jump = false
- local Speed = 0
- local rotspeed = 0
- local rotspeed2 = 0
- local mouse = owner:GetMouse()
- local uis = game:GetService("UserInputService")
- local block = owner.PlayerGui.BLOCK.Value
- local model = owner.PlayerGui.MODEL.Value
- model.Name = ""
- local nokill = block:WaitForChild("The")
- currentcf = block.CFrame
- uis.InputBegan:Connect(function(input)
- input = input.KeyCode
- if input == Enum.KeyCode.W then
- Speed = 1
- elseif input == Enum.KeyCode.A then
- rotspeed = 1
- rotspeed2 = 0
- elseif input == Enum.KeyCode.S then
- Speed = -1
- elseif input == Enum.KeyCode.D then
- rotspeed = -1
- rotspeed2 = 0
- elseif input == Enum.KeyCode.Space then
- jump = true
- wait(0.25)
- jump = false
- end
- end)
- uis.InputEnded:Connect(function(input)
- input = input.KeyCode
- if input == Enum.KeyCode.W then
- Speed = 0
- elseif input == Enum.KeyCode.A then
- rotspeed = 0
- rotspeed2 = 1
- elseif input == Enum.KeyCode.S then
- Speed = 0
- elseif input == Enum.KeyCode.D then
- rotspeed = 0
- rotspeed2 = 1
- end
- end)
- local xzGyro = Instance.new("BodyGyro")
- xzGyro.MaxTorque = Vector3.new(100000,0,100000)
- xzGyro.P = 100000
- xzGyro.D = 2500
- xzGyro.Parent = block
- local bf = Instance.new("BodyForce", block)
- pcall(function()
- game:GetService("RunService").RenderStepped:Connect(function()
- if jump then
- bf.Force = block.CFrame.upVector * block:GetMass() * 1 * workspace.Gravity * block:GetMass() * 1
- elseif not jump then
- bf.Force = block.CFrame.upVector * block:GetMass() * -1 * workspace.Gravity * block:GetMass() * 1
- end
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {block, owner.Character}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local result = workspace:Raycast(block.Position, block.CFrame.upVector * -1 + block.CFrame.lookVector * 1.75, params)
- local result2 = workspace:Raycast(block.Position, block.CFrame.upVector * 1 + block.CFrame.lookVector * 1.75, params)
- local result3 = workspace:Raycast(block.Position, block.CFrame.upVector * 1, params)
- local result4 = workspace:Raycast(block.Position, block.CFrame.upVector * -1 + block.CFrame.lookVector * -1.75, params)
- local result5 = workspace:Raycast(block.Position, block.CFrame.upVector * 1 + block.CFrame.lookVector * -1.75, params)
- local result6 = workspace:Raycast(block.Position, block.CFrame.upVector * -1, params)
- if (result) then
- local currentRightVector = block.CFrame.RightVector
- local upVector = result.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector)
- elseif (result2) then
- local currentRightVector = block.CFrame.RightVector
- local upVector = result2.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector)
- elseif (result3) then
- local currentRightVector = block.CFrame.RightVector
- local upVector = result3.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector)
- elseif (result4) then
- local currentRightVector = block.CFrame.RightVector
- local upVector = result4.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector)
- elseif (result5) then
- local currentRightVector = block.CFrame.RightVector
- local upVector = result5.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector)
- elseif (result6) then
- local currentRightVector = block.CFrame.RightVector
- local upVector = result6.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector)
- end
- end)
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- workspace.CurrentCamera.CFrame = block.CFrame * CFrame.new(0,4,6) * CFrame.Angles(math.rad(-15), 0, 0)
- block.Velocity = block.CFrame.LookVector * Speed * 30
- block.AssemblyAngularVelocity = block.CFrame.upVector * rotspeed * 5
- end)
- ]], owner.PlayerGui)
- local density = 1
- local friction = 1
- local elasticity = 0
- local frictionWeight = 100000000000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- block.CustomPhysicalProperties = physProperties
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = block3
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Size = Vector3.new(0.25,0.125,0.5)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local object2 = block4
- local tween2 = tweenService:Create(object2, tweenInfo, goal)
- local timeToFade2 = 0.5
- local object3 = block3
- local tweenInfo2 = TweenInfo.new(timeToFade2)
- local goal2 = {}
- goal2.Size = Vector3.new(0.25,1.125,0.5)
- local tween3 = tweenService:Create(object3, tweenInfo2, goal2)
- local object4 = block4
- local tween4 = tweenService:Create(object4, tweenInfo2, goal2)
- warn("Hows it hanging?")
- print("Made by Haker Man / Lucas_YT111")
- bodyparts = {}
- function protectlimb(part,props,index)
- if not part then return end
- local index,props = index or #bodyparts+1,props or {Parent = part.Parent}
- bodyparts[index] = part
- part.Parent = props.Parent
- part.AncestryChanged:Connect(function(part,newparent)
- if newparent~=nil and not part:IsDescendantOf(props.Parent) then
- part.Parent = props.Parent
- elseif newparent == nil then
- local newp = part:Clone()
- protectlimb(newp,props,index)
- end
- end)
- return bodyparts[index]
- end
- table.foreach(script:GetDescendants(),function(i,v) if v:IsA("BasePart") then protectlimb(v) end end)
- while true do
- wait(3.25)
- tween:Play()
- tween2:Play()
- wait(0.5)
- tween3:Play()
- tween4:Play()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement