Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Change your name where it says (YOURNAME)--
- --(Wihout the "()"-s)--
- warn("Made by Meti2000 <3")
- game.Workspace.jassm11.Humanoid.MaxHealth = math.huge
- m = game:service'Players'.LocalPlayer:GetMouse()
- paly = game.Players.LocalPlayer
- char = paly.Character
- ypcall(function()
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "rbxassetid://654790833"
- char.Pants.PantsTemplate = "rbxassetid://576054998"
- end)
- game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
- txtfag.Adornee = Hello
- txtfag.Name = "Hoi."
- txtfag.Size = UDim2.new(2, 0, 1.2, 0)
- txtfag.StudsOffset = Vector3.new(-5, 3, 0)
- local textfag = Instance.new("TextLabel", txtfag)
- textfag.Size = UDim2.new(6, 0, 1, 0)
- textfag.FontSize = "Size10"
- textfag.TextScaled = true
- textfag.TextTransparency = 0
- textfag.BackgroundTransparency = 1
- textfag.TextTransparency = 0
- textfag.TextStrokeTransparency = 0
- textfag.Font = "Cartoon"
- textfag.TextStrokeColor3 = Color3.fromRGB(0,0,0)
- textfag.Text = "y0s"
- wait(0.6)
- textfag.Text = "Let's chill .o."
- wait(0.9)
- textfag.Text = "(YOURNAME) The Doge"
- do
- local filteredMessages = { ['____'] = '___' };
- local onPropertyChanged = function (obj)
- if (obj:isDescendantOf (workspace)) then
- local objText = obj.Text;
- if (objText ~= '___' and objText:find '(%S)') then
- if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
- obj.Text = filteredMessages [objText];
- elseif (not filteredMessages [objText]) then
- obj.Text = '___';
- local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
- filteredMessages [objText] = filtered;
- filteredMessages [filtered] = filtered;
- obj.Text = filtered;
- end;
- end;
- end;
- end;
- local newInstance = Instance.new;
- Instance = {
- new = function (class, parent)
- local obj = newInstance (class, parent);
- if (pcall (function()return obj.Text;end)) then
- obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
- obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
- end;
- return obj;
- end;
- };
- end;
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- particles = nil
- base = Instance.new("ScreenGui",plr.PlayerGui)
- bbg = Instance.new("BillboardGui",plr.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,5,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Highway"
- bbgTl.Text = " "
- bbgTl.TextSize = 40
- bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- plr.Chatted:connect(function(msg)
- bbgTl.Text = msg
- wait(5)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- while true do
- textfag.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- wait(.1)
- end
- end
- end)
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- --it=Instance.new
- local hair3 = Instance.new("Part",char)
- hair3.Material="Neon"
- hair3.CanCollide=false
- hair3.Size=Vector3.new(0.1,0.1,0.1)
- hair3.Transparency=0
- local msh = Instance.new("SpecialMesh",hair3)
- local text = Instance.new("Texture",hair3)
- text.Texture="rbxassetid://151778895"
- msh.MeshId="rbxassetid://151778863"
- msh.Scale=Vector3.new(1.01, 1.01, 1.01)
- local w = Instance.new("Weld",hair3)
- w.Part1=hair3
- w.Part0=Head
- w.C0=CFrame.new(0,0.12,-0.23)
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local gun=false
- local shoot=false
- player=nil
- mana=0
- local defensevalue = 999999
- local speedvalue = 1
- local damagevalue = 1
- local cf = CFrame.new-- make things ez :3
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local stats=Instance.new('Folder',Character)
- stats.Name='Stats'
- local block=Instance.new('BoolValue',stats)
- block.Name='Block'
- block.Value=false
- local stun=Instance.new('BoolValue',stats)
- stun.Name='Stun'
- stun.Value=false
- local defense=Instance.new('NumberValue',stats)
- defense.Name='Defence'
- defense.Value=defensevalue
- local speed=Instance.new('NumberValue',stats)
- speed.Name='Speed'
- speed.Value=speedvalue
- local damagea=Instance.new('NumberValue',stats)
- damagea.Name='Damage'
- damagea.Value=damagevalue
- Humanoid = Character.Humanoid
- if Humanoid:FindFirstChild("Animator")then
- Humanoid:FindFirstChild("Animator"):Destroy()
- end
- Humanoid.WalkSpeed = 3
- music = Instance.new("Sound", Torso)
- music.SoundId = "http://www.roblox.com/asset/?id=182408067"
- music.Volume = math.huge
- music.Looped = true
- wait(0.1)
- music:Play()
- Colorpart1 = Torso.BrickColor.r
- Colorpart2 = Torso.BrickColor.g
- Colorpart3 = Torso.BrickColor.b
- CloakEffectLight2 = Instance.new("PointLight", Torso)
- CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
- CloakEffectLight2.Range = 10
- CloakEffectLight2.Brightness = 10
- CloakEffectLight2.Enabled = true
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Motor"), Instance.new("Motor")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- fat = Instance.new("BindableEvent", script)
- fat.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
- tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
- lastframe = tick()
- script.Heartbeat:Fire() --ayy lmao
- game:GetService("RunService").Heartbeat:connect(function(s, p) --herp derp
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --To use: fat.Event:fat.Event:wait() or fat.Event:connect(function() asdcode end)
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- local TrailColor = ("Dark grey")
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new(TrailColor)
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new(TrailColor)
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- sitting=false
- resting=false
- meditating=false
- sprint=false
- mouse.Button1Down:connect(function()
- end)
- print'Only instinct left is survival.'
- mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k=='z' and attack==false and resting==false and sprint==false and meditating==false then
- attack=true
- if sitting==false then
- sitting=true
- Humanoid.WalkSpeed = 0
- for i=0,1,0.04 do
- fat.Event:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
- end
- elseif sitting==true then
- sitting=false
- for i=0,1,0.04 do
- fat.Event:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
- end
- Humanoid.WalkSpeed = 3
- end
- attack=false
- end
- if k=='x' and attack==false and sitting==false and sprint==false and meditating==false then
- attack=true
- if resting==false then
- resting=true
- Humanoid.WalkSpeed = 0
- for i=0,1,0.04 do
- fat.Event:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
- end
- elseif resting==true then
- resting=false
- for i=0,1,0.04 do
- fat.Event:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
- end
- Humanoid.WalkSpeed = 3
- end
- attack=false
- end
- if k=='c' and attack==false and sitting==false and resting==false and sprint==false then
- attack=true
- if meditating==false then
- meditating=true
- Humanoid.WalkSpeed = 0
- for i=0,1,0.04 do
- fat.Event:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
- end
- elseif meditating==true then
- meditating=false
- for i=0,1,0.04 do
- fat.Event:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
- end
- Humanoid.WalkSpeed = 3
- end
- attack=false
- end
- if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==false then
- sprint=true
- Humanoid.WalkSpeed = 20
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==true then
- sprint=false
- Humanoid.WalkSpeed = 3
- end
- end)
- local sine = 0
- local change = 1
- local val = 0
- fat.Event:connect(function()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(10)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false and sitting==false and resting==false and meditating==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(10+5*math.cos(sine/30))+ math.sin(sine/30)/20),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10-5*math.cos(sine/30))+ -math.sin(sine/30)/20),0.15)
- RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- else
- if attack==false and sitting==true and resting==false and meditating==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(10)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
- else
- if attack==false and sitting==false and resting==true and meditating==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.3)*angles(math.rad(-80-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1,0.75,0.1)*angles(math.rad(215-1*math.cos(sine/30)),math.rad(0),math.rad(-45)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1,0.75,0.1)*angles(math.rad(200-1*math.cos(sine/30)),math.rad(0),math.rad(45)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(25-1*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(10-1*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
- else
- if attack==false and sitting==false and resting==false and meditating==true then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(10-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.25,0.5,-0.5)*angles(math.rad(0),math.rad(165),math.rad(90)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.5,-0.5)*angles(math.rad(0),math.rad(-165),math.rad(-90)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0.1)*angles(math.rad(-30),math.rad(75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-1,0.1)*angles(math.rad(-30),math.rad(-75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
- end
- end
- end
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false and sprint==false then
- change=0.5
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-15*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+15*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
- elseif attack==false and sprint==true then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
- RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
- LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
- RH.C0=clerp(RH.C0,cf(1,-0.9-0.25*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-0.9+0.25*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
- end
- elseif torvel<22 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- end
- end
- end
- end)
- --Created with PenguinAnonymous's compiler
- --PenguinAnonymous is not responsible for damages caused to your game
- --This plugin does not remove things
- --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use
- --If you use this plugin to create your own, please give me credit
- --Errors:
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("Sound")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Sound")
- o6 = Instance.new("Sound")
- o7 = Instance.new("Fire")
- o8 = Instance.new("PointLight")
- o9 = Instance.new("Smoke")
- o10 = Instance.new("ParticleEmitter")
- o11 = Instance.new("PointLight")
- o12 = Instance.new("ParticleEmitter")
- o13 = Instance.new("LocalScript")
- o14 = Instance.new("Animation")
- o15 = Instance.new("Animation")
- o16 = Instance.new("Animation")
- o17 = Instance.new("Script")
- o18 = Instance.new("ParticleEmitter")
- o19 = Instance.new("PointLight")
- o20 = Instance.new("ParticleEmitter")
- o1.Name = "ChargedFireball"
- o1.Parent = mas
- o1.TextureId = "http://www.roblox.com/asset/?id=318924325"
- o1.GripRight = Vector3.new(0, -1, 0)
- o1.GripUp = Vector3.new(1, 0, 0)
- o1.ToolTip = "Fireball"
- o1.CanBeDropped = false
- o2.Name = "Handle"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Bright blue")
- o2.Transparency = 1
- o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
- o2.Rotation = Vector3.new(-90, 0, -90)
- o2.RotVelocity = Vector3.new(1, 1, 1)
- o2.Locked = true
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Shape = Enum.PartType.Ball
- o2.Size = Vector3.new(1, 1, 1)
- o2.CFrame = CFrame.new(4.70000029, 2086, -3.10000014, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
- o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
- o2.Orientation = Vector3.new(-90, -90, 0)
- o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
- o3.Name = "ExplodeSound"
- o3.Parent = o2
- o3.SoundId = "http://www.roblox.com/asset/?id=163277488"
- o3.Volume = math.huge
- o4.Parent = o2
- o4.MeshType = Enum.MeshType.Sphere
- o5.Name = "ChargeSound"
- o5.Parent = o2
- o5.SoundId = "http://www.roblox.com/asset/?id=339027743"
- o5.Volume = math.huge
- o6.Name = "FireSound"
- o6.Parent = o2
- o6.SoundId = "http://www.roblox.com/asset/?id=137304720"
- o6.Volume = 1
- o7.Parent = o2
- o7.Size = 3
- o7.Color = Color3.new(178, 138, 239)
- o7.Enabled = false
- o7.Heat = 0
- o7.Color = Color3.new(178, 138, 239)
- o8.Parent = o2
- o8.Color = Color3.new(178, 138, 239)
- o8.Enabled = false
- o8.Shadows = true
- o8.Color = Color3.new(178, 138, 239)
- o9.Parent = o2
- o9.Size = 0.10000000149012
- o9.Color = Color3.new(178, 138, 239)
- o9.Enabled = false
- o9.RiseVelocity = 0
- o9.Color = Color3.new(178, 138, 239)
- o10.Name = "Fire"
- o10.Parent = o2
- o10.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
- o10.Rotation = NumberRange.new(-180,180)
- o10.Size = NumberSequence.new(1.25,2)
- o10.Color = ColorSequence.new(Color3.new(178, 138, 239),Color3.new(178, 138, 239))
- o10.LightEmission = 1
- o10.Texture = "http://www.roblox.com/asset/?id=1057317572"
- o10.ZOffset = 1
- o10.Acceleration = Vector3.new(0, 12.5, 0)
- o10.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
- o10.Rate = 50
- o10.RotSpeed = NumberRange.new(-180,180)
- o10.Speed = NumberRange.new(0,0)
- o10.VelocitySpread = 0
- o10.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o11.Name = "Light"
- o11.Parent = o2
- o11.Color = Color3.new(1, 0.654902, 0.235294)
- o11.Shadows = true
- o11.Color = Color3.new(1, 0.654902, 0.235294)
- o12.Name = "Sparks"
- o12.Parent = o2
- o12.Size = NumberSequence.new(0.625,0)
- o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o12.LightEmission = 1
- o12.Texture = "http://www.roblox.com/asset/?id=1057317572"
- o12.ZOffset = 1
- o12.Acceleration = Vector3.new(0, 10, 0)
- o12.Lifetime = NumberRange.new(0.5,0.82499998807907)
- o12.Rate = 50
- o12.Speed = NumberRange.new(1,3)
- o12.VelocitySpread = 180
- o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o13.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --Originally by Stickmasterluke, modified by BombHunter2000
- sp=script.Parent
- plr=game.Players.localPlayer
- --Bomb--
- damage={inf,inf}
- firerate=2
- bombvelocity=100
- chargetime=4
- extrasize=4
- --------
- rate=1/30
- debris=game:GetService("Debris")
- equipped=false
- check=true
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- a.ChildAdded:wait()
- end
- return a:FindFirstChild(b)
- end
- local anim2=waitfor(sp,"ChargeEnergyBall")
- local anim3=waitfor(sp,"RightSlash")
- function onEquipped(mouse)
- sp.Handle.Transparency=1
- equipped=true
- if chargeanim~=nil then
- chargeanim:Stop()
- end
- if mouse~=nil then
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- down=true
- local he=sp.Parent:FindFirstChild("Head")
- local hu=sp.Parent:FindFirstChild("Humanoid")
- if check and he and hu and hu.Health>0 then
- check=false
- mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
- starttime=tick()
- lv=he.CFrame.lookVector
- local mesh=sp.Handle:FindFirstChild("Mesh")
- if mesh~=nil then
- mesh.Scale=Vector3.new(1,1,1)
- end
- local fire=sp.Handle:FindFirstChild("Fire")
- if fire~=nil then
- fire.Size=0
- fire.Enabled=true
- end
- local light=sp.Handle:FindFirstChild("PointLight")
- if light~=nil then
- light.Range=0
- light.Enabled=true
- end
- local smoke=sp.Handle:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Size=0
- smoke.Enabled=false
- end
- if chargeanim~=nil then
- chargeanim:Stop()
- end
- chargeanim=hu:LoadAnimation(anim2)
- if chargeanim then
- chargeanim:Play()
- end
- local lastchargesound=0
- while down and equipped and tick()-starttime<chargetime and hu~=nil and hu.Health>0 do
- local percent=(tick()-starttime)/chargetime
- sp.Handle.Transparency=1+(math.random()*.3)
- local mesh=sp.Handle:FindFirstChild("Mesh")
- if mesh~=nil then
- mesh.Scale=Vector3.new(1,1,1)+(Vector3.new(1,1,1)*extrasize*percent)
- end
- local fire=sp.Handle:FindFirstChild("Fire")
- if fire~=nil then
- fire.Size=percent*extrasize*2
- end
- local light=sp.Handle:FindFirstChild("PointLight")
- if light~=nil then
- light.Range=percent*extrasize*4
- end
- local smoke=sp.Handle:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Size=percent*extrasize*.2
- end
- if tick()-lastchargesound>5 then
- lastchargesound=tick()
- local sound=sp.Handle:FindFirstChild("ChargeSound")
- if sound~=nil then
- sound:Play()
- end
- end
- wait()
- end
- sp.GripPos=Vector3.new(0,0,0)
- sp.Handle.Transparency=1
- throwanim=hu:LoadAnimation(anim3)
- if throwanim then
- throwanim:Play(0,1,8)
- end
- local sound=sp.Handle:FindFirstChild("ChargeSound")
- if sound~=nil then
- sound:Stop()
- end
- local sound=sp.Handle:FindFirstChild("FireSound")
- if sound~=nil then
- sound:Play()
- end
- local fire=sp.Handle:FindFirstChild("Fire")
- if fire~=nil then
- fire.Enabled=false
- end
- local smoke=sp.Handle:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Enabled=false
- end
- local light=sp.Handle:FindFirstChild("PointLight")
- if light~=nil then
- light.Enabled=false
- end
- local shot=sp.Handle:clone()
- if chargeanim~=nil then
- chargeanim:Stop()
- end
- local fire=shot:FindFirstChild("Fire")
- if fire~=nil then
- fire.Enabled=true
- end
- local smoke=shot:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Enabled=true
- end
- local light=shot:FindFirstChild("PointLight")
- if light~=nil then
- light.Enabled=true
- end
- local percent=math.min(math.max((tick()-starttime)/chargetime,0),1)
- local size=(1+(extrasize*percent))
- shot.Size=Vector3.new(1,1,1)*size
- shot.Mesh.Scale=Vector3.new(1,1,1)*(size/shot.Size.Y)
- shot.Name="Effect"
- shot.CanCollide=false
- shot.Transparency=1
- if mouse~=nil then
- shot.Velocity=((mouse.Hit.p-shot.Position).unit)*bombvelocity
- else
- shot.Velocity=lv*bombvelocity
- end
- shot.RotVelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*20
- local bf=Instance.new("BodyForce")
- bf.force=Vector3.new(0,shot:GetMass()*196.2,0)
- bf.Parent=shot
- shot.Touched:connect(function(hit)
- if shot~=nil and shot.Transparency~=10 and hit~=nil and string.lower(string.sub(hit.Name,1,6))~="effect" then
- if not hit:IsDescendantOf(sp.Parent) then
- local hum=hit.Parent:FindFirstChild("Humanoid")
- if hum~=nil then
- for _,v in pairs(hum:GetChildren()) do
- if v~=nil and v.Name=="creator" then
- v:remove()
- end
- end
- local ct=Instance.new("ObjectValue")
- ct.Name="creator"
- ct.Value=game.Players.LocalPlayer
- ct.Parent=hum
- hum:TakeDamage(damage[1]+(percent*(damage[2]-damage[1])))
- end
- local explosion = Instance.new('Explosion')
- explosion.BlastPressure = percent*extrasize*5
- explosion.BlastRadius = percent*extrasize*2
- explosion.Position = shot.Position
- explosion.Parent = game.Workspace
- local sound=shot:FindFirstChild("ExplodeSound")
- if sound~=nil then
- sound.Volume=.5+(.5*percent)
- sound:Play()
- end
- shot.Transparency=1
- shot.Anchored=true
- local fire=shot:FindFirstChild("Fire")
- if fire~=nil then
- fire.Enabled=false
- end
- local smoke=shot:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Enabled=false
- end
- local light=shot:FindFirstChild("PointLight")
- if light~=nil then
- light.Enabled=false
- end
- wait(.1)
- if shot~=nil then
- shot:remove()
- end
- end
- end
- end)
- debris:AddItem(shot,14)
- shot.Parent=game.Workspace
- wait(firerate)
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- check=true
- end
- end)
- mouse.Button1Up:connect(function()
- down=false
- end)
- end
- end
- function onUnequipped()
- equipped=false
- end
- -- Waits for the child of the specified parent
- local function WaitForChild(parent, childName)
- while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
- return parent[childName]
- end
- local Tool = script.Parent
- local Animations = {}
- local MyHumanoid
- local MyCharacter
- local function PlayAnimation(animationName)
- if Animations[animationName] then
- Animations[animationName]:Play()
- end
- end
- local function StopAnimation(animationName)
- if Animations[animationName] then
- Animations[animationName]:Stop()
- end
- end
- function OnEquipped(mouse)
- MyCharacter = Tool.Parent
- MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
- if MyHumanoid then
- Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim3'))
- end
- PlayAnimation('IdleAnim')
- end
- function OnUnequipped()
- for animName, _ in pairs(Animations) do
- StopAnimation(animName)
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Unequipped:connect(OnUnequipped)
- sp.Equipped:connect(onEquipped)
- sp.Unequipped:connect(onUnequipped)
- end,o13)
- end))
- o14.Name = "ChargeEnergyBall"
- o14.Parent = o1
- o14.AnimationId = "http://www.roblox.com/Asset?ID=30257281"
- o15.Name = "IdleAnim3"
- o15.Parent = o1
- o15.AnimationId = "http://www.roblox.com/asset/?id=69427262"
- o16.Name = "RightSlash"
- o16.Parent = o1
- o16.AnimationId = "http://www.roblox.com/asset?id=187564515"
- o17.Name = "FireTool"
- o17.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- Scripted by duncan778
- local Tool = script.Parent;
- enabled = true
- function fire(v)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- local spawnPos = Tool.Handle.Position
- spawnPos = spawnPos + (v * 4)
- missile.Position = spawnPos
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v * 85
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Firebolt"
- missile.Transparency = 1
- missile.CanCollide = false
- local f = script.Fire:clone()
- f.Parent = missile
- f.Enabled = true
- local s = script.Sparks:clone()
- s.Parent = missile
- s.Enabled = true
- local l = script.Light:clone()
- l.Parent = missile
- l.Enabled = true
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,100,0)
- force.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- local new_script = Tool.BurnScript:clone()
- new_script.Parent = missile
- new_script.Disabled = false
- local CreatorTag = Instance.new("StringValue")
- CreatorTag.Name = "CreatorTag"
- CreatorTag.Value = Tool.Parent.Name
- CreatorTag.Parent = missile
- missile.Parent = game.Workspace
- end
- function gunUp()
- Tool.Handle.Fire.Enabled = false
- Tool.Handle.Sparks.Enabled = false
- Tool.Handle.Light.Enabled = false
- end
- function gunOut()
- Tool.Handle.Fire.Enabled = true
- Tool.Handle.Sparks.Enabled = true
- Tool.Handle.Light.Enabled = true
- end
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local targetPos = humanoid.TargetPoint
- local lookAt = (targetPos - character.Head.Position).unit
- local reload = 5
- gunUp()
- fire(lookAt)
- wait(reload)
- gunOut()
- wait()
- enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end,o17)
- end))
- o18.Name = "Sparks"
- o18.Parent = o17
- o18.Size = NumberSequence.new(0.625,0)
- o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o18.Enabled = false
- o18.LightEmission = 1
- o18.Texture = "http://www.roblox.com/asset/?id=298984512"
- o18.ZOffset = 1
- o18.Acceleration = Vector3.new(0, -5, 0)
- o18.Lifetime = NumberRange.new(1,2)
- o18.Rate = 75
- o18.Speed = NumberRange.new(6,8)
- o18.VelocitySpread = 65
- o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o19.Name = "Light"
- o19.Parent = o17
- o19.Color = Color3.new(1, 0.654902, 0.235294)
- o19.Brightness = 1.5
- o19.Range = 12
- o19.Shadows = true
- o19.Color = Color3.new(1, 0.654902, 0.235294)
- o20.Name = "Fire"
- o20.Parent = o17
- o20.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
- o20.Rotation = NumberRange.new(-180,180)
- o20.Size = NumberSequence.new(2.5,3.75)
- o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o20.Enabled = false
- o20.LightEmission = 0.625
- o20.Texture = "http://www.roblox.com/asset/?id=301811459"
- o20.ZOffset = 1
- o20.Acceleration = Vector3.new(0, 12.5, 0)
- o20.Lifetime = NumberRange.new(0.40000000596046,0.80000001192093)
- o20.Rate = 125
- o20.RotSpeed = NumberRange.new(-180,180)
- o20.Speed = NumberRange.new(0,0)
- o20.VelocitySpread = 180
- o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement