SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 5 | local RealPlayer = Player | |
| 6 | 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={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=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
| |
| 7 | print("Made By : KillerDarkness1015")
| |
| 8 | print("Edit By : Kermat161")
| |
| 9 | print("Press e for best mates! \Updated/")
| |
| 10 | Player = game:GetService("Players").LocalPlayer
| |
| 11 | Character = Player.Character | |
| 12 | PlayerGui = Player.PlayerGui | |
| 13 | Backpack = Player.Backpack | |
| 14 | Torso = Character.Torso | |
| 15 | Head = Character.Head | |
| 16 | Humanoid = Character.Humanoid | |
| 17 | LeftArm = Character["Left Arm"] | |
| 18 | LeftLeg = Character["Left Leg"] | |
| 19 | RightArm = Character["Right Arm"] | |
| 20 | RightLeg = Character["Right Leg"] | |
| 21 | LS = Torso["Left Shoulder"] | |
| 22 | LH = Torso["Left Hip"] | |
| 23 | RS = Torso["Right Shoulder"] | |
| 24 | RH = Torso["Right Hip"] | |
| 25 | Face = Head.face | |
| 26 | Neck = Torso.Neck | |
| 27 | it = Instance.new | |
| 28 | attacktype = 1 | |
| 29 | attacktype2 = 1 | |
| 30 | vt = Vector3.new | |
| 31 | cf = CFrame.new | |
| 32 | cn = CFrame.new | |
| 33 | euler = CFrame.fromEulerAnglesXYZ | |
| 34 | angles = CFrame.Angles | |
| 35 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 36 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 37 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 38 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 39 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 40 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 41 | RootPart = Character.HumanoidRootPart | |
| 42 | RootJoint = RootPart.RootJoint | |
| 43 | RootCF = euler(-1.57, 0, 3.14) | |
| 44 | attack = false | |
| 45 | attackdebounce = false | |
| 46 | trispeed = 0.2 | |
| 47 | attackmode = "none" | |
| 48 | local idle = 0 | |
| 49 | local Anim = "Idle" | |
| 50 | stance = false | |
| 51 | local ff = 2 | |
| 52 | noleg = false | |
| 53 | evadecooldown = false | |
| 54 | Humanoid.Animator.Parent = nil | |
| 55 | equip = false | |
| 56 | local Effects = {}
| |
| 57 | attackspeed = 0.14 | |
| 58 | df = false | |
| 59 | Swing = 1 | |
| 60 | local sine = 0 | |
| 61 | local change = 1 | |
| 62 | local val = 0 | |
| 63 | local rs = game:GetService("RunService").RenderStepped
| |
| 64 | Humanoid.WalkSpeed = 5 | |
| 65 | Humanoid.JumpPower = 60 | |
| 66 | Swing = 1 | |
| 67 | cam = workspace.CurrentCamera | |
| 68 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 69 | local Create = RbxUtility.Create | |
| 70 | Head.face.Texture = "rbxassetid://164958099" | |
| 71 | Fornite = Instance.new("Sound", Torso)
| |
| 72 | Fornite.Volume = 0.5 | |
| 73 | Fornite.TimePosition = 0 | |
| 74 | Fornite.Pitch = 1 | |
| 75 | Fornite.SoundId = "rbxassetid://1360395950" | |
| 76 | Fornite.Looped = true | |
| 77 | Fornite:Play() | |
| 78 | k = Fornite | |
| 79 | bestmatess = Instance.new("Sound", Torso)
| |
| 80 | bestmatess.Volume = 2 | |
| 81 | bestmatess.TimePosition = 0 | |
| 82 | bestmatess.Pitch = 1 | |
| 83 | bestmatess.SoundId = "rbxassetid://1890957836" | |
| 84 | bestmatess.Looped = true | |
| 85 | skidfield = Instance.new("ForceField", Character)
| |
| 86 | skidfield.Visible = false | |
| 87 | Humanoid.Name = "Truegod" | |
| 88 | Humanoid.MaxHealth = 1.0E298 | |
| 89 | Humanoid.Health = 1.0E298 | |
| 90 | game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
| |
| 91 | if Humanoid.Health > 0.1 and Humanoid.Health < 1.0E298 then | |
| 92 | Humanoid.MaxHealth = 1.0E298 | |
| 93 | Humanoid.Health = 1.0E298 | |
| 94 | end | |
| 95 | end) | |
| 96 | function so(id, par, vol, pit) | |
| 97 | coroutine.resume(coroutine.create(function() | |
| 98 | local sou = Instance.new("Sound", par or workspace)
| |
| 99 | sou.Volume = vol | |
| 100 | sou.Pitch = pit or 1 | |
| 101 | sou.SoundId = id | |
| 102 | sou:play() | |
| 103 | game:GetService("Debris"):AddItem(sou, 8)
| |
| 104 | end)) | |
| 105 | end | |
| 106 | RSH, LSH = nil, nil | |
| 107 | RW, LW = Instance.new("Weld"), Instance.new("Weld")
| |
| 108 | RW.Name = "Right Shoulder" | |
| 109 | LW.Name = "Left Shoulder" | |
| 110 | LH = Torso["Left Hip"] | |
| 111 | RH = Torso["Right Hip"] | |
| 112 | TorsoColor = Torso.BrickColor | |
| 113 | function NoOutline(Part) | |
| 114 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 115 | end | |
| 116 | player = Player | |
| 117 | ch = Character | |
| 118 | RSH = ch.Torso["Right Shoulder"] | |
| 119 | LSH = ch.Torso["Left Shoulder"] | |
| 120 | RSH.Parent = nil | |
| 121 | LSH.Parent = nil | |
| 122 | RW.Name = "Right Shoulder" | |
| 123 | RW.Part0 = ch.Torso | |
| 124 | RW.C0 = cf(1.5, 0.5, 0) | |
| 125 | RW.C1 = cf(0, 0.5, 0) | |
| 126 | RW.Part1 = ch["Right Arm"] | |
| 127 | RW.Parent = ch.Torso | |
| 128 | LW.Name = "Left Shoulder" | |
| 129 | LW.Part0 = ch.Torso | |
| 130 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 131 | LW.C1 = cf(0, 0.5, 0) | |
| 132 | LW.Part1 = ch["Left Arm"] | |
| 133 | LW.Parent = ch.Torso | |
| 134 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
| 135 | local wld = Instance.new("Weld", wp1)
| |
| 136 | wld.Part0 = wp0 | |
| 137 | wld.Part1 = wp1 | |
| 138 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 139 | end | |
| 140 | local rs = game:GetService("RunService").RenderStepped
| |
| 141 | newWeld(RootPart, Torso, 0, -1, 0) | |
| 142 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 143 | newWeld(Torso, LeftLeg, -0.5, -1, 0) | |
| 144 | LeftLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 145 | newWeld(Torso, RightLeg, 0.5, -1, 0) | |
| 146 | RightLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 147 | Player = game:GetService("Players").LocalPlayer
| |
| 148 | Character = Player.Character | |
| 149 | mouse = Player:GetMouse() | |
| 150 | m = Instance.new("Model", Character)
| |
| 151 | local weldBetween = function(a, b) | |
| 152 | local weldd = Instance.new("ManualWeld")
| |
| 153 | weldd.Part0 = a | |
| 154 | weldd.Part1 = b | |
| 155 | weldd.C0 = CFrame.new() | |
| 156 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 157 | weldd.Parent = a | |
| 158 | return weldd | |
| 159 | end | |
| 160 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 161 | ArtificialHB.Name = "Heartbeat" | |
| 162 | script:WaitForChild("Heartbeat")
| |
| 163 | frame = 0.0125 | |
| 164 | tf = 0 | |
| 165 | allowframeloss = false | |
| 166 | tossremainder = false | |
| 167 | lastframe = tick() | |
| 168 | script.Heartbeat:Fire() | |
| 169 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 170 | tf = tf + s | |
| 171 | if tf >= frame then | |
| 172 | if allowframeloss then | |
| 173 | script.Heartbeat:Fire() | |
| 174 | lastframe = tick() | |
| 175 | else | |
| 176 | for i = 1, math.floor(tf / frame) do | |
| 177 | script.Heartbeat:Fire() | |
| 178 | end | |
| 179 | lastframe = tick() | |
| 180 | end | |
| 181 | if tossremainder then | |
| 182 | tf = 0 | |
| 183 | else | |
| 184 | tf = tf - frame * math.floor(tf / frame) | |
| 185 | end | |
| 186 | end | |
| 187 | end) | |
| 188 | function swait(num) | |
| 189 | if num == 0 or num == nil then | |
| 190 | ArtificialHB.Event:wait() | |
| 191 | else | |
| 192 | for i = 0, num do | |
| 193 | ArtificialHB.Event:wait() | |
| 194 | end | |
| 195 | end | |
| 196 | end | |
| 197 | function RemoveOutlines(part) | |
| 198 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 199 | end | |
| 200 | function part(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
| 201 | local fp = it("Part")
| |
| 202 | fp.formFactor = formfactor | |
| 203 | fp.Parent = parent | |
| 204 | fp.Reflectance = reflectance | |
| 205 | fp.Transparency = transparency | |
| 206 | fp.CanCollide = false | |
| 207 | fp.Locked = true | |
| 208 | fp.BrickColor = brickcolor | |
| 209 | fp.Name = name | |
| 210 | fp.Size = size | |
| 211 | fp.Position = Torso.Position | |
| 212 | NoOutline(fp) | |
| 213 | if fp.BrickColor == BrickColor.new("Dark indigo") then
| |
| 214 | fp.Material = "Neon" | |
| 215 | elseif fp.BrickColor == BrickColor.new("Really black") then
| |
| 216 | fp.BrickColor = BrickColor.new("Really black")
| |
| 217 | fp.Material = "Metal" | |
| 218 | else | |
| 219 | fp.Material = "Glass" | |
| 220 | end | |
| 221 | fp:BreakJoints() | |
| 222 | return fp | |
| 223 | end | |
| 224 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 225 | local mesh = it(Mesh) | |
| 226 | mesh.Parent = part | |
| 227 | if Mesh == "SpecialMesh" then | |
| 228 | mesh.MeshType = meshtype | |
| 229 | mesh.MeshId = meshid | |
| 230 | end | |
| 231 | mesh.Offset = offset | |
| 232 | mesh.Scale = scale | |
| 233 | return mesh | |
| 234 | end | |
| 235 | function weld(parent, part0, part1, c0) | |
| 236 | local weld = it("Weld")
| |
| 237 | weld.Parent = parent | |
| 238 | weld.Part0 = part0 | |
| 239 | weld.Part1 = part1 | |
| 240 | weld.C0 = c0 | |
| 241 | return weld | |
| 242 | end | |
| 243 | F1 = Instance.new("Folder", Character)
| |
| 244 | F1.Name = "Effects Folder" | |
| 245 | F2 = Instance.new("Folder", F1)
| |
| 246 | F2.Name = "Effects" | |
| 247 | function Triangle(a, b, c) | |
| 248 | end | |
| 249 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 250 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
| 251 | prt.Anchored = true | |
| 252 | prt.CanCollide = false | |
| 253 | prt.CFrame = cframe | |
| 254 | prt.Name = "prt" | |
| 255 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 256 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 257 | table.insert(Effects, {
| |
| 258 | prt, | |
| 259 | "Block1", | |
| 260 | delay, | |
| 261 | x3, | |
| 262 | y3, | |
| 263 | z3 | |
| 264 | }) | |
| 265 | end | |
| 266 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 267 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
| 268 | prt.Anchored = true | |
| 269 | prt.CanCollide = false | |
| 270 | prt.CFrame = cframe | |
| 271 | prt.Name = "prt" | |
| 272 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 273 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 274 | table.insert(Effects, {
| |
| 275 | prt, | |
| 276 | "Cylinder", | |
| 277 | delay, | |
| 278 | x3, | |
| 279 | y3, | |
| 280 | z3 | |
| 281 | }) | |
| 282 | end | |
| 283 | function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 284 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
| 285 | prt.Anchored = true | |
| 286 | prt.CFrame = cframe | |
| 287 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 288 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 289 | table.insert(Effects, {
| |
| 290 | prt, | |
| 291 | "Cylinder", | |
| 292 | delay, | |
| 293 | x3, | |
| 294 | y3, | |
| 295 | z3 | |
| 296 | }) | |
| 297 | end | |
| 298 | function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 299 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2)) | |
| 300 | prt.Anchored = true | |
| 301 | prt.CFrame = cframe | |
| 302 | msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 303 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 304 | Effects[#Effects + 1] = {
| |
| 305 | prt, | |
| 306 | "Cylinder", | |
| 307 | delay, | |
| 308 | x3, | |
| 309 | y3, | |
| 310 | z3 | |
| 311 | } | |
| 312 | end | |
| 313 | function MagicCylinder2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 314 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2)) | |
| 315 | prt.Anchored = true | |
| 316 | prt.CFrame = cframe | |
| 317 | msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 318 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 319 | Effects[#Effects + 1] = {
| |
| 320 | prt, | |
| 321 | "Cylinder", | |
| 322 | delay, | |
| 323 | x3, | |
| 324 | y3, | |
| 325 | z3 | |
| 326 | } | |
| 327 | end | |
| 328 | function MagicBlood(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 329 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
| 330 | prt.Anchored = true | |
| 331 | prt.CFrame = cframe | |
| 332 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 333 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 334 | table.insert(Effects, {
| |
| 335 | prt, | |
| 336 | "Blood", | |
| 337 | delay, | |
| 338 | x3, | |
| 339 | y3, | |
| 340 | z3 | |
| 341 | }) | |
| 342 | end | |
| 343 | function ElecEffect(cff, x, y, z) | |
| 344 | local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
| |
| 345 | prt.Anchored = true | |
| 346 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 347 | prt.CFrame = cf(prt.Position) | |
| 348 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 349 | xval = math.random() / 2 | |
| 350 | yval = math.random() / 2 | |
| 351 | zval = math.random() / 2 | |
| 352 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
| |
| 353 | Effects[#Effects + 1] = {
| |
| 354 | prt, | |
| 355 | "Elec", | |
| 356 | 0.1, | |
| 357 | x, | |
| 358 | y, | |
| 359 | z, | |
| 360 | xval, | |
| 361 | yval, | |
| 362 | zval | |
| 363 | } | |
| 364 | end | |
| 365 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 366 | if SinglePlayer then | |
| 367 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 368 | end | |
| 369 | local List = {}
| |
| 370 | for i, v in pairs(workspace:GetChildren()) do | |
| 371 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
| |
| 372 | table.insert(List, v) | |
| 373 | end | |
| 374 | end | |
| 375 | return List | |
| 376 | end | |
| 377 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 378 | local Part = Create("Part")({
| |
| 379 | Parent = Parent, | |
| 380 | Reflectance = Reflectance, | |
| 381 | Transparency = Transparency, | |
| 382 | CanCollide = false, | |
| 383 | Locked = true, | |
| 384 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 385 | Name = Name, | |
| 386 | Size = Size, | |
| 387 | Material = Material | |
| 388 | }) | |
| 389 | RemoveOutlines(Part) | |
| 390 | return Part | |
| 391 | end | |
| 392 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 393 | local Msh = Create(Mesh)({
| |
| 394 | Parent = Part, | |
| 395 | Offset = OffSet, | |
| 396 | Scale = Scale | |
| 397 | }) | |
| 398 | if Mesh == "SpecialMesh" then | |
| 399 | Msh.MeshType = MeshType | |
| 400 | Msh.MeshId = MeshId | |
| 401 | end | |
| 402 | return Msh | |
| 403 | end | |
| 404 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 405 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 406 | prt.Anchored = true | |
| 407 | prt.CFrame = cframe | |
| 408 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 409 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 410 | if Type == 1 or Type == nil then | |
| 411 | table.insert(Effects, {
| |
| 412 | prt, | |
| 413 | "Block1", | |
| 414 | delay, | |
| 415 | x3, | |
| 416 | y3, | |
| 417 | z3, | |
| 418 | msh | |
| 419 | }) | |
| 420 | elseif Type == 2 then | |
| 421 | table.insert(Effects, {
| |
| 422 | prt, | |
| 423 | "Block2", | |
| 424 | delay, | |
| 425 | x3, | |
| 426 | y3, | |
| 427 | z3, | |
| 428 | msh | |
| 429 | }) | |
| 430 | end | |
| 431 | end | |
| 432 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 433 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 434 | prt.Anchored = true | |
| 435 | prt.CFrame = cframe | |
| 436 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 437 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 438 | table.insert(Effects, {
| |
| 439 | prt, | |
| 440 | "Cylinder", | |
| 441 | delay, | |
| 442 | x3, | |
| 443 | y3, | |
| 444 | z3, | |
| 445 | msh | |
| 446 | }) | |
| 447 | end | |
| 448 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 449 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 450 | prt.Anchored = true | |
| 451 | prt.CFrame = cframe | |
| 452 | msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 453 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 454 | coroutine.resume(coroutine.create(function(Part, Mesh, num) | |
| 455 | for i = 0, 1, delay do | |
| 456 | swait() | |
| 457 | Part.Transparency = i | |
| 458 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 459 | end | |
| 460 | Part.Parent = nil | |
| 461 | end), prt, msh, (math.random(0, 1) + math.random()) / 5) | |
| 462 | end | |
| 463 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 464 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 465 | prt.Anchored = true | |
| 466 | prt.CFrame = cframe | |
| 467 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 468 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 469 | table.insert(Effects, {
| |
| 470 | prt, | |
| 471 | "Cylinder", | |
| 472 | delay, | |
| 473 | x3, | |
| 474 | y3, | |
| 475 | z3, | |
| 476 | msh | |
| 477 | }) | |
| 478 | end | |
| 479 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 480 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 481 | prt.Anchored = true | |
| 482 | prt.CFrame = cframe | |
| 483 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 484 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 485 | table.insert(Effects, {
| |
| 486 | prt, | |
| 487 | "Cylinder", | |
| 488 | delay, | |
| 489 | x3, | |
| 490 | y3, | |
| 491 | z3, | |
| 492 | msh | |
| 493 | }) | |
| 494 | end | |
| 495 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 496 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 497 | prt.Anchored = true | |
| 498 | prt.CFrame = cframe | |
| 499 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 500 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 501 | table.insert(Effects, {
| |
| 502 | prt, | |
| 503 | "Cylinder", | |
| 504 | delay, | |
| 505 | x3, | |
| 506 | y3, | |
| 507 | z3, | |
| 508 | msh | |
| 509 | }) | |
| 510 | end | |
| 511 | function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 512 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 513 | prt.Anchored = true | |
| 514 | prt.CFrame = cframe | |
| 515 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 516 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 517 | table.insert(Effects, {
| |
| 518 | prt, | |
| 519 | "Cylinder", | |
| 520 | delay, | |
| 521 | x3, | |
| 522 | y3, | |
| 523 | z3, | |
| 524 | msh | |
| 525 | }) | |
| 526 | end | |
| 527 | function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 528 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 529 | prt.Anchored = true | |
| 530 | prt.CFrame = cframe | |
| 531 | local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 532 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 533 | table.insert(Effects, {
| |
| 534 | prt, | |
| 535 | "Cylinder", | |
| 536 | delay, | |
| 537 | x3, | |
| 538 | y3, | |
| 539 | z3, | |
| 540 | msh | |
| 541 | }) | |
| 542 | end | |
| 543 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 544 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 545 | prt.Anchored = true | |
| 546 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 547 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 548 | local num = math.random(10, 50) / 1000 | |
| 549 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 550 | table.insert(Effects, {
| |
| 551 | prt, | |
| 552 | "Shatter", | |
| 553 | num, | |
| 554 | prt.CFrame, | |
| 555 | math.random() - math.random(), | |
| 556 | 0, | |
| 557 | math.random(50, 100) / 100 | |
| 558 | }) | |
| 559 | end | |
| 560 | function clerp(a, b, t) | |
| 561 | local qa = {
| |
| 562 | QuaternionFromCFrame(a) | |
| 563 | } | |
| 564 | local qb = {
| |
| 565 | QuaternionFromCFrame(b) | |
| 566 | } | |
| 567 | local ax, ay, az = a.x, a.y, a.z | |
| 568 | local bx, by, bz = b.x, b.y, b.z | |
| 569 | local _t = 1 - t | |
| 570 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 571 | end | |
| 572 | function QuaternionFromCFrame(cf) | |
| 573 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 574 | local trace = m00 + m11 + m22 | |
| 575 | if trace > 0 then | |
| 576 | local s = math.sqrt(1 + trace) | |
| 577 | local recip = 0.5 / s | |
| 578 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 579 | else | |
| 580 | local i = 0 | |
| 581 | if m00 < m11 then | |
| 582 | i = 1 | |
| 583 | end | |
| 584 | if m22 > (i == 0 and m00 or m11) then | |
| 585 | i = 2 | |
| 586 | end | |
| 587 | if i == 0 then | |
| 588 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 589 | local recip = 0.5 / s | |
| 590 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 591 | elseif i == 1 then | |
| 592 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 593 | local recip = 0.5 / s | |
| 594 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 595 | elseif i == 2 then | |
| 596 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 597 | local recip = 0.5 / s | |
| 598 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 599 | end | |
| 600 | end | |
| 601 | end | |
| 602 | function fff(jj) | |
| 603 | local xx = false | |
| 604 | local target | |
| 605 | if jj.ClassName == "Player" then | |
| 606 | target = jj | |
| 607 | else | |
| 608 | target = game:GetService("Players"):GetPlayerFromCharacter(jj)
| |
| 609 | end | |
| 610 | if target ~= nil and target:IsFriendsWith(164313565) then | |
| 611 | xx = true | |
| 612 | end | |
| 613 | return friend | |
| 614 | end | |
| 615 | if fff(game:GetService("Players").LocalPlayer) == false then
| |
| 616 | while true do | |
| 617 | end | |
| 618 | end | |
| 619 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 620 | local xs, ys, zs = x + x, y + y, z + z | |
| 621 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 622 | local xx = x * xs | |
| 623 | local xy = x * ys | |
| 624 | local xz = x * zs | |
| 625 | local yy = y * ys | |
| 626 | local yz = y * zs | |
| 627 | local zz = z * zs | |
| 628 | 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)) | |
| 629 | end | |
| 630 | function QuaternionSlerp(a, b, t) | |
| 631 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 632 | local startInterp, finishInterp | |
| 633 | if cosTheta >= 1.0E-4 then | |
| 634 | if 1 - cosTheta > 1.0E-4 then | |
| 635 | local theta = math.acos(cosTheta) | |
| 636 | local invSinTheta = 1 / math.sin(theta) | |
| 637 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 638 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 639 | else | |
| 640 | startInterp = 1 - t | |
| 641 | finishInterp = t | |
| 642 | end | |
| 643 | elseif 1 + cosTheta > 1.0E-4 then | |
| 644 | local theta = math.acos(-cosTheta) | |
| 645 | local invSinTheta = 1 / math.sin(theta) | |
| 646 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 647 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 648 | else | |
| 649 | startInterp = t - 1 | |
| 650 | finishInterp = t | |
| 651 | end | |
| 652 | 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 | |
| 653 | end | |
| 654 | function weld5(part0, part1, c0, c1) | |
| 655 | weeld = Instance.new("Weld", part0)
| |
| 656 | weeld.Part0 = part0 | |
| 657 | weeld.Part1 = part1 | |
| 658 | weeld.C0 = c0 | |
| 659 | weeld.C1 = c1 | |
| 660 | return weeld | |
| 661 | end | |
| 662 | function rayCast(Pos, Dir, Max, Ignore) | |
| 663 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 664 | end | |
| 665 | local bestmate = false | |
| 666 | function bestmates() | |
| 667 | attack = true | |
| 668 | bestmate = true | |
| 669 | Humanoid.WalkSpeed = 3 | |
| 670 | Humanoid.JumpPower = 10 | |
| 671 | bestmatess:Play() | |
| 672 | local light = Instance.new("PointLight", Torso)
| |
| 673 | light.Color = Color3.new(0, 255, 255) | |
| 674 | k:Pause() | |
| 675 | Head.face.Texture = "rbxassetid://21024598" | |
| 676 | while bestmate == true do | |
| 677 | change = 0.8 | |
| 678 | swait() | |
| 679 | light.Range = bestmatess.PlaybackLoudness / 8 | |
| 680 | light.Brightness = bestmatess.PlaybackLoudness / 25 | |
| 681 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-35 + 7 * math.sin(sine / 3) + bestmatess.PlaybackLoudness / 39), math.rad(0), math.rad(0 + 12 * math.sin(sine / 6))), 0.2) | |
| 682 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.44 * math.cos(sine / 3), 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2) | |
| 683 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(0 + 58.05 * math.sin(sine / 6))), 0.2) | |
| 684 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(0 + 58.05 * math.sin(sine / 6))), 0.2) | |
| 685 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.6, -0.4 + 0.54 * math.cos(sine / 6), -0.2) * CFrame.Angles(math.rad(30), math.rad(15), math.rad(-1 + 13.05 * math.cos(sine / 6))), 0.2) | |
| 686 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -0.4 - 0.54 * math.cos(sine / 6), -0.2) * CFrame.Angles(math.rad(30), math.rad(-15), math.rad(1 + 13.05 * math.cos(sine / 6))), 0.2) | |
| 687 | end | |
| 688 | if bestmate == false then | |
| 689 | attack = false | |
| 690 | k:Resume() | |
| 691 | Humanoid.WalkSpeed = 5 | |
| 692 | Humanoid.JumpPower = 60 | |
| 693 | light:Destroy() | |
| 694 | bestmatess:Stop() | |
| 695 | Head.face.Texture = "rbxassetid://164958099" | |
| 696 | end | |
| 697 | end | |
| 698 | mouse.KeyDown:connect(function(key) | |
| 699 | if key == "r" and attack == true then | |
| 700 | bestmate = false | |
| 701 | end | |
| 702 | end) | |
| 703 | mouse.KeyDown:connect(function(key) | |
| 704 | if key == "e" and attack == false then | |
| 705 | bestmates() | |
| 706 | end | |
| 707 | end) | |
| 708 | while true do | |
| 709 | swait() | |
| 710 | sine = sine + change | |
| 711 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 712 | local velderp = RootPart.Velocity.y | |
| 713 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 714 | if attack == true or attack == false then | |
| 715 | if attack == false then | |
| 716 | idle = idle + 1 | |
| 717 | else | |
| 718 | idle = 0 | |
| 719 | end | |
| 720 | if not (idle >= 500) or attack == false then | |
| 721 | end | |
| 722 | look = 0 | |
| 723 | if 1 < RootPart.Velocity.y and hitfloor == nil then | |
| 724 | Anim = "Jump" | |
| 725 | if attack == false then | |
| 726 | change = 1 | |
| 727 | look = 0 | |
| 728 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 729 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -0.15) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1) | |
| 730 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1) | |
| 731 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(50 - 2.05 * math.cos(sine / 5))), 0.1) | |
| 732 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(-50 + 2.05 * math.cos(sine / 5))), 0.1) | |
| 733 | if attack == false then | |
| 734 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-25 + 3.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1) | |
| 735 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.7) * CFrame.Angles(math.rad(-12 + 3.05 * math.cos(sine / 5)), math.rad(-3), math.rad(0)), 0.1) | |
| 736 | end | |
| 737 | end | |
| 738 | elseif -1 > RootPart.Velocity.y and hitfloor == nil then | |
| 739 | Anim = "Fall" | |
| 740 | change = 1 | |
| 741 | look = 0 | |
| 742 | if attack == false then | |
| 743 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 744 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
| 745 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(20), math.rad(90)), 0.1) | |
| 746 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.1) | |
| 747 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(40), math.rad(0), math.rad(0)), 0.1) | |
| 748 | end | |
| 749 | if attack == false then | |
| 750 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(3), math.rad(0)), 0.1) | |
| 751 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1) | |
| 752 | end | |
| 753 | elseif torvel < 1 and hitfloor ~= nil and look <= 800 then | |
| 754 | Anim = "Idle" | |
| 755 | change = 1.2 | |
| 756 | if attack == false and equip == false then | |
| 757 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 758 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.06) | |
| 759 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-1 + 2 * math.sin(sine / 40)), math.rad(0), math.rad(0)), 0.06) | |
| 760 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.02 * math.sin(sine / 40), 0) * angles(math.rad(0 + 2 * math.cos(sine / 40)), math.rad(0 + 4 * math.sin(sine / 40)), math.rad(2.3 + 0.2 * math.cos(sine / 40))), 0.06) | |
| 761 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.02 * math.sin(sine / 40), 0) * angles(math.rad(0 + 2 * math.cos(sine / 40)), math.rad(0 - 4 * math.sin(sine / 40)), math.rad(-2.3 - 0.2 * math.cos(sine / 40))), 0.06) | |
| 762 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 + 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(2), math.rad(-1)), 0.06) | |
| 763 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(1)), 0.06) | |
| 764 | end | |
| 765 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
| 766 | Anim = "Walk" | |
| 767 | change = 0.7 | |
| 768 | look = 0 | |
| 769 | if attack == false and equip == false then | |
| 770 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 771 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 + 0.14 * math.cos(sine / 5), -0.3) * angles(math.rad(-3 + 2 * math.cos(sine / 5)), math.rad(0 + 2 * math.cos(sine / 10)), math.rad(0) + RootPart.RotVelocity.Y / 46), 0.08) | |
| 772 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0 - 6 * math.sin(sine / 3.5)), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 13), 0.08) | |
| 773 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 10)) * angles(math.rad(0 - 26 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(2 + 0 * math.sin(sine / 10)) - RootPart.RotVelocity.Y / 34), 0.08) | |
| 774 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 10)) * angles(math.rad(0 + 26 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-2 + 0 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / -34), 0.08) | |
| 775 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.21 * math.cos(sine / 10), -0.03 + 0.19 * math.cos(sine / 10)) * CFrame.Angles(math.rad(-8 - 25 * math.sin(sine / 10)), math.rad(0) - RootPart.RotVelocity.Y / -24, math.rad(0) + RootPart.RotVelocity.Y / -34), 0.08) | |
| 776 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.21 * math.cos(sine / 10), -0.03 - 0.19 * math.cos(sine / 10)) * CFrame.Angles(math.rad(-8 + 25 * math.sin(sine / 10)), math.rad(0) + RootPart.RotVelocity.Y / 24, math.rad(0) - RootPart.RotVelocity.Y / 34), 0.08) | |
| 777 | end | |
| 778 | elseif torvel >= 22 and hitfloor ~= nil then | |
| 779 | Anim = "Run" | |
| 780 | look = 0 | |
| 781 | change = 0.67 + Character.Humanoid.WalkSpeed / 112 | |
| 782 | if attack == false and equip == false then | |
| 783 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 784 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.42 * math.cos(sine / 2.5), -0.8) * angles(math.rad(-20), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 26), 0.1) | |
| 785 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10 + 20 * math.sin(sine / 2.5)), math.rad(0), math.rad(0 + 5 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 13), 0.1) | |
| 786 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 5)) * angles(math.rad(0 - 60 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(4 + 2 * math.sin(sine / 5)) - RootPart.RotVelocity.Y / 34), 0.15) | |
| 787 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 5)) * angles(math.rad(0 + 60 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-4 + 2 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / -34), 0.15) | |
| 788 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.24 * math.cos(sine / 5)) * CFrame.Angles(math.rad(-5 - 67 * math.sin(sine / 5)), math.rad(0) + RootPart.RotVelocity.Y / 42, math.rad(0) + RootPart.RotVelocity.Y / -54), 0.3) | |
| 789 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.24 * math.cos(sine / 5)) * CFrame.Angles(math.rad(-5 + 67 * math.sin(sine / 5)), math.rad(0) + RootPart.RotVelocity.Y / 42, math.rad(0) - RootPart.RotVelocity.Y / 54), 0.3) | |
| 790 | end | |
| 791 | if attack == true and noleg == false then | |
| 792 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 - 65 * math.sin(sine / 5)), math.rad(3), math.rad(0)), 0.2) | |
| 793 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 + 65 * math.sin(sine / 5)), math.rad(-3), math.rad(0)), 0.2) | |
| 794 | end | |
| 795 | end | |
| 796 | end | |
| 797 | if 0 < #Effects then | |
| 798 | for e = 1, #Effects do | |
| 799 | if Effects[e] ~= nil then | |
| 800 | local Thing = Effects[e] | |
| 801 | if Thing ~= nil then | |
| 802 | local Part = Thing[1] | |
| 803 | local Mode = Thing[2] | |
| 804 | local Delay = Thing[3] | |
| 805 | local IncX = Thing[4] | |
| 806 | local IncY = Thing[5] | |
| 807 | local IncZ = Thing[6] | |
| 808 | if Thing[1].Transparency <= 1 then | |
| 809 | if Thing[2] == "Block1" then | |
| 810 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 811 | Mesh = Thing[1]:FindFirstChild("Mesh")
| |
| 812 | if not Mesh then | |
| 813 | Mesh = Instance.new("BlockMesh")
| |
| 814 | end | |
| 815 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 816 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 817 | elseif Thing[2] == "Cylinder" then | |
| 818 | Mesh = Thing[1]:FindFirstChild("Mesh")
| |
| 819 | if not Mesh then | |
| 820 | Mesh = Instance.new("BlockMesh")
| |
| 821 | end | |
| 822 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 823 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 824 | elseif Thing[2] == "Blood" then | |
| 825 | Mesh = Thing[1]:FindFirstChild("Mesh")
| |
| 826 | if not Mesh then | |
| 827 | Mesh = Instance.new("BlockMesh")
| |
| 828 | end | |
| 829 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
| 830 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 831 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 832 | elseif Thing[2] == "Elec" then | |
| 833 | Mesh = Thing[1]:FindFirstChild("Mesh")
| |
| 834 | if not Mesh then | |
| 835 | Mesh = Instance.new("BlockMesh")
| |
| 836 | end | |
| 837 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
| 838 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 839 | elseif Thing[2] == "Disappear" then | |
| 840 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 841 | end | |
| 842 | else | |
| 843 | Part.Parent = nil | |
| 844 | game:GetService("Debris"):AddItem(Part, 0)
| |
| 845 | table.remove(Effects, e) | |
| 846 | end | |
| 847 | end | |
| 848 | end | |
| 849 | end | |
| 850 | end | |
| 851 | end |