SHOW:
|
|
- or go back to the newest paste.
| 1 | - | ------------- |
| 1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
| 2 | - | --Big Daddy-- |
| 2 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 3 | - | ---------------------------------------------------------------- |
| 3 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 4 | - | --By CKbackup (Sugarie Saffron) -- |
| 4 | + | local RealPlayer = Player |
| 5 | - | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- |
| 5 | + | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
|
| 6 | - | --Discord: Sugarie Saffron#4705 -- |
| 6 | + | |
| 7 | - | ---------------------------------------------------------------- |
| 7 | + | |
| 8 | local Player = game:service'Players'.LocalPlayer | |
| 9 | local chara = Player.Character | |
| 10 | local Mouse = Player:GetMouse() | |
| 11 | local Humanoid = chara:FindFirstChildOfClass("Humanoid")
| |
| 12 | local LeftArm = chara["Left Arm"] | |
| 13 | local RightArm = chara["Right Arm"] | |
| 14 | local LeftLeg = chara["Left Leg"] | |
| 15 | local RightLeg = chara["Right Leg"] | |
| 16 | local Head = chara.Head | |
| 17 | local Torso = chara.Torso | |
| 18 | local RootPart = chara.HumanoidRootPart | |
| 19 | local RootJoint = RootPart.RootJoint | |
| 20 | local attack = false | |
| 21 | local Anim = 'Idle' | |
| 22 | local attacktype = 1 | |
| 23 | local delays = false | |
| 24 | local play = true | |
| 25 | local targetted = nil | |
| 26 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 27 | local velocity = RootPart.Velocity.y | |
| 28 | local sine = 0 | |
| 29 | local change = 1 | |
| 30 | local doe = 0 | |
| 31 | local Create = LoadLibrary("RbxUtility").Create
| |
| 32 | Humanoid.WalkSpeed = 16 | |
| 33 | debby = game:GetService("Debris")
| |
| 34 | ||
| 35 | Humanoid.MaxHealth = 800 | |
| 36 | Humanoid.Health = 800 | |
| 37 | ||
| 38 | Humanoid.Animator.Parent = nil | |
| 39 | chara.Animate.Parent = nil | |
| 40 | ||
| 41 | ||
| 42 | local newMotor = function(part0, part1, c0, c1) | |
| 43 | local w = Create('Motor'){
| |
| 44 | Parent = part0, | |
| 45 | Part0 = part0, | |
| 46 | Part1 = part1, | |
| 47 | C0 = c0, | |
| 48 | C1 = c1, | |
| 49 | } | |
| 50 | return w | |
| 51 | end | |
| 52 | ||
| 53 | function clerp(a, b, t) | |
| 54 | return a:lerp(b, t) | |
| 55 | end | |
| 56 | ||
| 57 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 58 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 59 | ||
| 60 | LeftArm.Size = LeftArm.Size * 1.3 | |
| 61 | RightArm.Size = RightArm.Size * 1.3 | |
| 62 | LeftLeg.Size = LeftLeg.Size * 1.3 | |
| 63 | RightLeg.Size = RightLeg.Size * 1.3 | |
| 64 | Torso.Size = Torso.Size * 1.3 | |
| 65 | Head.Size = Head.Size * 1.3 | |
| 66 | RootPart.Size = RootPart.Size * 1.3 | |
| 67 | ||
| 68 | local RW = newMotor(Torso, RightArm, CFrame.new(1.95, 0, 0), CFrame.new(0, 0, 0)) | |
| 69 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.95, 0, 0), CFrame.new(0, 0, 0)) | |
| 70 | local Neck = newMotor(Torso, Head, CFrame.new(0,1.95,0), CFrame.new()) | |
| 71 | local RH = newMotor(Torso, RightLeg, CFrame.new(.65, -2.6, 0), CFrame.new(0, 0, 0)) | |
| 72 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.65, -2.6, 0), CFrame.new(0, 0, 0)) | |
| 73 | local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-1.3,0), CFrame.new(0,0,0)) | |
| 74 | ||
| 75 | local rarmc1 = RW.C1 | |
| 76 | local larmc1 = LW.C1 | |
| 77 | local rlegc1 = RH.C1 | |
| 78 | local llegc1 = LH.C1 | |
| 79 | ||
| 80 | local resetc1 = false | |
| 81 | ||
| 82 | function PlayAnimationFromTable(table, speed, bool) | |
| 83 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 84 | Neck.C0 = clerp(Neck.C0, table[2], speed) | |
| 85 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 86 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 87 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 88 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 89 | if bool == true then | |
| 90 | if resetc1 == false then | |
| 91 | resetc1 = true | |
| 92 | RootJoint.C1 = RootJoint.C1 | |
| 93 | Neck.C1 = Neck.C1 | |
| 94 | RW.C1 = rarmc1 | |
| 95 | LW.C1 = larmc1 | |
| 96 | RH.C1 = rlegc1 | |
| 97 | LH.C1 = llegc1 | |
| 98 | end | |
| 99 | end | |
| 100 | end | |
| 101 | ||
| 102 | function so(id,par,pit,vol) | |
| 103 | local sou = Instance.new("Sound", par or workspace)
| |
| 104 | if par == chara then | |
| 105 | sou.Parent = chara.Torso | |
| 106 | end | |
| 107 | sou.Volume = vol | |
| 108 | sou.Pitch = pit or 1 | |
| 109 | sou.SoundId = "rbxassetid://" .. id | |
| 110 | sou.PlayOnRemove = true | |
| 111 | sou:Destroy() | |
| 112 | end | |
| 113 | ||
| 114 | --This is just for builds-- | |
| 115 | New = function(Object, Parent, Name, Data) | |
| 116 | local Object = Instance.new(Object) | |
| 117 | for Index, Value in pairs(Data or {}) do
| |
| 118 | Object[Index] = Value | |
| 119 | end | |
| 120 | Object.Parent = Parent | |
| 121 | Object.Name = Name | |
| 122 | return Object | |
| 123 | end | |
| 124 | ||
| 125 | local mus = Instance.new("Sound",Head)
| |
| 126 | mus.Name = "mus" | |
| 127 | mus.SoundId = "rbxassetid://318340174" | |
| 128 | mus.Looped = true | |
| 129 | mus.Volume = 1 | |
| 130 | mus:Play() | |
| 131 | ||
| 132 | for i,v in pairs(chara:children'') do | |
| 133 | if v:IsA("CharacterMesh") or v:IsA("Clothing") or v:IsA("Accoutrement") or v:IsA("BodyColors") then v:Destroy() end
| |
| 134 | end | |
| 135 | ||
| 136 | local sh = Instance.new("Shirt",chara)
| |
| 137 | local pn = Instance.new("Pants",chara)
| |
| 138 | sh.ShirtTemplate = "rbxassetid://17799754" | |
| 139 | pn.PantsTemplate = "rbxassetid://21172424" | |
| 140 | if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end
| |
| 141 | ||
| 142 | skincol = {"Bright yellow","Cool yellow","Pastel yellow","Pastel brown","Br. yellowish orange","White","Bright violet","Medium green","Medium stone grey","Dark stone grey"}
| |
| 143 | ||
| 144 | FHead = New("Part",chara,"FHead",{BrickColor = BrickColor.new(skincol[math.random(1,#skincol)]),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.5999999, 1.29999995, 1.29999995),CFrame = CFrame.new(18.8000259, 5.85002184, -11.199934, -1, 0, 0, 0, 0.999997139, -9.36714151e-10, 0, -9.36711486e-10, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 145 | Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
| |
| 146 | Decal = New("Decal",FHead,"Decal",{Texture = "http://www.roblox.com/asset/?id=46078492",})
| |
| 147 | Weld = New("ManualWeld",FHead,"Weld",{Part0 = FHead,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),})
| |
| 148 | ||
| 149 | Head:ClearAllChildren() | |
| 150 | Instance.new("BlockMesh",Head).Scale = Vector3.new(0,0,0)
| |
| 151 | ||
| 152 | local hedcol = FHead.BrickColor | |
| 153 | local bcols = Instance.new("BodyColors",chara)
| |
| 154 | bcols.Name = "NeoCols" | |
| 155 | bcols.HeadColor = hedcol | |
| 156 | bcols.LeftArmColor = hedcol | |
| 157 | bcols.RightArmColor = hedcol | |
| 158 | bcols.TorsoColor = hedcol | |
| 159 | bcols.LeftLegColor = hedcol | |
| 160 | bcols.RightLegColor = hedcol | |
| 161 | ||
| 162 | function CreateTrailObj(parent,color1,color2,ofsx,ofsz) | |
| 163 | local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
| |
| 164 | local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
| |
| 165 | local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
| |
| 166 | return TEff | |
| 167 | end | |
| 168 | ||
| 169 | LLTr = CreateTrailObj(LeftLeg,"White","White",0,0) | |
| 170 | RLTr = CreateTrailObj(RightLeg,"White","White",0,0) | |
| 171 | LATr = CreateTrailObj(LeftArm,"White","White",0,0) | |
| 172 | RATr = CreateTrailObj(RightArm,"White","White",0,0) | |
| 173 | ||
| 174 | ||
| 175 | function rayCast(Position, Direction, Range, Ignore) | |
| 176 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 177 | end | |
| 178 | ||
| 179 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 180 | if SinglePlayer then | |
| 181 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
| 182 | end | |
| 183 | local List = {}
| |
| 184 | for i, v in pairs(workspace:GetDescendants()) do | |
| 185 | if v:IsA("Model") then
| |
| 186 | if v:findFirstChild("Head") then
| |
| 187 | if v ~= chara then | |
| 188 | if (v.Head.Position - Position).magnitude <= Distance then | |
| 189 | table.insert(List, v) | |
| 190 | end | |
| 191 | end | |
| 192 | end | |
| 193 | end | |
| 194 | end | |
| 195 | return List | |
| 196 | end | |
| 197 | ||
| 198 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 199 | ArtificialHB.Name = "Heartbeat" | |
| 200 | script:waitForChild("Heartbeat")
| |
| 201 | frame = 0.03333333333333 | |
| 202 | tf = 0 | |
| 203 | allowframeloss = false | |
| 204 | tossremainder = false | |
| 205 | lastframe = tick() | |
| 206 | script.Heartbeat:Fire() | |
| 207 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 208 | tf = tf + s | |
| 209 | if tf >= frame then | |
| 210 | if allowframeloss then | |
| 211 | script.Heartbeat:Fire() | |
| 212 | lastframe = tick() | |
| 213 | else | |
| 214 | for i = 1, math.floor(tf / frame) do | |
| 215 | script.Heartbeat:Fire() | |
| 216 | end | |
| 217 | lastframe = tick() | |
| 218 | end | |
| 219 | if tossremainder then | |
| 220 | tf = 0 | |
| 221 | else | |
| 222 | tf = tf - frame * math.floor(tf / frame) | |
| 223 | end | |
| 224 | end | |
| 225 | end) | |
| 226 | function swait(num) | |
| 227 | if num == 0 or num == nil then | |
| 228 | ArtificialHB.Event:wait() | |
| 229 | else | |
| 230 | for i = 0, num*30 do | |
| 231 | ArtificialHB.Event:wait() | |
| 232 | end | |
| 233 | end | |
| 234 | end | |
| 235 | ||
| 236 | EffectModel = Create("Model"){
| |
| 237 | Parent = chara, | |
| 238 | Name = "Effects", | |
| 239 | } | |
| 240 | ||
| 241 | --Effect Functions-- | |
| 242 | Effects = {
| |
| 243 | ||
| 244 | Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor) | |
| 245 | local p = Instance.new("Part",EffectModel)
| |
| 246 | p.BrickColor = BrickColor.new(colour) | |
| 247 | p.Size = partsize | |
| 248 | p.Anchored = true | |
| 249 | p.CanCollide = false | |
| 250 | p.Material = matr | |
| 251 | p.CFrame = cf | |
| 252 | if inverse == true then | |
| 253 | p.Transparency = 1 | |
| 254 | else | |
| 255 | p.Transparency = 0 | |
| 256 | end | |
| 257 | local m = Instance.new("BlockMesh",p)
| |
| 258 | m.Scale = meshstart | |
| 259 | coroutine.wrap(function() | |
| 260 | for i=0,1,factor do | |
| 261 | swait() | |
| 262 | if inverse == true then | |
| 263 | p.Transparency = 1-i | |
| 264 | else | |
| 265 | p.Transparency = i | |
| 266 | end | |
| 267 | m.Scale = m.Scale + meshadd | |
| 268 | if spin == true then | |
| 269 | p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 270 | end | |
| 271 | end | |
| 272 | p:Destroy() | |
| 273 | end)() | |
| 274 | return p | |
| 275 | end, | |
| 276 | ||
| 277 | Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
| 278 | local p = Instance.new("Part",EffectModel)
| |
| 279 | p.BrickColor = BrickColor.new(colour) | |
| 280 | p.Size = partsize | |
| 281 | p.Anchored = true | |
| 282 | p.CanCollide = false | |
| 283 | p.Material = matr | |
| 284 | p.CFrame = cf | |
| 285 | if inverse == true then | |
| 286 | p.Transparency = 1 | |
| 287 | else | |
| 288 | p.Transparency = 0 | |
| 289 | end | |
| 290 | local m = Instance.new("SpecialMesh",p)
| |
| 291 | m.MeshType = "Sphere" | |
| 292 | m.Scale = meshstart | |
| 293 | coroutine.wrap(function() | |
| 294 | for i=0,1,factor do | |
| 295 | swait() | |
| 296 | if inverse == true then | |
| 297 | p.Transparency = 1-i | |
| 298 | else | |
| 299 | p.Transparency = i | |
| 300 | end | |
| 301 | m.Scale = m.Scale + meshadd | |
| 302 | end | |
| 303 | p:Destroy() | |
| 304 | end)() | |
| 305 | return p | |
| 306 | end, | |
| 307 | ||
| 308 | Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
| 309 | local p = Instance.new("Part",EffectModel)
| |
| 310 | p.BrickColor = BrickColor.new(colour) | |
| 311 | p.Size = partsize | |
| 312 | p.Anchored = true | |
| 313 | p.CanCollide = false | |
| 314 | p.Material = matr | |
| 315 | p.CFrame = cf | |
| 316 | if inverse == true then | |
| 317 | p.Transparency = 1 | |
| 318 | else | |
| 319 | p.Transparency = 0 | |
| 320 | end | |
| 321 | local m = Instance.new("CylinderMesh",p)
| |
| 322 | m.Scale = meshstart | |
| 323 | coroutine.wrap(function() | |
| 324 | for i=0,1,factor do | |
| 325 | swait() | |
| 326 | if inverse == true then | |
| 327 | p.Transparency = 1-i | |
| 328 | else | |
| 329 | p.Transparency = i | |
| 330 | end | |
| 331 | m.Scale = m.Scale + meshadd | |
| 332 | end | |
| 333 | p:Destroy() | |
| 334 | end)() | |
| 335 | return p | |
| 336 | end, | |
| 337 | ||
| 338 | Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor) | |
| 339 | local p = Instance.new("Part",EffectModel)
| |
| 340 | p.BrickColor = BrickColor.new(colour) | |
| 341 | p.Size = Vector3.new() | |
| 342 | p.Anchored = true | |
| 343 | p.CanCollide = false | |
| 344 | p.CFrame = cf | |
| 345 | if inverse == true then | |
| 346 | p.Transparency = 1 | |
| 347 | else | |
| 348 | p.Transparency = 0 | |
| 349 | end | |
| 350 | local m = Instance.new("SpecialMesh",p)
| |
| 351 | m.MeshId = "rbxassetid://20329976" | |
| 352 | m.Scale = meshstart | |
| 353 | coroutine.wrap(function() | |
| 354 | for i=0,1,factor do | |
| 355 | swait() | |
| 356 | if inverse == true then | |
| 357 | p.Transparency = 1-i | |
| 358 | else | |
| 359 | p.Transparency = i | |
| 360 | end | |
| 361 | m.Scale = m.Scale + meshadd | |
| 362 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
| 363 | end | |
| 364 | p:Destroy() | |
| 365 | end)() | |
| 366 | return p | |
| 367 | end, | |
| 368 | ||
| 369 | Ring = function(cf,meshstart,meshadd,colour,inverse,factor) | |
| 370 | local p = Instance.new("Part",EffectModel)
| |
| 371 | p.BrickColor = BrickColor.new(colour) | |
| 372 | p.Size = Vector3.new() | |
| 373 | p.Anchored = true | |
| 374 | p.CanCollide = false | |
| 375 | p.CFrame = cf | |
| 376 | if inverse == true then | |
| 377 | p.Transparency = 1 | |
| 378 | else | |
| 379 | p.Transparency = 0 | |
| 380 | end | |
| 381 | local m = Instance.new("SpecialMesh",p)
| |
| 382 | m.MeshId = "rbxassetid://3270017" | |
| 383 | m.Scale = meshstart | |
| 384 | coroutine.wrap(function() | |
| 385 | for i=0,1,factor do | |
| 386 | swait() | |
| 387 | if inverse == true then | |
| 388 | p.Transparency = 1-i | |
| 389 | else | |
| 390 | p.Transparency = i | |
| 391 | end | |
| 392 | m.Scale = m.Scale + meshadd | |
| 393 | end | |
| 394 | p:Destroy() | |
| 395 | end)() | |
| 396 | return p | |
| 397 | end, | |
| 398 | ||
| 399 | Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor) | |
| 400 | local p = Instance.new("Part",EffectModel)
| |
| 401 | p.BrickColor = BrickColor.new(colour) | |
| 402 | p.Size = Vector3.new() | |
| 403 | p.Anchored = true | |
| 404 | p.CanCollide = false | |
| 405 | p.CFrame = cf | |
| 406 | if inverse == true then | |
| 407 | p.Transparency = 1 | |
| 408 | else | |
| 409 | p.Transparency = 0 | |
| 410 | end | |
| 411 | local m = Instance.new("SpecialMesh",p)
| |
| 412 | m.MeshId = meshid | |
| 413 | m.TextureId = textid | |
| 414 | m.Scale = meshstart | |
| 415 | coroutine.wrap(function() | |
| 416 | for i=0,1,factor do | |
| 417 | swait() | |
| 418 | if inverse == true then | |
| 419 | p.Transparency = 1-i | |
| 420 | else | |
| 421 | p.Transparency = i | |
| 422 | end | |
| 423 | m.Scale = m.Scale + meshadd | |
| 424 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
| 425 | end | |
| 426 | p:Destroy() | |
| 427 | end)() | |
| 428 | return p | |
| 429 | end, | |
| 430 | ||
| 431 | Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor) | |
| 432 | local p = Instance.new("Part",EffectModel)
| |
| 433 | p.BrickColor = BrickColor.new(colour) | |
| 434 | p.Size = partsize | |
| 435 | p.Anchored = true | |
| 436 | p.CanCollide = false | |
| 437 | p.Material = matr | |
| 438 | p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 439 | if inverse == true then | |
| 440 | p.Transparency = 1 | |
| 441 | else | |
| 442 | p.Transparency = 0 | |
| 443 | end | |
| 444 | local m = Instance.new("SpecialMesh",p)
| |
| 445 | m.MeshType = "Sphere" | |
| 446 | m.Scale = meshstart | |
| 447 | coroutine.wrap(function() | |
| 448 | for i=0,1,factor do | |
| 449 | swait() | |
| 450 | if inverse == true then | |
| 451 | p.Transparency = 1-i | |
| 452 | else | |
| 453 | p.Transparency = i | |
| 454 | end | |
| 455 | m.Scale = m.Scale + meshadd | |
| 456 | p.CFrame = p.CFrame * CFrame.new(0,move,0) | |
| 457 | end | |
| 458 | p:Destroy() | |
| 459 | end)() | |
| 460 | return p | |
| 461 | end, | |
| 462 | ||
| 463 | } | |
| 464 | ||
| 465 | function GetDudesTorso(c) | |
| 466 | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
| |
| 467 | if torsy ~= nil then | |
| 468 | return torsy | |
| 469 | end | |
| 470 | end | |
| 471 | ||
| 472 | function BodyVel(part,faws) | |
| 473 | local bodyvel = Instance.new("BodyVelocity",part)
| |
| 474 | local pep = 10000000 | |
| 475 | bodyvel.P = pep | |
| 476 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
| 477 | bodyvel.Velocity = faws | |
| 478 | debby:AddItem(bodyvel,.2) | |
| 479 | end | |
| 480 | ||
| 481 | function Dmg(dude,dmg,env,faws,trip,efftyp,toim) | |
| 482 | if dude and dude ~= chara then | |
| 483 | if dude:FindFirstChild("HITO") then return end
| |
| 484 | local debounce = Instance.new("BoolValue",dude)
| |
| 485 | debounce.Name = "HITO" | |
| 486 | debby:AddItem(debounce,toim) | |
| 487 | local hum = dude:FindFirstChildOfClass("Humanoid")
| |
| 488 | local dam = dmg+math.random(-env,env) | |
| 489 | local teksu = "-"..dam | |
| 490 | if hum then | |
| 491 | local finhel = hum.Health - dam | |
| 492 | if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
| |
| 493 | Instance.new("BoolValue",dude).Name = "DEATHED"
| |
| 494 | end | |
| 495 | hum.Health = hum.Health - dam | |
| 496 | end | |
| 497 | coroutine.wrap(function() | |
| 498 | local naeeym2 = Instance.new("BillboardGui",dude)
| |
| 499 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 500 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 501 | naeeym2.Adornee = dude:FindFirstChild("Head")
| |
| 502 | naeeym2.Name = "TalkingBillBoard" | |
| 503 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 504 | tecks2.BackgroundTransparency = 1 | |
| 505 | tecks2.BorderSizePixel = 0 | |
| 506 | tecks2.Text = teksu | |
| 507 | tecks2.Font = "Fantasy" | |
| 508 | tecks2.TextSize = 24 | |
| 509 | tecks2.TextStrokeTransparency = 0 | |
| 510 | tecks2.TextColor3 = Color3.new(1,1,1) | |
| 511 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 512 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 513 | swait(.2) | |
| 514 | for i = 0,1,.05 do | |
| 515 | swait() | |
| 516 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
| 517 | tecks2.TextStrokeTransparency = i | |
| 518 | tecks2.TextTransparency = i | |
| 519 | end | |
| 520 | naeeym2:Destroy() | |
| 521 | end)() | |
| 522 | local torsy = GetDudesTorso(dude) | |
| 523 | if torsy then | |
| 524 | for i=1,dam/5 do | |
| 525 | local blp = Instance.new("Part",EffectModel)
| |
| 526 | blp.Size = Vector3.new(.3,.3,.3) | |
| 527 | blp.BrickColor = BrickColor.new("Crimson")
| |
| 528 | blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 529 | blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0) | |
| 530 | blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) | |
| 531 | --local blm = Instance.new("SpecialMesh",blp)
| |
| 532 | --blm.MeshType = "Sphere" | |
| 533 | coroutine.wrap(function() | |
| 534 | swait(.2) | |
| 535 | blp.Orientation = Vector3.new(0,blp.Orientation.y,0) | |
| 536 | for i=0,1,.1 do | |
| 537 | swait() | |
| 538 | blp.Transparency = i | |
| 539 | blp.Size = blp.Size + Vector3.new(.05,-.05,.05) | |
| 540 | end | |
| 541 | blp:Destroy() | |
| 542 | end)() | |
| 543 | end | |
| 544 | if efftyp == "Blunt" then | |
| 545 | puncheff(torsy) | |
| 546 | elseif efftyp == "Sharp" then | |
| 547 | slasheff(torsy) | |
| 548 | elseif efftyp == "Shot" then | |
| 549 | so(144884872,torsy,.9,1) | |
| 550 | end | |
| 551 | if faws ~= 0 then | |
| 552 | BodyVel(torsy,faws) | |
| 553 | end | |
| 554 | if trip == true then | |
| 555 | torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 556 | torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 557 | end | |
| 558 | end | |
| 559 | end | |
| 560 | end | |
| 561 | ||
| 562 | function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim) | |
| 563 | for _, c in pairs(workspace:GetDescendants()) do | |
| 564 | local hum = c:FindFirstChildOfClass("Humanoid")
| |
| 565 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
| |
| 566 | local head = GetDudesTorso(c) | |
| 567 | if head ~= nil then | |
| 568 | local targ = head.Position - par.Position | |
| 569 | local mag = targ.magnitude | |
| 570 | if magni >= mag and c ~= chara then | |
| 571 | Dmg(c,dmg,env,faws,trip,efftyp,toim) | |
| 572 | end | |
| 573 | end | |
| 574 | end | |
| 575 | end | |
| 576 | end | |
| 577 | ||
| 578 | function CamShake(par,magni,env,dur) | |
| 579 | coroutine.wrap(function() | |
| 580 | for i=0,dur*60 do | |
| 581 | swait() | |
| 582 | Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10) | |
| 583 | end | |
| 584 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 585 | end)() | |
| 586 | end | |
| 587 | ||
| 588 | function puncheff(par) | |
| 589 | if par.Parent:FindFirstChild("DebounceHit")==nil then
| |
| 590 | so(386946017,par,math.random(6,8)/10,1) | |
| 591 | local bla = Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(1,1,1),"Neon","White",false,.1) | |
| 592 | CamShake(bla,30,.5,.5) | |
| 593 | end | |
| 594 | end | |
| 595 | ||
| 596 | function slasheff(par) | |
| 597 | if par.Parent:FindFirstChild("DebounceHit")==nil then
| |
| 598 | local cho = math.random(1,3) | |
| 599 | if cho == 1 then | |
| 600 | so(444667824,par,1,1) | |
| 601 | elseif cho == 2 then | |
| 602 | so(444667844,par,1,1) | |
| 603 | elseif cho == 3 then | |
| 604 | so(444667859,par,1,1) | |
| 605 | end | |
| 606 | --function(cf,partsize,meshstart,meshadd,matr,colour,factor) | |
| 607 | Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1) | |
| 608 | end | |
| 609 | end | |
| 610 | ||
| 611 | function smasheff(pos,projsiz,projnum,grousiz,grono,grospr,projfor) | |
| 612 | local hit,hitpos = rayCast(pos,Vector3.new(0,-1,0),4,chara) | |
| 613 | if hit ~= nil then | |
| 614 | for i = 1, projnum do | |
| 615 | local p = Instance.new("Part",EffectModel)
| |
| 616 | p.BrickColor = hit.BrickColor | |
| 617 | p.Material = hit.Material | |
| 618 | p.Size = Vector3.new(projsiz,projsiz,projsiz) | |
| 619 | p.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
| 620 | p.CanCollide = false | |
| 621 | p.Velocity = projfor | |
| 622 | CreateTrailObj(p,Color3.new(1,1,1),Color3.new(1,1,1),0,0).Enabled = true | |
| 623 | coroutine.resume(coroutine.create(function() | |
| 624 | swait(.2) | |
| 625 | p.CanCollide = true | |
| 626 | swait(3) | |
| 627 | for i = 0,1,.01 do | |
| 628 | swait() | |
| 629 | p.Transparency = i | |
| 630 | end | |
| 631 | p:Destroy() | |
| 632 | end)) | |
| 633 | end | |
| 634 | for i = 1, grono do | |
| 635 | local size = math.random(4,6) | |
| 636 | local gtrace = Instance.new("Part",EffectModel)
| |
| 637 | gtrace.BrickColor = hit.BrickColor | |
| 638 | gtrace.Material = hit.Material | |
| 639 | gtrace.Size = Vector3.new(grousiz,grousiz,grousiz) | |
| 640 | gtrace.Anchored = true | |
| 641 | gtrace.CanCollide = false | |
| 642 | gtrace.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 643 | coroutine.wrap(function() | |
| 644 | swait(3) | |
| 645 | for i = 0,1,.01 do | |
| 646 | swait() | |
| 647 | gtrace.Transparency = i | |
| 648 | end | |
| 649 | gtrace:Destroy() | |
| 650 | end)() | |
| 651 | end | |
| 652 | end | |
| 653 | end | |
| 654 | ||
| 655 | function attackone() | |
| 656 | attack = true | |
| 657 | Humanoid.WalkSpeed = 10 | |
| 658 | for i=0,2,.1 do | |
| 659 | swait() | |
| 660 | PlayAnimationFromTable({
| |
| 661 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
| 662 | CFrame.new(-0.0638873279, 2.01559806, -0.402032375, 0.492402941, -0.214610398, 0.84349376, -0.173647985, 0.925416708, 0.336823881, -0.852869213, -0.312324047, 0.418411195), | |
| 663 | CFrame.new(1.10928118, 0.356215954, -1.26063514, 0.766042948, 0.642789483, 0, 0, 0, -1, -0.642789423, 0.766042948, 0), | |
| 664 | CFrame.new(-1.95000088, -9.79751348e-07, 8.32974911e-06, 0.766044021, 0.633022547, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.49011612e-07, 0.173648953, 0.984807789), | |
| 665 | CFrame.new(0.650009155, -2.5999999, -1.52587891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 666 | CFrame.new(-0.650007129, -2.5999999, 1.07288361e-05, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
| 667 | }, .3, false) | |
| 668 | end | |
| 669 | RATr.Enabled = true | |
| 670 | so(487907203,Head,1,3) | |
| 671 | so(200632136,RightArm,.6,1) | |
| 672 | Humanoid.WalkSpeed = 0 | |
| 673 | BodyVel(RootPart,RootPart.CFrame.lookVector*70) | |
| 674 | for i=0,1,.1 do | |
| 675 | swait() | |
| 676 | PlayAnimationFromTable({
| |
| 677 | CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688), | |
| 678 | CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795), | |
| 679 | CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785), | |
| 680 | CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491), | |
| 681 | CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297), | |
| 682 | CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1), | |
| 683 | }, .3, false) | |
| 684 | MagnitudeDmg(RightArm,2.5,40,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5) | |
| 685 | end | |
| 686 | swait(.5) | |
| 687 | Humanoid.WalkSpeed = 16 | |
| 688 | RATr.Enabled = false | |
| 689 | attack = false | |
| 690 | end | |
| 691 | ||
| 692 | function dashattack() | |
| 693 | attack = true | |
| 694 | Humanoid.WalkSpeed = 2 | |
| 695 | so(487911937,Head,1,3) | |
| 696 | for i=0,2,.1 do | |
| 697 | swait() | |
| 698 | PlayAnimationFromTable({
| |
| 699 | CFrame.new(0, -0.260801345, 0.37769106, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
| 700 | CFrame.new(0, 1.88156867, 0.187936544, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438), | |
| 701 | CFrame.new(2.54999161, 0.600001335, 9.71555778e-07, 0, -1, 0, 1, 0, 2.98023224e-08, 2.98023224e-08, 0, 1), | |
| 702 | CFrame.new(-2.54999542, 0.599999964, 3.99351336e-07, 0, 1, 0, -1.00000012, 0, 9.83476639e-07, 9.23871994e-07, 0, 1.00000012), | |
| 703 | CFrame.new(0.649994314, -2.32730556, 0.445138514, 0.939692736, 0, -0.342019886, 0.116977625, 0.939692736, 0.321393639, 0.321393639, -0.342019886, 0.883022428), | |
| 704 | CFrame.new(-0.649998546, -2.32730579, 0.445138097, 0.939692736, 0, 0.342019886, -0.116977625, 0.939692736, 0.321393639, -0.321393639, -0.342019886, 0.883022428), | |
| 705 | }, .4, false) | |
| 706 | end | |
| 707 | RATr.Enabled = true | |
| 708 | Humanoid.WalkSpeed = 0 | |
| 709 | local bodyvel = Instance.new("BodyVelocity",RootPart)
| |
| 710 | local pep = 10000000 | |
| 711 | bodyvel.P = pep | |
| 712 | bodyvel.MaxForce = Vector3.new(pep,0,pep) | |
| 713 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
| 714 | local dasu = 0 | |
| 715 | local par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara) | |
| 716 | repeat | |
| 717 | dasu = dasu + 1 | |
| 718 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
| 719 | par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara) | |
| 720 | so(10730819,Torso,1,2) | |
| 721 | CamShake(Torso,60,.4,.1) | |
| 722 | smasheff(Torso.Position,math.random(10,20)/10,math.random(2,3),math.random(10,20)/10,math.random(2,3),2,(RootPart.CFrame.lookVector*-math.random(30,50))+Vector3.new(math.random(-5,5),math.random(50,70),math.random(-5,5))) | |
| 723 | swait() | |
| 724 | Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05) | |
| 725 | PlayAnimationFromTable({
| |
| 726 | CFrame.new(-0.11852926, -0.0870857984, -0.16250591, 0.499998987, 0.433013916, -0.75, 0, 0.866024852, 0.500001073, 0.866025984, -0.25000003, 0.433011562), | |
| 727 | CFrame.new(1.67643725e-06, 1.94997621, -1.7765941e-06, 0.866025209, -8.34465027e-07, 0.500000358, 7.30156898e-07, 1.00000012, 3.57627869e-07, -0.500000417, 6.70552254e-08, 0.866025209), | |
| 728 | CFrame.new(2.30981135, 0.0232107639, -1.46663569e-05, 0.499999255, -0.866025925, 3.06963921e-06, 0.866025925, 0.499999285, -2.25007534e-06, 4.17232513e-07, 3.78489494e-06, 1), | |
| 729 | CFrame.new(-0.942220747, 0.533102334, -1.07246113, 0.173649132, -0.63302058, 0.754407704, 0.98480767, 0.11162056, -0.1330221, -1.62422657e-06, 0.76604557, 0.642786443), | |
| 730 | CFrame.new(0.650001526, -2.59999871, -7.62939544e-06, 1, 0, 2.98023224e-08, 0, 1.00000012, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1.00000012), | |
| 731 | CFrame.new(-0.957818449, -2.31074858, -0.794715047, 0.939692378, 1.1920929e-07, 0.342020839, 0.116977721, 0.939692855, -0.321393222, -0.321394473, 0.342019558, 0.883022189), | |
| 732 | }, .4, false) | |
| 733 | MagnitudeDmg(Torso,6,30,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5) | |
| 734 | until par ~= nil or dasu >= 100 | |
| 735 | bodyvel:Destroy() | |
| 736 | Humanoid.WalkSpeed = 16 | |
| 737 | RATr.Enabled = false | |
| 738 | attack = false | |
| 739 | end | |
| 740 | ||
| 741 | function thesurou() | |
| 742 | attack = true | |
| 743 | Humanoid.WalkSpeed = 0 | |
| 744 | local grab = nil | |
| 745 | local torsy = nil | |
| 746 | local hum = nil | |
| 747 | for i, v in pairs(FindNearestTorso(Torso.Position, 6)) do | |
| 748 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
| |
| 749 | hum = v:FindFirstChildOfClass("Humanoid")
| |
| 750 | torsy = GetDudesTorso(v) | |
| 751 | grab = v | |
| 752 | end | |
| 753 | end | |
| 754 | so(200632136,RootPart,.8,1) | |
| 755 | for i = 0,1,.1 do | |
| 756 | swait() | |
| 757 | PlayAnimationFromTable({
| |
| 758 | CFrame.new(0, -0.160800725, -0.377691686, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 759 | CFrame.new(0, 2.01372528, -0.214328468, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789), | |
| 760 | CFrame.new(1.30359828, 0.346287906, -1.12627494, 0.866025269, 0.500000358, -4.18942193e-07, -0.0868241489, 0.150382817, -0.984807909, -0.492404312, 0.852868497, 0.173647434), | |
| 761 | CFrame.new(-1.30359876, 0.346286833, -1.12628198, 0.866025269, -0.500000358, 4.18942193e-07, 0.0868241489, 0.150382817, -0.984807909, 0.492404312, 0.852868497, 0.173647434), | |
| 762 | CFrame.new(0.65000087, -2.4212749, -0.479339659, 0.984807849, 0, -0.173647985, -0.0593910702, 0.939692736, -0.33682391, 0.163175747, 0.342019886, 0.925416768), | |
| 763 | CFrame.new(-0.649993539, -2.42127419, -0.479341805, 0.984807849, 0, 0.173647985, 0.0593910702, 0.939692736, -0.33682391, -0.163175747, 0.342019886, 0.925416768), | |
| 764 | }, .3, false) | |
| 765 | end | |
| 766 | if grab ~= nil and torsy ~= nil then | |
| 767 | so(487911937,Head,1,3) | |
| 768 | so(240429615,torsy,1,1) | |
| 769 | for i = 0,1,.1 do | |
| 770 | swait() | |
| 771 | PlayAnimationFromTable({
| |
| 772 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 773 | CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648), | |
| 774 | CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968), | |
| 775 | CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 776 | CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
| 777 | CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
| 778 | }, .3, false) | |
| 779 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 780 | hum.PlatformStand = true | |
| 781 | torsy.Velocity = Vector3.new() | |
| 782 | end | |
| 783 | for a=1,3 do | |
| 784 | for i = 0,1,.1 do | |
| 785 | swait() | |
| 786 | PlayAnimationFromTable({
| |
| 787 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 788 | CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648), | |
| 789 | CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968), | |
| 790 | CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 791 | CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
| 792 | CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
| 793 | }, .3, false) | |
| 794 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 795 | hum.PlatformStand = true | |
| 796 | torsy.Velocity = Vector3.new() | |
| 797 | end | |
| 798 | so(200632136,RootPart,.9,1) | |
| 799 | for i = 0,1,.2 do | |
| 800 | swait() | |
| 801 | PlayAnimationFromTable({
| |
| 802 | CFrame.new(-0.102054864, -0.932198167, 9.983778e-07, 0, 0.766044974, -0.64278698, 0, 0.64278698, 0.766044974, 1, 0, 0), | |
| 803 | CFrame.new(0, 1.94997787, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 804 | CFrame.new(1.70003557, 0.647316098, -1.51024413, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831), | |
| 805 | CFrame.new(-1.95000505, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 806 | CFrame.new(0.650000989, -0.993868172, -1.34321105, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698), | |
| 807 | CFrame.new(-0.650000989, -2.59999466, 7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 808 | }, .4, false) | |
| 809 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 810 | hum.PlatformStand = true | |
| 811 | torsy.Velocity = Vector3.new() | |
| 812 | end | |
| 813 | puncheff(torsy) | |
| 814 | smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30))) | |
| 815 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05) | |
| 816 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05) | |
| 817 | for i = 0,1,.1 do | |
| 818 | swait() | |
| 819 | PlayAnimationFromTable({
| |
| 820 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 821 | CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648), | |
| 822 | CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968), | |
| 823 | CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 824 | CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
| 825 | CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
| 826 | }, .3, false) | |
| 827 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 828 | hum.PlatformStand = true | |
| 829 | torsy.Velocity = Vector3.new() | |
| 830 | end | |
| 831 | so(200632136,RootPart,.9,1) | |
| 832 | for i = 0,1,.2 do | |
| 833 | swait() | |
| 834 | PlayAnimationFromTable({
| |
| 835 | CFrame.new(0.102049023, -0.932193279, 0, 0, -0.766044974, 0.64278698, 0, 0.64278698, 0.766044974, -1, 0, 0), | |
| 836 | CFrame.new(0, 1.94997406, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 837 | CFrame.new(1.70003128, 0.647328019, -1.51025343, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831), | |
| 838 | CFrame.new(-1.95000458, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 839 | CFrame.new(0.650002003, -0.993867934, -1.34321058, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698), | |
| 840 | CFrame.new(-0.650001049, -2.60001373, 1.14440918e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 841 | }, .4, false) | |
| 842 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 843 | hum.PlatformStand = true | |
| 844 | torsy.Velocity = Vector3.new() | |
| 845 | end | |
| 846 | puncheff(torsy) | |
| 847 | smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30))) | |
| 848 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05) | |
| 849 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05) | |
| 850 | end | |
| 851 | so(200632136,RootPart,.9,1) | |
| 852 | for i = 0,1,.1 do | |
| 853 | swait() | |
| 854 | PlayAnimationFromTable({
| |
| 855 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
| 856 | CFrame.new(0.0492400974, 1.93260896, -0.0852866173, 0.492402941, 0.0868238136, 0.866025984, -0.173647985, 0.984807849, 0, -0.852869213, -0.150383666, 0.499998987), | |
| 857 | CFrame.new(2.25130796, 1.15621161, -0.521879852, 0.866025984, -0.43301183, 0.249999613, 0, -0.500000238, -0.866025388, 0.499998987, 0.750000477, -0.433013201), | |
| 858 | CFrame.new(-1.95000482, 3.33413482e-07, 2.38418579e-07, 0.76604408, 0.633022606, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.78813934e-07, 0.173648968, 0.98480773), | |
| 859 | CFrame.new(0.650005341, -2.5999999, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 860 | CFrame.new(-0.650006175, -2.5999999, 2.44379044e-06, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
| 861 | }, .4, false) | |
| 862 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 863 | hum.PlatformStand = true | |
| 864 | torsy.Velocity = Vector3.new() | |
| 865 | end | |
| 866 | local pato = Instance.new("Part",torsy)
| |
| 867 | pato.CFrame = torsy.CFrame | |
| 868 | pato.Size = Vector3.new(4.1,6.1,1.1) | |
| 869 | pato.Transparency = 1 | |
| 870 | pato.CanCollide = false | |
| 871 | pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
| 872 | local werudo = Instance.new("Weld",pato)
| |
| 873 | werudo.Part0 = pato | |
| 874 | werudo.Part1 = torsy | |
| 875 | torsy.Velocity = RootPart.CFrame.lookVector*150+Vector3.new(0,30,0) | |
| 876 | torsy.RotVelocity = Vector3.new(10,10,10) | |
| 877 | pato.Touched:connect(function(hit) | |
| 878 | if hit:IsDescendantOf(chara)==false then | |
| 879 | pato:Destroy() | |
| 880 | Dmg(grab,70,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3) | |
| 881 | so(260430079,torsy,1,5) | |
| 882 | MagnitudeDmg(torsy,6,40,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2) | |
| 883 | smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30))) | |
| 884 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05) | |
| 885 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05) | |
| 886 | end | |
| 887 | end) | |
| 888 | so(200632136,RootPart,.8,1) | |
| 889 | for i = 0,2,.1 do | |
| 890 | swait() | |
| 891 | PlayAnimationFromTable({
| |
| 892 | CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688), | |
| 893 | CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795), | |
| 894 | CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785), | |
| 895 | CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491), | |
| 896 | CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297), | |
| 897 | CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1), | |
| 898 | }, .3, false) | |
| 899 | end | |
| 900 | end | |
| 901 | attack = false | |
| 902 | Humanoid.WalkSpeed = 8 | |
| 903 | end | |
| 904 | ||
| 905 | function taunt() | |
| 906 | attack = true | |
| 907 | Humanoid.WalkSpeed = 0 | |
| 908 | mus.Pitch = 0 | |
| 909 | local snd = Instance.new("Sound",Head)
| |
| 910 | snd.Volume = 3 | |
| 911 | snd.SoundId = "rbxassetid://146333460" | |
| 912 | snd:Play() | |
| 913 | so(487907203,Head,1,3) | |
| 914 | for i = 0,1,.01 do | |
| 915 | swait() | |
| 916 | PlayAnimationFromTable({
| |
| 917 | CFrame.new(-7.70094994e-06, 0.0393988565, 0.149780393, 0.999998927, -8.29677447e-08, -4.7053436e-07, 0, 0.984807849, -0.173647985, -6.85358827e-06, 0.173648238, 0.984809279), | |
| 918 | CFrame.new(6.96081361e-06, 1.94950724, -0.513472855, 1, -6.94597475e-07, 3.9392653e-06, -6.94597475e-07, 0.939692855, 0.342019767, -3.93926348e-06, -0.342019796, 0.939692736), | |
| 919 | CFrame.new(1.69018638, 1.65000451, 0.300107032, 0.866022527, 0.500005007, 5.95726306e-06, 0.500005066, -0.866022527, -1.13099813e-05, -4.91738319e-07, 1.27702951e-05, -1.00000012), | |
| 920 | CFrame.new(-1.69020617, 1.6499958, 0.299897015, 0.866027176, -0.49999702, 6.79078403e-06, -0.499997079, -0.866027117, 1.20401382e-05, -1.34110451e-07, -1.38133764e-05, -1.00000012), | |
| 921 | CFrame.new(0.650000513, -2.62530255, 0.310812205, 0.939692974, 0, -0.342019439, 0.0593909882, 0.984807849, 0.163175792, 0.336823434, -0.173647985, 0.925417006), | |
| 922 | CFrame.new(-0.649998724, -2.62530136, 0.310818315, 0.939692497, 0, 0.34202072, -0.0593912043, 0.984807849, 0.163175717, -0.336824685, -0.173647985, 0.925416589), | |
| 923 | }, .1, false) | |
| 924 | end | |
| 925 | so(487907316,Head,1,3) | |
| 926 | for i = 0,1,.01 do | |
| 927 | swait() | |
| 928 | PlayAnimationFromTable({
| |
| 929 | CFrame.new(1.55392627e-05, -0.118780732, -0.583496988, 0.999998569, 2.40357622e-07, -4.16312105e-07, 0, 0.866025388, 0.500000238, -9.29446469e-06, -0.500001192, 0.866027057), | |
| 930 | CFrame.new(1.61478602e-05, 1.9034369, 0.0406528115, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057), | |
| 931 | CFrame.new(1.35360622, -0.201802224, -0.616510034, 0.866021276, 0.500007153, -5.6077406e-06, -0.433019817, 0.74999243, -0.500005424, -0.250002086, 0.433017761, 0.866022408), | |
| 932 | CFrame.new(-1.35358262, -0.201804206, -0.616507173, 0.866028905, -0.49999395, -4.74162516e-06, 0.433007032, 0.750007033, -0.499994606, 0.249997824, 0.433007747, 0.866028666), | |
| 933 | CFrame.new(0.649987519, -2.44053602, -0.735289276, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057), | |
| 934 | CFrame.new(-0.650013626, -2.44054365, -0.735276401, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057), | |
| 935 | }, .1, false) | |
| 936 | end | |
| 937 | so(487907203,Head,.9,3) | |
| 938 | for i = 0,1,.01 do | |
| 939 | swait() | |
| 940 | PlayAnimationFromTable({
| |
| 941 | CFrame.new(0, -0.599999666, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 942 | CFrame.new(3.60608101e-06, 1.94996309, -3.51667404e-06, 0.469848812, 0.342020154, 0.813796282, -0.171001956, 0.939692676, -0.296202868, -0.866025746, 9.79501692e-06, 0.499999583), | |
| 943 | CFrame.new(1.61960268, 1.77223492, -2.74498088e-05, 0.866025388, 0.500000238, 1.34671045e-05, 0.500000238, -0.866025388, -9.50000867e-06, 6.91284913e-06, 1.49608022e-05, -1), | |
| 944 | CFrame.new(-2.50045633, 0.909400702, 7.89161845e-07, -1.0784097e-06, 0.984807849, -0.173647985, 0, -0.173647985, -0.984807849, -1, -1.06202424e-06, 1.8726405e-07), | |
| 945 | CFrame.new(1.36961031, -2.04641271, 4.32031811e-06, 0.866025388, -0.500000238, -7.40492396e-06, 0.500000238, 0.866025388, 1.30000126e-05, -8.71550583e-08, -1.49608022e-05, 1), | |
| 946 | CFrame.new(-0.649993896, -1.99999642, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 947 | }, .1, false) | |
| 948 | end | |
| 949 | so(487907316,Head,.9,3) | |
| 950 | for i = 0,1,.01 do | |
| 951 | swait() | |
| 952 | PlayAnimationFromTable({
| |
| 953 | CFrame.new(0, -0.699999571, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 954 | CFrame.new(4.35113907e-06, 1.9499656, -2.47359276e-06, 0.499997169, -0.296198249, -0.813799441, 0, 0.939692855, -0.342019647, 0.866027057, 0.171008855, 0.469843775), | |
| 955 | CFrame.new(2.56986904, 0.91509676, 1.86699071e-05, -3.99215896e-05, -0.984806359, 0.173656061, 0, -0.173656061, -0.984806359, 1, -3.93150331e-05, 6.93262609e-06), | |
| 956 | CFrame.new(-1.76206148, 1.33159709, 1.23434656e-05, 0.939692736, -0.342019886, 5.52932834e-05, -0.342019916, -0.939692736, -9.23453536e-06, 5.51170961e-05, -1.02337781e-05, -1), | |
| 957 | CFrame.new(0.650001526, -1.89999652, -0.599994659, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 958 | CFrame.new(-1.4295907, -1.91907001, -1.105927e-05, 0.866025388, 0.500000238, -1.4333129e-05, -0.500000238, 0.866025388, -9.00000668e-06, 7.91284765e-06, 1.49608022e-05, 1), | |
| 959 | }, .1, false) | |
| 960 | end | |
| 961 | snd:Destroy() | |
| 962 | mus.Pitch = 1 | |
| 963 | Humanoid.WalkSpeed = 16 | |
| 964 | attack = false | |
| 965 | end | |
| 966 | ||
| 967 | Mouse.Button1Down:connect(function() | |
| 968 | if attack == false then | |
| 969 | attackone() | |
| 970 | end | |
| 971 | end) | |
| 972 | ||
| 973 | local sprintt = 0 | |
| 974 | ||
| 975 | Mouse.KeyDown:connect(function(k) | |
| 976 | k = k:lower() | |
| 977 | if k=='m' then | |
| 978 | if mus.IsPlaying == true then | |
| 979 | mus:Stop() | |
| 980 | elseif mus.IsPaused == true then | |
| 981 | mus:Play() | |
| 982 | end | |
| 983 | end | |
| 984 | if attack == false then | |
| 985 | if k == 'z' then | |
| 986 | thesurou() | |
| 987 | elseif k == 'x' then | |
| 988 | dashattack() | |
| 989 | elseif k == 'g' then | |
| 990 | taunt() | |
| 991 | end | |
| 992 | end | |
| 993 | end) | |
| 994 | ||
| 995 | prevhp = 800 | |
| 996 | Humanoid.HealthChanged:connect(function(hp) | |
| 997 | if hp < prevhp then | |
| 998 | local cho = math.random(1,5) | |
| 999 | local s = Instance.new("Sound",Head)
| |
| 1000 | if cho == 1 then | |
| 1001 | so(480392869,Head,1,3) | |
| 1002 | elseif cho == 2 then | |
| 1003 | so(480392949,Head,1,3) | |
| 1004 | elseif cho == 3 then | |
| 1005 | so(480394663,Head,1,3) | |
| 1006 | elseif cho == 4 then | |
| 1007 | so(480394802,Head,1,3) | |
| 1008 | elseif cho == 5 then | |
| 1009 | so(480394542,Head,1,3) | |
| 1010 | end | |
| 1011 | end | |
| 1012 | prevhp = hp | |
| 1013 | end) | |
| 1014 | ||
| 1015 | local soundIds = {142539074, 487912030, 487911937}
| |
| 1016 | coroutine.wrap(function() | |
| 1017 | while wait(math.random(25,30)/10) do | |
| 1018 | if Humanoid.Health > 1 and attack == false then | |
| 1019 | so(soundIds[math.random(1,3)],Head,1,3) | |
| 1020 | end | |
| 1021 | end | |
| 1022 | end)() | |
| 1023 | ||
| 1024 | Humanoid.Died:connect(function() | |
| 1025 | mus:Stop() | |
| 1026 | so(487907155,Head,1,3) | |
| 1027 | swait(5) | |
| 1028 | for i = 1,10 do | |
| 1029 | swait() | |
| 1030 | for i,v in pairs(chara:GetDescendants()) do | |
| 1031 | if v:IsA("BasePart") then
| |
| 1032 | v.Transparency = v.Transparency + .1 | |
| 1033 | end | |
| 1034 | end | |
| 1035 | end | |
| 1036 | chara:Destroy() | |
| 1037 | end) | |
| 1038 | ||
| 1039 | coroutine.wrap(function() | |
| 1040 | while 1 do | |
| 1041 | swait() | |
| 1042 | if doe <= 360 then | |
| 1043 | doe = doe + 2 | |
| 1044 | else | |
| 1045 | doe = 0 | |
| 1046 | end | |
| 1047 | end | |
| 1048 | end)() | |
| 1049 | ||
| 1050 | while true do | |
| 1051 | swait() | |
| 1052 | while true do | |
| 1053 | swait() | |
| 1054 | if Head:FindFirstChild("mus")==nil then
| |
| 1055 | mus = Instance.new("Sound",Head)
| |
| 1056 | mus.Name = "mus" | |
| 1057 | mus.SoundId = "rbxassetid://318340174" | |
| 1058 | mus.Looped = true | |
| 1059 | mus.Volume = 1 | |
| 1060 | mus:Play() | |
| 1061 | end | |
| 1062 | local ss = Humanoid:GetState() | |
| 1063 | if ss == (Enum.HumanoidStateType.FallingDown or ss == Enum.HumanoidStateType.PlatformStanding) then | |
| 1064 | Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) | |
| 1065 | end | |
| 1066 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1067 | velocity = RootPart.Velocity.y | |
| 1068 | sine = sine + change | |
| 1069 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 5.3, chara) | |
| 1070 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1071 | Anim = "Jump" | |
| 1072 | if attack == false then | |
| 1073 | PlayAnimationFromTable({
| |
| 1074 | CFrame.new(0, 0.0740167201, -0.180228189, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1075 | CFrame.new(0, 2.03109002, -0.115844816, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789), | |
| 1076 | CFrame.new(1.47152913, -0.278083742, 0.397592455, 0.939692855, 0.342019439, -3.31528156e-08, -0.321393043, 0.883022368, 0.34202078, 0.116977774, -0.321394503, 0.939692497), | |
| 1077 | CFrame.new(-1.47150564, -0.27808097, 0.397592992, 0.939692855, -0.342019439, 3.31528156e-08, 0.321393043, 0.883022368, 0.34202078, -0.116977774, -0.321394503, 0.939692497), | |
| 1078 | CFrame.new(0.650001526, -1.19999599, -0.600000799, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1079 | CFrame.new(-0.649993896, -2.59999466, 5.54323037e-07, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1080 | }, .3, false) | |
| 1081 | end | |
| 1082 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1083 | Anim = "Fall" | |
| 1084 | if attack == false then | |
| 1085 | PlayAnimationFromTable({
| |
| 1086 | CFrame.new(0, -0.133714333, 0.15832366, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
| 1087 | CFrame.new(0, 2.05995607, -0.632082939, 1, 0, 0, 0, 0.766044796, 0.642787218, 0, -0.642787218, 0.766044855), | |
| 1088 | CFrame.new(2.25642705, 0.257112086, -3.82667531e-06, 0.766044319, -0.642787933, -2.9919768e-08, 0.642787993, 0.766044319, 3.87430191e-07, -1.93715096e-07, -2.83122063e-07, 1), | |
| 1089 | CFrame.new(-2.25643301, 0.257116973, 9.41694736e-07, 0.766044319, 0.642787933, 2.9919768e-08, -0.642787993, 0.766044319, 3.87430191e-07, 1.93715096e-07, -2.83122063e-07, 1), | |
| 1090 | CFrame.new(0.649993896, -1.3999939, -0.600004256, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
| 1091 | CFrame.new(-0.650001526, -2.59999371, -3.89218303e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
| 1092 | }, .3, false) | |
| 1093 | end | |
| 1094 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1095 | Anim = "Idle" | |
| 1096 | if attack == false then | |
| 1097 | change = 1 | |
| 1098 | PlayAnimationFromTable({
| |
| 1099 | CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.05 * math.cos((sine)/5), 0), | |
| 1100 | CFrame.new(0.0984803587, 1.91524398, -0.170572892, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617), | |
| 1101 | CFrame.new(1.98214447, 0.0342020541, -0.0883011818, 0.939692676, -0.116977856, -0.321394205, 0, 0.939692736, -0.342019945, 0.342020601, 0.321393609, 0.883022249), | |
| 1102 | CFrame.new(-1.51237798, -0.128823012, -0.775815547, 0.766044199, -0.642788053, -3.87430191e-07, 0.413175076, 0.492402881, -0.76604563, 0.492405087, 0.586824656, 0.642786384), | |
| 1103 | CFrame.new(0.649999857, -2.5999999, -8.64267349e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388) * CFrame.new(0,-.05 * math.cos((sine)/5), 0), | |
| 1104 | CFrame.new(-0.64999789, -2.5999999, -9.53674544e-07, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.05 * math.cos((sine)/5), 0), | |
| 1105 | }, .3, false) | |
| 1106 | end | |
| 1107 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1108 | Anim = "Walk" | |
| 1109 | if attack == false then | |
| 1110 | Humanoid.WalkSpeed = 16 | |
| 1111 | Humanoid.JumpPower = 80 | |
| 1112 | PlayAnimationFromTable({
| |
| 1113 | CFrame.new(0, 0.0098747462, -0.187130988, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.Angles(0, math.rad(0 + 10 * math.cos((sine) / 5)), 0), | |
| 1114 | CFrame.new(0, 2.01372552, -0.214327857, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849), | |
| 1115 | CFrame.new(1.94397354, -0.115067676, -0.230779886, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
| 1116 | CFrame.new(-1.95000458, -0.0637510419, -0.214326635, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
| 1117 | CFrame.new(0.649997711, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0+ .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0), | |
| 1118 | CFrame.new(-0.650001526, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0- .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0), | |
| 1119 | }, .3, false) | |
| 1120 | end | |
| 1121 | end | |
| 1122 | end | |
| 1123 | end |