Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- Player = game.Players.LocalPlayer
- gun = {"cy(mesh)", "front"}
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- local MyMouse = game.Players.LocalPlayer:GetMouse()
- cannon = false
- function Weld()
- local w = Instance.new("Weld")
- w.Part0 = plr.Character.cy
- w.Part1 = plr.Character["Right Arm"]
- w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) --First CFrame is rotation, second Cframe is where it goes.
- w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -.4, 0) --This is the second brick (the one you want to move most of the
- w.Parent = game.Workspace
- end
- function srd()
- local w = Instance.new("Weld")
- w.Part0 = plr.Character.cy
- w.Part1 = game.Workspace.kut
- w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 2.5) * CFrame.new(0, .5, 0) --First CFrame is rotation, second Cframe is where it goes.
- w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) --This is the second brick (the one you want to move most of the
- w.Parent = game.Workspace
- local w = Instance.new("Weld")
- w.Part0 = game.Workspace.bld
- w.Part1 = game.Workspace.kut
- w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) --First CFrame is rotation, second Cframe is where it goes.
- w.C1 = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) * CFrame.new(0, 1.4, 0) --This is the second brick (the one you want to move most of the
- w.Parent = game.Workspace
- end
- function cyncy2()
- local t = Instance.new("Weld", game.Workspace)
- t.Part0 = plr.Character.cy
- t.Part1 = plr.Character.cy2
- t.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
- t.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -.67, 0)
- end
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "q" then
- cannon = true
- local cy = Instance.new("Part", plr.Character)
- cy.Name = "cy"
- cy.CanCollide = false
- cy.Shape = "Cylinder"
- local cy2 = Instance.new("Part", plr.Character)
- cy2.Name = "cy2"
- cy2.Shape = "Cylinder"
- cy2.CanCollide = true
- cy2.Color = Color3.new(0,0,0)
- local cy2m = Instance.new("CylinderMesh", cy2)
- cy2m.Scale = Vector3.new(.2, .4, .3)
- wait(.1)
- local cym = Instance.new("CylinderMesh", plr.Character.cy)
- cym.Scale = Vector3.new(.3, .7, .5)
- wait(.01)
- Weld()
- cyncy2()
- end
- end)
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "e" and cannon == true then
- cannon = false
- plr.Character.cy:Destroy()
- plr.Character.cy2:Destroy()
- if game.Workspace.kut then
- game.Workspace.kut:Destroy()
- end
- end
- end)
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "z" and cannon == true then
- local function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -35 -- -n tells how much health to subtract. You can also add health with +n
- end
- end
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, .13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- wait(.2)
- local b = Instance.new("Part", game.Workspace)
- b.Shape = "Ball"
- b.Size = Vector3.new(3,3,3)
- b.Color = Color3.new(0, 0, 255)
- b.Name = "big"
- b.CFrame = game.Players.LocalPlayer.Character.cy2.CFrame *CFrame.new(0, -4, -.5)
- local bf = Instance.new("BodyVelocity", b)
- bf.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bf.velocity = plr.Character.Torso.CFrame.lookVector*80
- local se = Instance.new("ParticleEmitter", b)
- se.Texture = "http://www.roblox.com/asset/?id=33682777"
- se.Rate = 100
- se.Speed = NumberRange.new(1, 1)
- wait(.1)
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -.13)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- b.Touched:connect(onTouched)
- wait(1)
- b:Destroy()
- end
- end)
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "f" and cannon == true then
- cannon = true
- local function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -10 -- -n tells how much health to subtract. You can also add health with +n
- end
- end
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, .13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- wait(.2)
- local b = Instance.new("Part", game.Workspace)
- b.Shape = "Ball"
- b.Size = Vector3.new(1,1,1)
- b.Name = "lb"
- b.CFrame = game.Players.LocalPlayer.Character.cy2.CFrame *CFrame.new(0, -3, -.5)
- b.Color = Color3.new(0, 0, 255)
- local bf = Instance.new("BodyVelocity", b)
- bf.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bf.velocity = plr.Character.Torso.CFrame.lookVector*80
- local se = Instance.new("ParticleEmitter", b)
- se.Texture = "http://www.roblox.com/asset/?id=33682777"
- se.Rate = 50
- se.Speed = NumberRange.new(1, 1)
- wait(.1)
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -.13)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- b.Touched:connect(onTouched)
- wait(1)
- b:Destroy()
- end
- end)
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "j" and cannon == true then
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- local l = Instance.new("Part", plr.Character)
- l.Name = "thorn"
- l.CFrame = plr.Character.cy2.CFrame *CFrame.new(0, 0, 0)
- local f = Instance.new("SpecialMesh", l)
- f.MeshId = "http://www.roblox.com/asset/?id=1033714"
- f.MeshType = 9
- end
- end)
- MyMouse.KeyUp:connect(function(key)
- if string.lower(key) == "j" then
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- local l = plr.Character.thorn
- l:Destroy()
- wait(.01)
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -.13)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- end
- end)
- cannon1 = {cannon = true}
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "t" then
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, .13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- local handle = Instance.new("Part", game.Workspace)
- handle.Name = "kut"
- local hm = Instance.new("BlockMesh", handle)
- hm.Scale = Vector3.new(.5, .2, .3)
- wait(.01)
- srd()
- end
- end)
- MyMouse.KeyUp:connect(function(key)
- if string.lower(key) == "t" then
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -.13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- end
- end)
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "n" and cannon == true then
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, .13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- local light = Instance.new("SpotLight", plr.Character.cy2)
- light.Angle = 75
- light.Brightness = 100
- light.Face = "Bottom"
- light.Name = "l"
- end
- end)
- MyMouse.KeyUp:connect(function(key)
- if string.lower(key) == "n" then
- plr.Character.cy2.l:Destroy()
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -.13)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
- Run.Stepped:wait(0.01)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement