Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- LocalScript0 = Instance.new("LocalScript")
- ObjectValue1 = Instance.new("ObjectValue")
- ObjectValue2 = Instance.new("ObjectValue")
- ObjectValue3 = Instance.new("ObjectValue")
- Script4 = Instance.new("Script")
- RemoteEvent5 = Instance.new("RemoteEvent")
- ObjectValue6 = Instance.new("ObjectValue")
- Folder7 = Instance.new("Folder")
- StringValue8 = Instance.new("StringValue")
- RemoteEvent9 = Instance.new("RemoteEvent")
- LocalScript0.Name = "meem"
- LocalScript0.Parent = mas
- table.insert(cors,sandbox(LocalScript0,function()
- local dplr = game:GetService('Players').LocalPlayer
- local plr = script:WaitForChild('Player').Value
- local atremote = script:WaitForChild('Trigger').Value
- local maremote = script:WaitForChild('Master').Value
- local stremote = script:WaitForChild('Stop').Value
- Player = plr
- Character = Player.Character
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- ch = Character
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- local Mouse = nil
- if dplr == plr then
- Mouse = plr:GetMouse()
- PlayerGui = Player.PlayerGui
- end
- local Anim="Idle"
- local inAir = false
- local inAir2 = false
- local attack = false
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- local cn = CFrame.new
- mr=math.rad
- local sprintmode=false
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local Anim="Idle"
- local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
- local Neck = Character.Torso:FindFirstChild("Neck")
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- local inairvel=0
- local sine = 0
- local change = 1
- local nextstep=0
- local CanUseWalkSound = true
- idletime = 0
- idletimeM = 0
- idleAnim=0
- local mouse = Player:GetMouse()
- local s2=Instance.new("Sound",Torso)
- local CurId = 1
- s2.EmitterSize = 30
- local s2c=s2:Clone()
- local lastid= "http://www.roblox.com/asset/?id=762141368"
- omegawait = false
- playsong = false
- CookieMode = 1
- s2.SoundId = lastid
- if playsong == true then
- s2:play()
- elseif playsong == false then
- s2:stop()
- end
- lastsongpos= 0
- warn('MeeM script by 123jl123')
- warn('Edit a little by williaminRoblox113')
- warn('Added Actaul Sounds What Where Banned')
- function stopAnimations()
- coroutine.resume(coroutine.create(function()
- Character.Animate:Destroy()
- end))
- coroutine.resume(coroutine.create(function()
- for _,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- end))
- end
- local cR=255
- local cG=0
- local cB=0
- local flg5=1
- local omgidk=1
- local add=7.5
- local color
- game:GetService('RunService').Stepped:Connect(function()
- if omgidk>10000 then omgidk=0 end
- omgidk=omgidk+1
- if cR>=255 then flg5=1 end
- if cG>=255 then flg5=2 end
- if cB>=255 then flg5=3 end
- if flg5==1 then cR=cR-add cG=cG+add end
- if flg5==2 then cG=cG-add cB=cB+add end
- if flg5==3 then cB=cB-add cR=cR+add end
- color=Color3.fromRGB(cR,cG,cB)
- end)
- stopAnimations()
- coroutine.resume(coroutine.create(function()
- Character:WaitForChild("Sound")
- Character.Sound:Destroy()
- end))
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- local Ang=Instance.new("Model")
- Ang.Name="Angles"
- Ang.Parent=Character
- local rrx=Instance.new("NumberValue")
- rrx.Name="X"
- rrx.Parent=Ang
- rrx.Value=0
- local rry=Instance.new("NumberValue")
- rry.Name="Y"
- rry.Parent=Ang
- rry.Value=0
- local rrz=Instance.new("NumberValue")
- rrz.Name="Z"
- rrz.Parent=Ang
- rrz.Value=0
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
- RemoveOutlines(Part)
- return Part
- end
- }
- ,
- Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- }
- ,
- Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- }
- ,
- Weld = {Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
- return Weld
- end
- }
- ,
- Sound = {Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end
- ))
- end
- }
- ,
- ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
- return fp
- end
- }
- }
- local Particle0 = Create("ParticleEmitter"){
- Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (0, 0, 0)),
- Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,.8),NumberSequenceKeypoint.new(0.3,.6),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,.8)}),
- Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.65),NumberSequenceKeypoint.new(0.25,.20),NumberSequenceKeypoint.new(0.7,.18),NumberSequenceKeypoint.new(1,0)}),
- Texture = "rbxassetid://118641183",
- Lifetime = NumberRange.new(0.95),
- Rate = 100,
- VelocitySpread = 60,
- Rotation = NumberRange.new(0),
- RotSpeed = NumberRange.new(-200,200),
- Speed = NumberRange.new(8.0),
- LightEmission = .6,
- LockedToPart = false,
- Acceleration = Vector3.new(0, 4, 0),
- EmissionDirection = "Top",
- Drag = 4,
- Enabled = false
- }
- local Particle1 = Create("ParticleEmitter"){
- Color = ColorSequence.new(Color3.new (0,0,0), Color3.new (.5, .5, .5)),
- Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(.5,.8),NumberSequenceKeypoint.new(1,1)}),
- Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(.5,1),NumberSequenceKeypoint.new(1,.5)}),
- Texture = "rbxassetid://688705835",
- Lifetime = NumberRange.new(.8),
- Rate = 0,
- VelocitySpread = 50,
- ZOffset = .5,
- Rotation = NumberRange.new(0),
- RotSpeed = NumberRange.new(-200,200),
- Speed = NumberRange.new(5.0),
- LightEmission = 0,
- LockedToPart = false,
- Acceleration = Vector3.new(0, -10, 0),
- EmissionDirection = "Top",
- Drag = 1,
- Enabled = false
- }
- so = function(id, par, vol, pit)
- CFuncs.Sound.Create(id, par, vol, pit)
- end
- rayCast = function(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function swait(num)
- if num==0 or num==nil then
- --if Stagger.Value==false or Stun.Value<=100 then
- --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
- game:GetService('RunService').Stepped:Wait(0)
- --end
- else
- for i=0,num do
- --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
- game:GetService('RunService').Stepped:Wait(0)
- --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end]]
- end
- end
- end
- function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = it(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- 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
- local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
- local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
- local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
- local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
- RW.C1 = cn(0, 0.5, 0)
- LW.C1 = cn(0, 0.5, 0)
- RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- spawn(function()
- while Torso:FindFirstChild('Neck') do
- swait()
- sine = sine + change
- hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- coroutine.resume(coroutine.create(function()
- if s2.Parent == nil or s2 == nil then
- s2 = s2c:Clone()
- s2.Parent = Torso
- s2.Name = "BGMusic"
- -- s2.SoundId = lastid
- s2.Pitch = 1
- s2.Volume = 1.5
- s2.Looped = true
- s2.archivable = false
- s2.TimePosition = lastsongpos
- if playsong == true then
- s2:play()
- elseif playsong == false then
- s2:stop()
- end
- else
- lastsongpos=s2.TimePosition
- s2.Pitch = 1
- s2.Volume = 1.5
- s2.Looped = true
- s2.SoundId = lastid
- s2.EmitterSize = 30
- end
- end))
- if hitfloor ~= nil then
- inAir = true
- else
- inAir = false
- end
- if inAir == true then
- if inAir2 == false then
- JumpAfterEffect()
- end
- end
- if hitfloor ~= nil then
- inAir2 = true
- else
- inAir2 = false
- end
- local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = RootPart.Velocity.y
- local wasnotidle = false
- if Anim ~= "Idle" then
- wasnotidle = true
- end
- inairvel=torvel
- if inairvel > 30 then
- inairvel=30
- end
- inairvel=inairvel/50
- if RootPart.Velocity.y > 1 and hitfloor == nil then
- Anim = "Jump"
- elseif RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- elseif Humanoid.Sit == true then
- Anim = "Sit"
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- elseif torvel > 2 and hitfloor ~= nil then
- if sprintmode == true then
- Anim = "Run"
- else
- Anim = "Walk"
- end
- else
- Anim = ""
- end
- if attack == false then
- if Anim == "Walk" then
- if hitfloor ~= nil then
- nextstep = math.cos(sine / 8)
- if nextstep > -0.1 and nextstep < 0.1 and CanUseWalkSound == true then
- CanUseWalkSound = false
- local MaterialName = hitfloor.Material.Name
- if MaterialName =="Plastic"or MaterialName =="SmoothPlastic"then
- so("379483672", Torso,.5, math.random(30,60)/100)
- elseif MaterialName =="Pebble"then
- so("267882971", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Marble"or MaterialName =="Granite"then
- so("379483672", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Grass"then
- so("267882764", Torso,.35, math.random(90,100)/100)
- elseif MaterialName =="Ice"then
- so("265653271", Torso,.8, math.random(70,90)/100)
- elseif MaterialName =="Foil"then
- so("265653271", Torso,.5, math.random(40,60)/100)
- elseif MaterialName =="Concrete"or MaterialName =="Slate"or MaterialName =="Brick" then
- so("267454199", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Wood" or MaterialName =="WoodPlanks"then
- so("267454275", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Sand" then
- so("265653329", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="CorrodedMetal"or MaterialName =="Metal" or MaterialName =="DiamondPlate" then
- so("267882776", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Neon" or hitfloor.Transparency >0.1 then
- so("145180170", Torso,.5, math.random(80,100)/100)
- end
- --nextstep = Humanoid.WalkSpeed
- coroutine.resume(coroutine.create(function()
- wait(.2)
- CanUseWalkSound = true
- end))
- else
- -- nextstep = nextstep - 1
- end
- end
- end
- end
- if Anim == "Idle" then
- idletime = idletime + 1
- else
- if idleAnim == 0 then
- idletime = 0 end
- end
- if idleAnim == 0 and idletime > idletimeM then
- idleAnim =math.random(0,5)
- idletime = 0
- idletimeM = math.random(100,600)
- end
- if wasnotidle == true then
- if Anim == "Idle" then
- idletime = 40
- else
- idletime = 0
- end
- end
- if attack == false then
- if Anim == "Jump" then
- change = 0.5
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-90.5 - 1.5 * math.cos(sine / 8))+inairvel/2, math.rad(0), math.rad(0)), .10)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 5 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 5 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- elseif Anim == "Fall" then
- change = 0.5
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(90 - 1.5 * math.cos(sine / 8))-inairvel, math.rad(0), math.rad(0)), .10)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 5 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 5 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- elseif Anim == "Idle" then
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- if idleAnim == 0 then
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(0 - 5 * math.cos(sine / 8)), math.rad(0), math.rad(5 + 5 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 5 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 5 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- elseif idleAnim == 1 then
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(math.random(-10,10)/100, math.random(-10,10)/100, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20)), .8)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(13.5 - 0.5 * math.cos(sine / 8)), math.rad(-10), math.rad(-20 - 3.5 * math.cos(sine / 8/3))), .8)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3 , 0.6, -.2) * angles(math.rad(1 - 0.5 * math.cos(sine / 8)), math.rad(-27), math.rad(-105 + 0.5 * math.cos(sine / 8))), 0.8)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0.5 * math.cos(sine / 8)), math.rad(-7), math.rad(-110 - 0.5 * math.cos(sine / 8))), 0.8)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.8)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.8)
- if idletime > 10 then
- idleAnim =0
- idletime = 0
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), 1)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), 1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(7), math.rad(5 + 5 * math.cos(sine / 8))), .6)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(-7), math.rad(-5 - 5 * math.cos(sine / 8))), .6)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),1)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),1)
- end
- elseif idleAnim == 2 then
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((idletime*10 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- if idletime > 36 then
- idleAnim =0
- idletime = 0
- end
- elseif idleAnim == 3 then
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((-idletime*10 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- if idletime > 36 then
- idleAnim =0
- idletime = 0
- end
- elseif idleAnim == 4 then
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(idletime*10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- if idletime > 36 then
- idleAnim =0
- idletime = 0
- end
- elseif idleAnim == 5 then
- change = 0.6
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(-idletime*10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- if idletime > 36 then
- idleAnim =0
- idletime = 0
- end
- end
- elseif Anim == "Walk" then
- change = 1.5
- Humanoid.WalkSpeed = 26
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0,-0.05 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7, -0.3 + 0.3 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(-25 - 13 * math.cos(sine / 3.5)),math.rad(2 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 70, math.rad(8 * math.cos(sine / 7))), 0.2)
- Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.new(0, 0, 0 + 0.02 * math.cos(sine / 3.5)) * angles(math.rad(-10 + 3.5 * math.cos(sine / 3.5)), math.rad(0 - 0 * math.cos(sine / 3.5)), math.rad(-8 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 16), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -.0) * angles(math.rad(-10.5 * math.cos(sine / 7*2)) ,math.rad(-70-5 * math.cos(sine / 7)), math.rad(80) - RootPart.RotVelocity.Y / 90), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, -.0) * angles(math.rad(-10.5 * math.cos(sine / 7*2)),math.rad(70-5 * math.cos(sine / 7)), math.rad(-80) - RootPart.RotVelocity.Y / 90), 0.2)
- RH.C0 = RH.C0:lerp( cf(.5, -0.625 - 1 * math.cos(sine / 7) / 2,-0.1+ 0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-26.5 - 80 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 7))), 0.2)
- LH.C0 = LH.C0:lerp( cf(-.5, -0.625 + 1 * math.cos(sine / 7) / 2,-0.1+ -0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-26.5 + 80 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 7))), 0.2)
- else
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- end
- end
- end)
- --[[
- for i = 0,5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- ]]--
- function Attack1()
- attack = true
- for i = 0,2,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-40)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(40 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(-90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- HTorso=nil
- local TheGunHandle = Instance.new("Part")
- TheGunHandle.Reflectance = 0
- TheGunHandle.Transparency = 1
- TheGunHandle.CanCollide = false
- TheGunHandle.Locked = true
- TheGunHandle.Anchored=false
- TheGunHandle.BrickColor = BrickColor.new("Really blue")
- TheGunHandle.Name = "BHandle"
- TheGunHandle.Size = RightArm.Size
- TheGunHandle.Material = "SmoothPlastic"
- TheGunHandle:BreakJoints()
- TheGunHandle.Parent = Character
- TheGunHandle.CFrame = RightArm.CFrame
- local SWeld=weld(TheGunHandle,RightArm,TheGunHandle,cf(0,0,0))
- local function onTouch(part)
- if part.Parent ~= Character and part.Parent.Parent ~= Character then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- if part.Parent:FindFirstChild("Head") then
- HTorso= part.Parent:FindFirstChild("Head")
- end
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- end))
- end
- end
- end
- TheGunHandle.Touched:connect(onTouch)
- for i = 0,5,.1 do if HTorso== nil then
- swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- local bodvol = Create("BodyVelocity")({velocity = RootPart.CFrame.lookVector * 23, P = 50, maxForce = Vector3.new(math.huge, 0, math.huge), Parent = RootPart})
- game:GetService("Debris"):AddItem(bodvol, 0.1)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(40)), .3)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-40 - 0 * math.cos(sine / 8/3))), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.3)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.3)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.3)
- end
- end
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- end))
- if HTorso ~= nil then
- local keeps=true
- local TorsoCF = HTorso.CFrame
- so("1956239759", RootPart,2, 1)
- coroutine.resume(coroutine.create(function()
- TorsoCF = HTorso.CFrame
- while keeps==true do wait()
- HTorso.Anchored=true
- HTorso.CFrame = TorsoCF
- end
- HTorso.Anchored=false
- end))
- RootPart.CFrame= cn(HTorso.Position+Vector3.new(0,-1,0)+HTorso.CFrame.lookVector * 3 ,HTorso.Position)
- RootPart.Anchored=true
- RootPart.Velocity = Vector3.new(0,0,0)
- for i = 0,5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,16,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(360*i)), .35)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-360*i - 0 * math.cos(sine / 8/3))), .35)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(75 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-75 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- coroutine.resume(coroutine.create(function()
- RootPart.CFrame= cn(HTorso.Position+Vector3.new(0,-1,0)+HTorso.CFrame.lookVector * 3 ,HTorso.Position)
- RootPart.Anchored=true
- RootPart.Velocity = Vector3.new(0,0,0)
- end))
- end
- coroutine.resume(coroutine.create(function()
- coroutine.resume(coroutine.create(function()
- RootPart.CFrame= cn(HTorso.Position+Vector3.new(0,-1,0)+HTorso.CFrame.lookVector * 3 ,HTorso.Position+Vector3.new(0,-1,0))
- RootPart.Anchored=true
- RootPart.Velocity = Vector3.new(0,0,0)
- end))
- HTorso.Parent:BreakJoints()
- keeps=false end))
- for i = 0,2,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- coroutine.resume(coroutine.create(function()
- RootPart.Anchored=false
- end))
- end
- for i = 0,5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(-23.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(160 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(160 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- coroutine.resume(coroutine.create(function()
- RootPart.Anchored=false
- end))
- end
- for i = 0,2,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2 , 0.5, -.2) * angles(math.rad(45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-60 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.2) * angles(math.rad(45 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(60 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- coroutine.resume(coroutine.create(function()
- RootPart.Anchored=false
- end))
- end
- RootPart.Anchored=false
- RootPart.Velocity = Vector3.new(0,0,0)
- end
- attack = false
- end
- function ChangeCookie()
- attack = true
- CookieMode = CookieMode+1
- if CookieMode > 6 then
- CookieMode = 1
- end
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-10)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.7, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- local TheGunHandle = Instance.new("Part")
- TheGunHandle.Reflectance = 0
- TheGunHandle.Transparency = 0
- TheGunHandle.CanCollide = true
- TheGunHandle.Locked = true
- TheGunHandle.Anchored=false
- TheGunHandle.BrickColor = BrickColor.new("Really blue")
- TheGunHandle.Name = "BHandle"
- TheGunHandle.Size = Vector3.new(1,0.2,1)
- TheGunHandle.Material = "SmoothPlastic"
- TheGunHandle:BreakJoints()
- TheGunHandle.Parent = workspace
- TheGunHandle.CFrame = RightArm.CFrame
- local MSH = CreateMesh2("SpecialMesh", TheGunHandle, "FileMesh", "1202473244", "", vt(1,1,1), vt(0,0,0))
- MSH.TextureId = "rbxassetid://1202473285"
- if CookieMode == 1 then
- MSH.VertexColor = Vector3.new(1,1,1)
- elseif CookieMode == 2 then
- MSH.VertexColor = Vector3.new(.05,1,.05)
- elseif CookieMode == 3 then
- game:GetService('RunService').Stepped:Connect(function()
- if MSH ~= nil then
- MSH.VertexColor = Vector3.new(color.r,color.g,color.b)
- end
- end)
- elseif CookieMode == 4 then
- MSH.VertexColor = Vector3.new(1,.5,1)
- elseif CookieMode == 5 then
- MSH.VertexColor = Vector3.new(.0,.0,.0)
- elseif CookieMode == 6 then
- MSH.VertexColor = Vector3.new(1,.3,.3)
- end
- local SWeld=weld(TheGunHandle,RightArm,TheGunHandle,cf(0,-1.5,0)*angles(math.rad(90),math.rad(0),math.rad(180)))
- for i = 0,2,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-20 - 0 * math.cos(sine / 8/3))), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-10)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.7, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- TheGunHandle:Destroy()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- attack=false
- end
- function Attack2()
- attack = true
- for i = 0,.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-80)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(80 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.7, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- local TheGunHandle = Instance.new("Part")
- TheGunHandle.Reflectance = 0
- TheGunHandle.Transparency = 0
- TheGunHandle.CanCollide = true
- TheGunHandle.Locked = true
- TheGunHandle.Anchored=false
- TheGunHandle.BrickColor = BrickColor.new("Really blue")
- TheGunHandle.Name = "BHandle"
- TheGunHandle.Size = Vector3.new(1,0.2,1)
- TheGunHandle.Material = "SmoothPlastic"
- TheGunHandle:BreakJoints()
- TheGunHandle.Parent = workspace
- TheGunHandle.CFrame = RightArm.CFrame
- local MSH = CreateMesh2("SpecialMesh", TheGunHandle, "FileMesh", "1202473244", "", vt(1,1,1), vt(0,0,0))
- MSH.TextureId = "rbxassetid://1202473285"
- if CookieMode == 1 then
- MSH.VertexColor = Vector3.new(1,1,1)
- elseif CookieMode == 2 then
- MSH.VertexColor = Vector3.new(.05,1,.05)
- elseif CookieMode == 3 then
- game:GetService('RunService').Stepped:Connect(function()
- if MSH ~= nil then
- MSH.VertexColor = Vector3.new(color.r,color.g,color.b)
- end
- end)
- elseif CookieMode == 4 then
- MSH.VertexColor = Vector3.new(1,.5,1)
- elseif CookieMode == 5 then
- MSH.VertexColor = Vector3.new(.0,.0,.0)
- elseif CookieMode == 6 then
- MSH.VertexColor = Vector3.new(1,.3,.3)
- end
- local SWeld=weld(TheGunHandle,RightArm,TheGunHandle,cf(0,-1.5,0)*angles(math.rad(90),math.rad(0),math.rad(180)))
- for i = 0,.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-80)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(80 - 0 * math.cos(sine / 8/3))), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(70)), .3)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-70 - 0 * math.cos(sine / 8/3))), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- local bodvol = Create("BodyVelocity")({velocity = RootPart.CFrame.lookVector * 50, P = 50, maxForce = Vector3.new(math.huge, math.huge, math.huge), Parent = TheGunHandle})
- game:GetService("Debris"):AddItem(bodvol, 0.1)
- local function onTouch(part)
- if part.Parent ~= Character and part.Parent.Parent ~= Character then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- if part.Parent:FindFirstChild("Head") then
- HTorso= part.Parent:FindFirstChild("Head")
- end
- if HTorso ~= nil then
- so("1575472350", HTorso,1.5, 1)
- local HC = TheGunHandle:Clone()
- coroutine.resume(coroutine.create(function()
- TheGunHandle.TouchInterest:Destroy()
- end))
- coroutine.resume(coroutine.create(function()
- TheGunHandle.Parent = nil
- end))
- local RandomEffect=CookieMode
- if RandomEffect == 1 then
- wait(.5)
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- end))
- local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
- if dplr == plr then
- script.DEvent:FireServer(HHH.MaxHealth, HHH)
- end
- so("260421433", HTorso,1.5, 1)
- elseif RandomEffect == 2 then
- so("260421433", HTorso,1.5, 1)
- wait(1.5)
- HC.Parent = workspace
- HC.CanCollide = false
- HC.Transparency = 1
- HC.Anchored=true
- game:GetService("Debris"):AddItem(HC, 3)
- so("1597566679", HTorso,3, 0.75)
- local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- for i=1,20 do wait(.15)
- if dplr == plr then
- script.DEvent:FireServer(5, HHH)
- end
- end
- wait(.25)
- so("463770058", Torso,5, 1)
- for i=1,5 do
- idleAnim = 1
- idletime = 0
- so("387927244", HTorso,3, 1)
- wait(0.25) end
- end))
- elseif RandomEffect == 3 then
- so("260421433", HTorso,1.5, 1)
- wait(1.5)
- HC.Parent = workspace
- HC.CanCollide = false
- HC.Transparency = 1
- HC.Anchored=true
- game:GetService("Debris"):AddItem(HC, 3)
- so("131314452", HTorso,3, 1)
- local v = Instance.new("BodyVelocity",HTorso)
- v.Velocity = HTorso.CFrame.upVector * 45 v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- wait(0.25)
- v:Destroy()
- wait(0.6)
- if dplr == plr then
- script.DEvent:FireServer(math.huge, HHH)
- end
- so("1561246147", HTorso,10, 1.1)
- wait(1)
- so("2148986081", Torso,10, 0.95)
- for i=1,3 do
- idleAnim = 2
- idletime = 0
- wait(0.5) end
- end))
- elseif RandomEffect == 4 then
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- end))
- so("1460707372", HTorso,1.5, 1.3)
- local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
- HHH.PlatformStand = true
- if dplr == plr then
- script.DEvent:FireServer(HHH.MaxHealth/10, HHH)
- end
- local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(math.huge, math.huge, math.huge), angularvelocity = HTorso.CFrame.lookVector*3, Parent = HTorso})
- game:GetService("Debris"):AddItem(rl, .2)
- wait(1.6)
- HHH.PlatformStand = false
- elseif RandomEffect == 5 then
- wait(.5)
- wait(.8)
- coroutine.resume(coroutine.create(function()
- part.Parent:BreakJoints()
- part.Parent.Parent = nil
- part.Parent:Destroy()
- end))
- swait()
- TheGunHandle.Parent = workspace
- so("138093019", TheGunHandle,1.5, 1)
- wait(2)
- so("525166232", TheGunHandle,1.5, 1)
- game:GetService("Debris"):AddItem(TheGunHandle, 1.5)
- elseif RandomEffect == 6 then
- so("425191758", HTorso,1.5, 1)
- wait(1.35)
- HC.Parent = workspace
- HC.CanCollide = false
- HC.Transparency = 1
- HC.Anchored=true
- game:GetService("Debris"):AddItem(HC, 3)
- so("633129949", HC,3, 1.5)
- local EX = Instance.new("Explosion", workspace)
- EX.Position = HTorso.Position
- EX.BlastPressure = 100000
- EX.BlastRadius = 2
- HTorso:Destroy()
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- end))
- end
- end
- end
- end
- end
- TheGunHandle.Touched:connect(onTouch)
- game:GetService("Debris"):AddItem(TheGunHandle, 60*5)
- coroutine.resume(coroutine.create(function()
- SWeld:Destroy()
- end))
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(70)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-70 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- attack = false
- end
- function Attack3()
- attack = true
- so("132026302", HTorso,2.0, 1.0)
- for i = 0,5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- HTorso=nil
- local TheGunHandle = Instance.new("Part")
- TheGunHandle.Reflectance = 0
- TheGunHandle.Transparency = 1
- TheGunHandle.CanCollide = false
- TheGunHandle.Locked = true
- TheGunHandle.Anchored=false
- TheGunHandle.BrickColor = BrickColor.new("Really blue")
- TheGunHandle.Name = "BHandle"
- TheGunHandle.Size = Head.Size*2
- TheGunHandle.Material = "SmoothPlastic"
- TheGunHandle:BreakJoints()
- TheGunHandle.Parent = Character
- TheGunHandle.CFrame = Head.CFrame
- local SWeld=weld(TheGunHandle,Head,TheGunHandle,cf(0,0,0))
- local function onTouch(part)
- if part.Parent and part.Parent ~= Character and part.Parent.Parent ~= Character then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- local EX = Instance.new("Explosion", workspace)
- EX.Position = Head.Position
- EX.BlastPressure = 0
- EX.BlastRadius = 0
- coroutine.resume(coroutine.create(function()
- part.Parent:BreakJoints()
- part.Parent.Parent = nil
- part.Parent:Destroy()
- end))
- end
- end
- end
- TheGunHandle.Touched:connect(onTouch)
- coroutine.resume(coroutine.create(function()
- while TheGunHandle.Parent ~= nil do
- so("132026314", HTorso,1.5, 1.0)
- wait(.25)
- end
- end))
- for i = 0,25,.1 do swait()
- Humanoid.WalkSpeed = 64
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(math.random(-40,40)/10, math.random(-40,40)/10, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(10+math.random(-40,40) - 0 * math.cos(sine / 8)), math.rad((math.random(-40,40) + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- coroutine.resume(coroutine.create(function()
- TheGunHandle:Destroy()
- end))
- so("864152455", HTorso,3.0, 1.25)
- for i = 0,9,.025 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -2.5 + 0.0 * math.cos(sine / 8)) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- so("131552951", HTorso,2.0, 1)
- attack = false
- end
- function Attack4()
- attack = true
- attack = false
- end
- function JumpAfterEffect()
- if attack == false then
- attack = true
- if sprintmode == true then
- Humanoid.WalkSpeed= 10
- else
- Humanoid.WalkSpeed= 3
- end
- Humanoid.JumpPower= 0
- coroutine.resume(coroutine.create(function()
- local NewParticle = Particle1:Clone()
- local EffectFloor,PosFloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- local EffectHolder = Instance.new("Part")
- EffectHolder.Parent = Character
- EffectHolder.Size = Vector3.new(0.05, 0.05, 0.05)
- EffectHolder.Transparency = 1
- EffectHolder.Anchored=true
- EffectHolder.Material = "Neon"
- EffectHolder.CanCollide = false
- EffectHolder.CFrame = cn(PosFloor)
- NewParticle.Color = ColorSequence.new(EffectFloor.Color, Color3.new (.5, .5, .5))
- NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,EffectFloor.Transparency+.3),NumberSequenceKeypoint.new(.5,EffectFloor.Transparency+.8),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Parent = EffectHolder
- NewParticle:Emit(30)
- so("1161221108", EffectHolder,.7, math.random(100,120)/100)
- game:GetService("Debris"):AddItem(EffectHolder, 3)
- end))
- for i = 1,2.4,.1 do
- swait()
- Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(25-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
- RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, .3, -.6 +-.05 * math.cos(sine / 15.5)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.60, -.0) * angles(math.rad(20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(15 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-15 - 2 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- end
- attack = false
- end
- end
- central = atremote.OnClientEvent:Connect(function(type, key, sctype, target, hit, mtarget)
- if sctype == 'meem' and target == plr then
- if type == 'KeyDown' then
- if key == "z" and attack == false then
- Attack1()
- end
- if key == "x" and attack == false then
- Attack2()
- end
- if key == "c" and attack == false then
- Attack3()
- end
- if key == "v" and attack == false then
- Attack4()
- end
- if key == "e" and attack == false then
- ChangeCookie()
- end
- if key == "m" then
- if playsong == true then
- playsong = false
- s2:stop()
- elseif playsong == false then
- playsong = true
- s2:play()
- end
- end
- if key == "n" then
- CurId = CurId + 1
- if CurId > 5 then
- CurId = 1
- end
- if CurId == 1 then
- lastid= "http://www.roblox.com/asset/?id=762141368"
- elseif CurId == 2 then
- lastid= "http://www.roblox.com/asset/?id=1526833227"
- elseif CurId == 3 then
- lastid= "http://www.roblox.com/asset/?id=972495527"
- elseif CurId == 4 then
- lastid= "http://www.roblox.com/asset/?id=2738012216"
- elseif CurId == 5 then
- lastid= "http://www.roblox.com/asset/?id=1856178072"
- end
- lastsongpos = 0
- s2.TimePosition = lastsongpos
- end
- end
- end
- end)
- stremote.OnClientEvent:Connect(function(plrtype)
- if plrtype == plr then
- central:Disconnect()
- script:Destroy()
- end
- end)
- pcall(function()
- Mouse.Button1Down:Connect(function()
- maremote:FireServer('Button1Down', 'NONE', 'meem', plr, Mouse.Hit, Mouse.Target)
- end)
- Mouse.Button1Up:Connect(function()
- maremote:FireServer('Button1Up', 'NONE', 'meem', plr, Mouse.Hit, Mouse.Target)
- end)
- Mouse.KeyDown:Connect(function(key)
- maremote:FireServer('KeyDown', key, 'meem', plr, Mouse.Hit, Mouse.Target)
- end)
- end)
- end))
- ObjectValue1.Name = "Player"
- ObjectValue1.Parent = LocalScript0
- ObjectValue2.Name = "Trigger"
- ObjectValue2.Parent = LocalScript0
- ObjectValue2.Value = nil
- ObjectValue3.Name = "Master"
- ObjectValue3.Parent = LocalScript0
- ObjectValue3.Value = nil
- Script4.Name = "Damage"
- Script4.Parent = LocalScript0
- table.insert(cors,sandbox(Script4,function()
- local e = script.Parent:WaitForChild('DEvent')
- local r = script.Parent:WaitForChild('REvent')
- function dam(player, d,h)
- h:TakeDamage(d)
- end
- e.OnServerEvent:Connect(dam)
- function ragdoll(player, Character, form)
- local humanoid = Character:FindFirstChildOfClass("Humanoid")
- spawn(function()
- local v = Instance.new('BodyVelocity',Character.Torso)
- v.Velocity = form
- v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(0.3)
- v:Destroy()
- end)
- if humanoid.PlatformStand == false then
- humanoid.JumpPower = 0
- humanoid.PlatformStand = true
- humanoid.WalkSpeed = 0
- local findlefthip = Character.Torso:findFirstChild("Left Hip")
- if findlefthip then
- findlefthip:Remove()
- end
- local glue = Instance.new("Glue", Character.Torso)
- glue.Part0 = Character.Torso
- glue.Part1 = Character["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- --
- local findrighthip = Character.Torso:findFirstChild("Right Hip")
- if findrighthip then
- findrighthip:Remove()
- end
- local glue = Instance.new("Glue", Character.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- --
- local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
- if findrightshoulder then
- findrightshoulder:Remove()
- end
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- --
- local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
- if findleftshoulder then
- findleftshoulder:Remove()
- end
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- local findhead = humanoid.Parent:findFirstChild("Head")
- local findneckat = Character.Torso:findFirstChild("NeckAttachment")
- if findhead and findneckat then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Torso:findFirstChild("Neck") then
- humanoid.Parent.Torso.Neck:destroy()
- end
- end
- end
- end
- r.OnServerEvent:Connect(ragdoll)
- end))
- RemoteEvent5.Name = "DEvent"
- RemoteEvent5.Parent = LocalScript0
- ObjectValue6.Name = "Stop"
- ObjectValue6.Parent = LocalScript0
- ObjectValue6.Value = nil
- Folder7.Name = "VALUES"
- Folder7.Parent = LocalScript0
- StringValue8.Name = "MODE"
- StringValue8.Parent = Folder7
- RemoteEvent9.Name = "REvent"
- RemoteEvent9.Parent = LocalScript0
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement