Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Tool.Name = "Tool gun"
- Gun = Instance.new("Part")
- Gun.Name = "Handle"
- Gun.Parent = Tool
- Tool.Parent = workspace.Lucas_YT111
- Gun.Massless = true
- Gun.CanCollide = false
- Gun2 = Instance.new("Part")
- Gun2.Parent = Gun
- Gun2.Size = Vector3.new(0.5555, 2.099, 3.6555)
- Gun2.Massless = true
- Gun2.CanCollide = false
- Gun.Transparency = 1
- Tool.GripPos = Vector3.new(0,0,0.82775)
- myhum = owner.Character.Humanoid
- islunging = false
- Meshlol1 = Instance.new("SpecialMesh")
- Meshlol1.Parent = Gun2
- Meshlol1.MeshId = "http://www.roblox.com/asset/?id=541863381"
- Meshlol1.TextureId = "http://www.roblox.com/asset/?id=541863491"
- Meshlol1.Scale = Vector3.new(0.35, 0.35, 0.35)
- Gun2.BrickColor = BrickColor.new(0.17, 0.17, 0.17)
- Weld4 = Instance.new("Weld")
- Weld4.Parent = Gun
- Weld4.Part0 = Gun
- Weld4.Part1 = Gun2
- Weld4.part1 = Gun2
- local islunging5 = false
- local pew = Instance.new("Sound", owner.character.Head)
- pew.SoundId = "rbxassetid://7400449641"
- pew.Volume = 1
- local select = Instance.new("Sound", owner.character.Head)
- select.SoundId = "rbxassetid://6089348122"
- select.Volume = 1
- cycle = 1
- local screengui2 = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui"))
- screengui2.ResetOnSpawn = true
- screengui2.Name = "Hud"
- local frame = Instance.new("ImageLabel", screengui2)
- frame.BackgroundTransparency = 1
- frame.ImageTransparency = 0.25
- frame.Image = "http://www.roblox.com/asset/?id=341560485"
- frame.Size = UDim2.new(0.165,0,0.125,0)
- frame.Position = frame.Position + UDim2.new(0,1145,0,650)
- local screengui = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui"))
- screengui.ResetOnSpawn = true
- screengui.Name = "cyclename"
- local tl = Instance.new("TextLabel", screengui)
- tl.Size = UDim2.new(0.165,0,0.125,0)
- tl.Position = tl.Position + UDim2.new(0,1145,0,650)
- tl.Text = "Mode = Balloon"
- tl.BackgroundTransparency = 1
- tl.TextColor3 = Color3.new(1, 1, 1)
- Tool.Activated:connect(function()
- if cycle == 1 then
- islunging = true
- pew.PlaybackSpeed = math.random(80, 125)/100
- pew:Play()
- wait(0.25)
- islunging = false
- elseif cycle == 0 then
- islunging2 = true
- pew.PlaybackSpeed = math.random(80, 125)/100
- pew:Play()
- wait(0.25)
- islunging2 = false
- elseif cycle == 2 then
- islunging3 = true
- pew.PlaybackSpeed = math.random(80, 125)/100
- pew:Play()
- wait(0.25)
- islunging3 = false
- elseif cycle == 3 then
- islunging4 = true
- pew.PlaybackSpeed = math.random(80, 125)/100
- pew:Play()
- wait(0.25)
- islunging4 = false
- elseif cycle == 4 then
- islunging5 = true
- pew.PlaybackSpeed = math.random(80, 125)/100
- pew:Play()
- wait(0.25)
- islunging5 = false
- end
- end)
- function thinghere(plr,action,hit)
- if islunging then
- Part = Instance.new("Part",hit)
- Part.CFrame = hit.CFrame * CFrame.new(0,5,0)
- local attachment0 = Instance.new("Attachment")
- attachment0.Parent = hit
- local attachment1 = Instance.new("Attachment")
- attachment1.Parent = Part
- alignposition = Instance.new("RopeConstraint")
- alignposition.Parent = Part
- alignposition.Attachment0 = attachment0
- alignposition.Attachment1 = attachment1
- alignposition.Visible = true
- alignposition.Length = 8
- alignposition.Thickness = 0.25
- alignposition.Restitution = 0
- alignposition.Color = BrickColor.new("Institutional white")
- Part.Size = Vector3.new(1.989, 2.508, 1.989)
- bf = Instance.new("BodyForce")
- bf.Parent = Part
- bf.Force = Vector3.new(0,game.Workspace.Gravity*1.5,0)*Part:GetMass()
- Part.BottomSurface = Enum.SurfaceType.Smooth
- Part.BrickColor = BrickColor.random()
- Part.TopSurface = Enum.SurfaceType.Smooth
- Part.brickColor = BrickColor.random()
- Meshlol = Instance.new("SpecialMesh")
- Meshlol.Parent = Part
- Meshlol.MeshId = "http://www.roblox.com/asset/?id=2687423385"
- end
- end
- function thinghere2(plr,action,part)
- if islunging2 then
- if part.Name ~= "Base" then
- if part.Name ~= owner.Character.Name then
- part:Destroy()
- end
- end
- end
- end
- ammount = 0
- local oldpart
- local newpart
- local function connectParts()
- local beam = Instance.new("WeldConstraint")
- beam.Parent = oldpart
- beam.Part0 = oldpart
- beam.Part1 = newpart
- wait()
- newpart = nil
- oldpart = nil
- end
- function thinghere4(plr,action,hit)
- if islunging4 then
- ammount = ammount + 1
- wait()
- if ammount == 1 then
- oldpart = hit
- elseif ammount == 2 then
- wait()
- newpart = hit
- wait()
- connectParts()
- wait()
- ammount = 0
- end
- end
- end
- ammount2 = 0
- local oldpart2
- local newpart2
- local function connectParts2()
- local attachment0 = Instance.new("Attachment")
- attachment0.Parent = oldpart2
- local attachment1 = Instance.new("Attachment")
- attachment1.Parent = newpart2
- alignposition = Instance.new("RopeConstraint")
- alignposition.Parent = newpart2
- alignposition.Attachment0 = attachment0
- alignposition.Attachment1 = attachment1
- alignposition.Visible = true
- local distance = math.abs((attachment0.WorldPosition - attachment1.WorldPosition).Magnitude)
- alignposition.Length = distance + 2
- alignposition.Thickness = 0.25
- alignposition.Restitution = 0.25
- wait()
- newpart2 = nil
- oldpart2 = nil
- end
- function thinghere5(plr,action,hit)
- if islunging5 then
- ammount2 = ammount2 + 1
- wait()
- if ammount2 == 1 then
- oldpart2 = hit
- elseif ammount2 == 2 then
- wait()
- newpart2 = hit
- wait()
- connectParts2()
- wait()
- ammount2 = 0
- end
- end
- end
- function thinghere3(plr,action,hit)
- if islunging3 then
- Partlol = Instance.new("Part",game.Workspace)
- Partlol.Size = Vector3.new(3.5,3.5,3.5)
- Partlol.CFrame = hit
- Meshlol2 = Instance.new("SpecialMesh")
- Meshlol2.Parent = Partlol
- Meshlol2.MeshId = "http://www.roblox.com/asset/?id=5814577268"
- Meshlol2.TextureId = "http://www.roblox.com/asset/?id=5814579940"
- Meshlol2.Scale = Vector3.new(1.75, 1.75, 1.75)
- end
- end
- function Cycleback()
- select:Play()
- cycle = cycle - 1
- if cycle == 0 then
- tl.Text = "Mode = Destroy"
- elseif cycle == -1 then
- tl.Text = "Mode = Rope"
- cycle = 4
- elseif cycle == 3 then
- tl.Text = "Mode = Weld"
- elseif cycle == 2 then
- tl.Text = "Mode = Create"
- elseif cycle == 1 then
- tl.Text = "Mode = Balloon"
- end
- end
- function Cycleup()
- select:Play()
- cycle = cycle + 1
- if cycle == 1 then
- tl.Text = "Mode = Balloon"
- elseif cycle == 2 then
- tl.Text = "Mode = Create"
- elseif cycle == 3 then
- tl.Text = "Mode = Weld"
- elseif cycle == 4 then
- tl.Text = "Mode = Rope"
- elseif cycle == 5 then
- cycle = 0
- tl.Text = "Mode = Destroy"
- end
- end
- local E = Instance.new("RemoteEvent", owner.Character)
- local E2 = Instance.new("RemoteEvent", owner.Character)
- local E3 = Instance.new("RemoteEvent", owner.Character)
- local E4 = Instance.new("RemoteEvent", owner.Character)
- E.Name = "The"
- E2.Name = "The2"
- E3.Name = "The3"
- E4.Name = "The4"
- NLS([[
- local Mouse = owner:GetMouse()
- local E = owner.Character:WaitForChild("The")
- function ButtonDown()
- if Mouse.Target ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- local E2 = owner.Character:WaitForChild("The2")
- function ButtonDown2()
- if Mouse.Hit ~= nil then
- E2:FireServer("Down4",Mouse.Hit)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown2)
- local E3 = owner.Character:WaitForChild("The3")
- function KeyDown(key)
- key = key:lower()
- if key == "q" then
- E3:FireServer("Down3")
- end
- end
- Mouse.KeyDown:Connect(KeyDown)
- local E4 = owner.Character:WaitForChild("The4")
- function KeyDown2(key)
- key = key:lower()
- if key == "e" then
- E4:FireServer("Down2")
- end
- end
- Mouse.KeyDown:Connect(KeyDown2)
- ]],owner.PlayerGui)
- E4.OnServerEvent:Connect(Cycleup)
- E.OnServerEvent:Connect(thinghere2)
- E.OnServerEvent:Connect(thinghere)
- E.OnServerEvent:Connect(thinghere4)
- E.OnServerEvent:Connect(thinghere5)
- E2.OnServerEvent:Connect(thinghere3)
- E3.OnServerEvent:Connect(Cycleback)
Add Comment
Please, Sign In to add comment