Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- radio = Instance.new("Part",script)
- radio.Name = "Radio"
- rmesh = Instance.new("SpecialMesh", radio)
- rmesh.MeshId = "rbxassetid://151760030"
- rmesh.Scale = Vector3.new(1,1,1)
- rmesh.TextureId = "rbxassetid://151760072"
- radio.Size = Vector3.new(3.2,1.6,1.2)
- hammer = Instance.new("Part",script)
- hmesh = Instance.new("SpecialMesh", hammer)
- hmesh.MeshId = "rbxassetid://16198309"
- hmesh.Scale = Vector3.new(1.2,1.2,1.2)
- hmesh.TextureId = "rbxassetid://16198294"
- hammer.Size = Vector3.new(2,1.5,4)
- local shatter = Instance.new("Sound",hammer)
- shatter.SoundId = "http://www.roblox.com/asset/?id=3103862943"
- shatter.Volume = 1.5
- hammer.Touched:Connect(function(hit)
- if hit.Material == Enum.Material.Glass then
- hit:Destroy()
- shatter:Play()
- end
- end)
- local music = Instance.new("Sound",radio)
- music.Volume = 1.5
- music.Looped = true
- local screengui = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui"))
- screengui.ResetOnSpawn = true
- screengui.Name = "Textlol2"
- local tl = Instance.new("TextBox", screengui)
- tl.Size = UDim2.new(0.105,0,0.075,0)
- tl.AnchorPoint = Vector2.new(1, 0.90)
- tl.Position = UDim2.new(1, 0, 0.90, 0)
- tl.BackgroundTransparency = 1
- tl.TextColor3 = Color3.new(1, 1, 1)
- tl.TextTransparency = 1
- tl.Name = "Textlol"
- local tl2 = Instance.new("TextBox", screengui)
- tl2.Text = "1"
- tl2.PlaceholderText = "Speed"
- tl2.Size = UDim2.new(0.105,0,0.075,0)
- tl2.AnchorPoint = Vector2.new(1, 0.80)
- tl2.Position = UDim2.new(1, 0, 0.80, 0)
- tl2.BackgroundTransparency = 1
- tl2.TextColor3 = Color3.new(1, 1, 1)
- tl2.TextTransparency = 1
- tl2.Name = "Textlol3"
- local tl3 = Instance.new("TextBox", screengui)
- tl3.Text = "1.5"
- tl3.PlaceholderText = "volume"
- tl3.Size = UDim2.new(0.105,0,0.075,0)
- tl3.AnchorPoint = Vector2.new(1, 0.70)
- tl3.Position = UDim2.new(1, 0, 0.70, 0)
- tl3.BackgroundTransparency = 1
- tl3.TextColor3 = Color3.new(1, 1, 1)
- tl3.TextTransparency = 1
- tl3.Name = "Textlol4"
- local musicplay = Instance.new("TextButton", screengui)
- musicplay.Size = UDim2.new(0.105,0,0.075,0)
- musicplay.AnchorPoint = Vector2.new(1, 1)
- musicplay.Position = UDim2.new(1, 0, 1, 0)
- musicplay.Text = "Play"
- musicplay.BackgroundTransparency = 1
- musicplay.TextColor3 = Color3.new(1, 1, 1)
- musicplay.TextTransparency = 1
- musicplay.Active = true
- remote2 = Instance.new("RemoteEvent",owner.Character)
- remote2.Name = "The2"
- remote2.OnServerEvent:Connect(function(plr, text)
- tl.Text = text
- end)
- remote3 = Instance.new("RemoteEvent",owner.Character)
- remote3.Name = "The3"
- remote3.OnServerEvent:Connect(function(plr, text)
- tl2.Text = text
- end)
- remote4 = Instance.new("RemoteEvent",owner.Character)
- remote4.Name = "The4"
- remote4.OnServerEvent:Connect(function(plr, text)
- tl3.Text = text
- end)
- function playmusic()
- music:Stop()
- music.PlaybackSpeed = tl2.Text
- music.Volume = tl3.Text
- music.SoundId = "http://www.roblox.com/asset/?id="..tl.Text
- wait()
- music:Play()
- end
- musicplay.MouseButton1Down:Connect(playmusic)
- function musictime()
- coroutine.wrap(function()
- tl.TextTransparency = 0
- musicplay.TextTransparency = 0
- musicplay.Text = "Play"
- musicplay.BackgroundTransparency = 0
- tl.BackgroundTransparency = 0
- tl2.BackgroundTransparency = 0
- tl2.Text = "1"
- tl2.PlaceholderText = "Speed"
- tl2.TextTransparency = 0
- tl3.Text = "1"
- tl3.BackgroundTransparency = 0
- tl3.TextTransparency = 0
- end)()
- end
- function musictime2()
- coroutine.wrap(function()
- tl.TextTransparency = 1
- musicplay.TextTransparency = 1
- musicplay.Text = "Play"
- musicplay.BackgroundTransparency = 1
- tl.BackgroundTransparency = 1
- tl2.BackgroundTransparency = 1
- tl2.TextTransparency = 1
- tl3.BackgroundTransparency = 1
- tl3.TextTransparency = 1
- end)()
- end
- local shoulder
- local shoulder2
- local leg
- local leg2
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("Motor6D") then
- if v.Name == "Left Shoulder" then
- shoulder = v
- elseif v.Name == "Right Shoulder" then
- shoulder2 = v
- elseif v.Name == "Right Hip" then
- leg2 = v
- elseif v.Name == "Left Hip" then
- leg = v
- end
- end
- end
- wait()
- local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcollider.Shape = "Cylinder"
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm"))
- limbcollider2.Size = Vector3.new(1.4,1,1)
- limbcollider2.Transparency = 1
- limbcollider2.Name = "LimbCollider"
- limbcollider2.Shape = "Cylinder"
- local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
- limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Arm")
- limbcolliderweld2.Part1 = limbcollider2
- limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = owner.Character["Left Arm"]
- a2.Parent = owner.Character.Torso
- Socket.Parent = owner.Character["Left Arm"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
- local Socket2 = Instance.new("BallSocketConstraint")
- local a3 = Instance.new("Attachment")
- local a4 = Instance.new("Attachment")
- a3.Parent = owner.Character["Right Arm"]
- a4.Parent = owner.Character.Torso
- Socket2.Parent = owner.Character["Right Arm"]
- Socket2.Attachment0 = a3
- Socket2.Attachment1 = a4
- a3.WorldCFrame = a3.Parent.CFrame * CFrame.new(0,0.5,0)
- a4.WorldCFrame = a4.Parent.CFrame * CFrame.new(1.5,0.5,0)
- local limbcollider3 = Instance.new("Part", owner.Character:findFirstChild("Right Leg"))
- limbcollider3.Size = Vector3.new(1.4,1,1)
- limbcollider3.Transparency = 1
- limbcollider3.Name = "LimbCollider"
- local limbcolliderweld3 = Instance.new("Weld", limbcollider3)
- limbcolliderweld3.Part0 = owner.Character:findFirstChild("Right Leg")
- limbcolliderweld3.Part1 = limbcollider3
- limbcollider3.Shape = "Cylinder"
- limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider4 = Instance.new("Part", owner.Character:findFirstChild("Left Leg"))
- limbcollider4.Size = Vector3.new(1.4,1,1)
- limbcollider4.Transparency = 1
- limbcollider4.Name = "LimbCollider"
- limbcollider4.Shape = "Cylinder"
- local limbcolliderweld4 = Instance.new("Weld", limbcollider4)
- limbcolliderweld4.Part0 = owner.Character:findFirstChild("Left Leg")
- limbcolliderweld4.Part1 = limbcollider4
- limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local Socket3 = Instance.new("BallSocketConstraint")
- local a5 = Instance.new("Attachment")
- local a6 = Instance.new("Attachment")
- a5.Parent = owner.Character["Left Leg"]
- a6.Parent = owner.Character.Torso
- Socket3.Parent = owner.Character["Left Leg"]
- Socket3.Attachment0 = a5
- Socket3.Attachment1 = a6
- a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,0.5,0)
- a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
- local Socket4 = Instance.new("BallSocketConstraint")
- local a7 = Instance.new("Attachment")
- local a8 = Instance.new("Attachment")
- a7.Parent = owner.Character["Right Leg"]
- a8.Parent = owner.Character.Torso
- Socket4.Parent = owner.Character["Right Leg"]
- Socket4.Attachment0 = a7
- Socket4.Attachment1 = a8
- a7.WorldCFrame = a7.Parent.CFrame * CFrame.new(0,0.5,0)
- a8.WorldCFrame = a8.Parent.CFrame * CFrame.new(0.5,-1.5,0)
- remote = Instance.new("RemoteEvent",owner.Character)
- remote.Name = "The"
- count = 0
- local what
- local weld
- local oldowner
- count2 = 0
- local what3
- local weld3
- local oldowner3
- local what4
- local weld4
- local oldowner4
- count4 = 0
- local what2
- local weld2
- local oldowner2
- count3 = 0
- grabreach = 7.5
- remote.OnServerEvent:Connect(function(plr,action,who,hit)
- pcall(function()
- if action == "Grab" then
- if (owner.Character["Left Arm"].CFrame.Position - hit.Position).magnitude <= grabreach then
- count = count+1
- if count == 1 then
- local density = who:GetMass()
- local friction = .5
- local elasticity = 0
- local frictionWeight = 10000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- who.CustomPhysicalProperties = physProperties
- shoulder.Enabled = false
- if who.Name == "Radio" then
- musictime()
- owner.Character["Left Arm"].CFrame = who.CFrame * CFrame.new(0,1.5,0)
- elseif who.Name ~= "Radio" then
- owner.Character["Left Arm"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
- end
- wait()
- weld = Instance.new("WeldConstraint",limbcollider2)
- weld.Part0 = who
- weld.Part1 = limbcollider2
- who.Massless = true
- oldowner = who:GetNetworkOwner()
- task.wait()
- who:SetNetworkOwner(owner)
- hum = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
- if hum then
- hum.PlatformStand = true
- end
- what = who
- elseif count == 2 then
- shoulder.Enabled = true
- weld:Destroy()
- count = 0
- what.Massless = false
- if what.Name == "Radio" then
- musictime2()
- end
- task.wait()
- what:SetNetworkOwner(oldowner)
- if hum then
- hum.PlatformStand = false
- end
- wait()
- end
- end
- elseif action == "Grab2" then
- if (owner.Character["Right Arm"].CFrame.Position - hit.Position).magnitude <= grabreach then
- count2 = count2+1
- if count2 == 1 then
- local density = who:GetMass()
- local friction = .5
- local elasticity = 0
- local frictionWeight = 10000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- who.CustomPhysicalProperties = physProperties
- shoulder2.Enabled = false
- if who.Name == "Radio" then
- musictime()
- owner.Character["Right Arm"].CFrame = who.CFrame * CFrame.new(0,1.6,0)
- elseif who.Name ~= "Radio" then
- owner.Character["Right Arm"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
- end
- wait()
- weld2 = Instance.new("WeldConstraint",limbcollider)
- weld2.Part0 = who
- weld2.Part1 = limbcollider
- who.Massless = true
- oldowner2 = who:GetNetworkOwner()
- task.wait()
- who:SetNetworkOwner(owner)
- hum2 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
- if hum2 then
- hum2.PlatformStand = true
- end
- what2 = who
- elseif count2 == 2 then
- shoulder2.Enabled = true
- weld2:Destroy()
- count2 = 0
- what2.Massless = false
- if what2.Name == "Radio" then
- musictime2()
- end
- task.wait()
- what2:SetNetworkOwner(oldowner2)
- if hum2 then
- hum2.PlatformStand = false
- end
- wait()
- end
- end
- elseif action == "Grab3" then
- if (owner.Character["Left Leg"].CFrame.Position - hit.Position).magnitude <= grabreach then
- count3 = count3+1
- if count3 == 1 then
- local density = who:GetMass()
- local friction = .5
- local elasticity = 0
- local frictionWeight = 10000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- who.CustomPhysicalProperties = physProperties
- leg.Enabled = false
- if who.Name == "Radio" then
- musictime()
- owner.Character["Left Leg"].CFrame = who.CFrame * CFrame.new(0,1.5,0)
- elseif who.Name ~= "Radio" then
- owner.Character["Left Leg"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
- end
- wait(0.1)
- weld3 = Instance.new("WeldConstraint",limbcollider4)
- weld3.Part0 = who
- weld3.Part1 = limbcollider4
- who.Massless = true
- oldowner3 = who:GetNetworkOwner()
- task.wait()
- who:SetNetworkOwner(owner)
- hum3 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
- if hum3 then
- hum3.PlatformStand = true
- end
- owner.Character["Left Leg"].CFrame = owner.Character["Left Leg"].CFrame * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,2,0)
- what3 = who
- elseif count3 == 2 then
- leg.Enabled = true
- weld3:Destroy()
- count3 = 0
- what3.Massless = false
- if what3.Name == "Radio" then
- musictime2()
- end
- task.wait()
- what3:SetNetworkOwner(oldowner3)
- if hum3 then
- hum3.PlatformStand = false
- end
- wait()
- end
- end
- elseif action == "Grab4" then
- if (owner.Character["Right Leg"].CFrame.Position - hit.Position).magnitude <= grabreach then
- count4 = count4+1
- if count4 == 1 then
- local density = who:GetMass()
- local friction = .5
- local elasticity = 0
- local frictionWeight = 10000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- who.CustomPhysicalProperties = physProperties
- leg2.Enabled = false
- if who.Name == "Radio" then
- musictime()
- owner.Character["Right Leg"].CFrame = who.CFrame * CFrame.new(0,1.5,0)
- elseif who.Name ~= "Radio" then
- owner.Character["Right Leg"].CFrame = hit * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,0.5,0)
- end
- wait(0.1)
- weld4 = Instance.new("WeldConstraint",limbcollider3)
- weld4.Part0 = who
- weld4.Part1 = limbcollider3
- who.Massless = true
- oldowner4 = who:GetNetworkOwner()
- task.wait()
- who:SetNetworkOwner(owner)
- hum4 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid")
- if hum4 then
- hum4.PlatformStand = true
- end
- owner.Character["Right Leg"].CFrame = owner.Character["Right Leg"].CFrame * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,2,0)
- what4 = who
- elseif count4 == 2 then
- leg2.Enabled = true
- weld4:Destroy()
- count4 = 0
- what4.Massless = false
- if what4.Name == "Radio" then
- musictime2()
- end
- task.wait()
- what4:SetNetworkOwner(oldowner4)
- if hum4 then
- hum4.PlatformStand = false
- end
- wait()
- end
- end
- end
- end)
- end)
- wait()
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("Part") then
- local nocollide = Instance.new("NoCollisionConstraint",owner.Character.HumanoidRootPart)
- nocollide.Part0 = v
- nocollide.Part1 = owner.Character.HumanoidRootPart
- end
- end
- NLS([[
- wait(0.1)
- remote = owner.Character:WaitForChild("The")
- remote2 = owner.Character:WaitForChild("The2")
- screengui = owner:findFirstChildOfClass("PlayerGui"):WaitForChild("Textlol2")
- tl = screengui:WaitForChild("Textlol")
- tl.Changed:Connect(function(what)
- pcall(function()
- remote2:FireServer(tl.Text)
- end)
- end)
- remote3 = owner.Character:WaitForChild("The3")
- tl2 = screengui:WaitForChild("Textlol3")
- tl2.Changed:Connect(function(what)
- pcall(function()
- remote3:FireServer(tl2.Text)
- end)
- end)
- remote4 = owner.Character:WaitForChild("The4")
- tl3 = screengui:WaitForChild("Textlol4")
- tl3.Changed:Connect(function(what)
- pcall(function()
- remote4:FireServer(tl3.Text)
- end)
- end)
- mouse = owner:GetMouse()
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "q" then
- remote:FireServer("Grab",mouse.Target,mouse.Hit)
- elseif key == "e" then
- remote:FireServer("Grab2",mouse.Target,mouse.Hit)
- elseif key == "z" then
- remote:FireServer("Grab3",mouse.Target,mouse.Hit)
- elseif key == "c" then
- remote:FireServer("Grab4",mouse.Target,mouse.Hit)
- end
- end)
- ]],owner.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement