SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local Mouse = Player:GetMouse() | |
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | local input = function(io,a) | |
| 68 | if a then return end | |
| 69 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | ||
| 85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 86 | --Real game object | |
| 87 | local _rg = game | |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | if s then return s[k] end | |
| 94 | end, | |
| 95 | __newindex = function(self,k,v) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then s[k]=v end | |
| 98 | end, | |
| 99 | __call = function(self,...) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s(...) end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return self[s] | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | } | |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | g.service = g.GetService | |
| 122 | ||
| 123 | g.RunService = FakeService({
| |
| 124 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 125 | BindToRenderStep = function(self,name,_,fun) | |
| 126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 127 | end, | |
| 128 | UnbindFromRenderStep = function(self,name) | |
| 129 | self._btrs[name]:Disconnect() | |
| 130 | end, | |
| 131 | },"RunService") | |
| 132 | ||
| 133 | setmetatable(g,{
| |
| 134 | __index=function(self,s) | |
| 135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 137 | end, | |
| 138 | __newindex = fsmt.__newindex, | |
| 139 | __call = fsmt.__call | |
| 140 | }) | |
| 141 | --Changing owner to fake player object to support owner:GetMouse() | |
| 142 | game,owner = g,g.Players.LocalPlayer | |
| 143 | end | |
| 144 | --------------------------This is an Official script from Duelist-------------------------- | |
| 145 | ---{-------------------- -------------------}---
| |
| 146 | ---{-------------------- / \ -------------------}---
| |
| 147 | ---{-------------------- II -------------------}---
| |
| 148 | ---{-------------------- II -------------------}---
| |
| 149 | ---{-------------------- II -------------------}---
| |
| 150 | ---{-------------------- A========A -------------------}---
| |
| 151 | ---{-------------------- II -------------------}---
| |
| 152 | ---{-------------------- II -------------------}---
| |
| 153 | ---{-------------------- W -------------------}---
| |
| 154 | ------------------------------------------------------------------------------------------------------------- | |
| 155 | wait() | |
| 156 | script.Parent=nil | |
| 157 | function Fire(cframee) | |
| 158 | local part = Instance.new("Part", game.Players.LocalPlayer.Character)
| |
| 159 | part.FormFactor = Enum.FormFactor.Symmetric | |
| 160 | part.CanCollide = false | |
| 161 | part.Anchored = true | |
| 162 | part.Material = Enum.Material.Neon | |
| 163 | part.Size = Vector3.new(8, 1, 1) | |
| 164 | part.Locked = true | |
| 165 | part.BrickColor = BrickColor.new("Cyan")
| |
| 166 | part.Friction = 0.3 | |
| 167 | part.CFrame=cframee | |
| 168 | while part and part.Parent~=nil do | |
| 169 | local ray = Ray.new( | |
| 170 | part.CFrame.p, | |
| 171 | (part.CFrame*CFrame.new(1,0,0).p - part.CFrame.p).unit * 4 | |
| 172 | ) | |
| 173 | local ignore = game.Players.LocalPlayer.Character | |
| 174 | ||
| 175 | local hit, position, normal = Workspace:FindPartOnRay(ray, ignore) | |
| 176 | if hit then | |
| 177 | part.CFrame=part.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0) | |
| 178 | pcall(function()hit.Parent.Humanoid:TakeDamage(999999999)end) | |
| 179 | pcall(function()hit.Parent.Parent.Humanoid:TakeDamage(999999999)end) | |
| 180 | else | |
| 181 | part.CFrame=part.CFrame*CFrame.new(4,0,0) | |
| 182 | end | |
| 183 | game:service'RunService'.RenderStepped:wait() | |
| 184 | end | |
| 185 | end | |
| 186 | game:service'Players'.LocalPlayer:GetMouse().KeyDown:connect(function(key) | |
| 187 | if key=='e' then | |
| 188 | Fire(game.Players.LocalPlayer.Character.Head.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,math.rad(90),0)) | |
| 189 | elseif key == '' then | |
| 190 | for i=1, 999999999 do | |
| 191 | coroutine.resume(coroutine.create(function() | |
| 192 | Fire(game.Players.LocalPlayer.Character.Head.CFrame*CFrame.Angles(0,math.rad(i*10),0)*CFrame.new(0,0,-4)*CFrame.Angles(0,math.rad(90),0)) | |
| 193 | end)) | |
| 194 | end | |
| 195 | end | |
| 196 | end) | |
| 197 | s = Instance.new("Sound",Workspace)
| |
| 198 | s.Pitch = 1 | |
| 199 | s.Volume = 4 | |
| 200 | s.SoundId = "rbxassetid://2014353985" | |
| 201 | s.Looped = true | |
| 202 | s.PlayOnRemove = false | |
| 203 | s:Play() | |
| 204 | ||
| 205 | plr = game.Players.LocalPlayer | |
| 206 | ||
| 207 | wait(1) | |
| 208 | ||
| 209 | HUMANOID = game.Workspace:WaitForChild(plr.Name) | |
| 210 | ||
| 211 | NEWPART = Instance.new("BillboardGui",HUMANOID.Head)
| |
| 212 | ||
| 213 | NEWTEXT = Instance.new("TextLabel",NEWPART)
| |
| 214 | ||
| 215 | NEWTEXT.Text = plr.Name | |
| 216 | ||
| 217 | NEWPART.ExtentsOffset = Vector3.new(0,3,0) | |
| 218 | ||
| 219 | NEWPART.Size = UDim2.new(1,1,1,1) | |
| 220 | ||
| 221 | NEWTEXT.Size = UDim2.new(5,0,1,1) | |
| 222 | ||
| 223 | NEWTEXT.TextScaled = true | |
| 224 | ||
| 225 | NEWTEXT.BackgroundTransparency = 1 | |
| 226 | ||
| 227 | NEWTEXT.Position = UDim2.new(-2,0,-0.5,0) | |
| 228 | ||
| 229 | NEWPART.AlwaysOnTop = true | |
| 230 | ||
| 231 | --i used stravants Beautifier so it might look a bit wonky | |
| 232 | Meshes = {
| |
| 233 | Blast = '20329976', | |
| 234 | Crown = '1323306', | |
| 235 | Ring = '3270017', | |
| 236 | Claw = '10681506', | |
| 237 | Crystal = '9756362', | |
| 238 | Coil = '9753878', | |
| 239 | Cloud = '1095708', | |
| 240 | } | |
| 241 | clangsounds = {
| |
| 242 | '199149119', | |
| 243 | '199149109', | |
| 244 | '199149072', | |
| 245 | '199149025', | |
| 246 | '199148971' | |
| 247 | } | |
| 248 | hitsounds = {
| |
| 249 | '199149137', | |
| 250 | '199149186', | |
| 251 | '199149221', | |
| 252 | '199149235', | |
| 253 | '199149269', | |
| 254 | '199149297' | |
| 255 | } | |
| 256 | blocksounds = {
| |
| 257 | '199148933', | |
| 258 | '199148947' | |
| 259 | } | |
| 260 | armorsounds = {
| |
| 261 | '199149321', | |
| 262 | '199149338', | |
| 263 | '199149367', | |
| 264 | '199149409', | |
| 265 | '199149452' | |
| 266 | } | |
| 267 | woosh = {
| |
| 268 | Heavy1 = '320557353', | |
| 269 | Heavy2 = '320557382', | |
| 270 | Heavy3 = '320557453', | |
| 271 | Heavy4 = '199144226', | |
| 272 | Heavy5 = '203691447', | |
| 273 | Heavy6 = '203691467', | |
| 274 | Heavy7 = '203691492', | |
| 275 | Light1 = '320557413', | |
| 276 | Light2 = '320557487', | |
| 277 | Light3 = '199145095', | |
| 278 | Light4 = '199145146', | |
| 279 | Light5 = '199145887', | |
| 280 | Light6 = '199145913', | |
| 281 | Light7 = '199145841', | |
| 282 | Medium1 = '320557518', | |
| 283 | Medium2 = '320557537', | |
| 284 | Medium3 = '320557563', | |
| 285 | Medium4 = '199145204' | |
| 286 | } | |
| 287 | music = {--i like music a lot
| |
| 288 | Breaking = '179281636', | |
| 289 | FinalReckoning = '357375770', | |
| 290 | NotDeadYet = '346175829', | |
| 291 | Intense = '151514610', | |
| 292 | JumpP1 = '160536628', | |
| 293 | JumpP2 = '60536666', | |
| 294 | SonsOfWar = '158929777', | |
| 295 | WrathOfSea = '165520893', | |
| 296 | ProtecTorsofEarth = '160542922', | |
| 297 | SkyTitans = '179282324', | |
| 298 | ArchAngel = '144043274', | |
| 299 | Anticipation = '168614529', | |
| 300 | TheMartyred = '186849544', | |
| 301 | AwakeP1 = '335631255', | |
| 302 | AwakeP2 = '335631297', | |
| 303 | ReadyAimFireP1 = '342455387', | |
| 304 | ReadyAimFireP2 = '342455399', | |
| 305 | DarkLordP1 = '209567483', | |
| 306 | DarkLordP2 = '209567529', | |
| 307 | BloodDrainP1 = '162914123', | |
| 308 | BloodDrainP2 = '162914203', | |
| 309 | DanceOfSwords = '320473062', | |
| 310 | Opal = '286415112', | |
| 311 | Calamity = '190454307', | |
| 312 | Hypnotica = '155968128', | |
| 313 | Nemisis = '160453802', | |
| 314 | Breathe = '276963903', | |
| 315 | GateToTheRift = '270655227', | |
| 316 | InfernalBeserking = '244143404', | |
| 317 | Trust = '246184492', | |
| 318 | AwakeningTheProject = '245121821', | |
| 319 | BloodPain = '242545577', | |
| 320 | Chaos = '247241693', | |
| 321 | NightmareFictionHighStake = '248062278', | |
| 322 | TheWhiteWeapon = '247236446', | |
| 323 | Gale = '256851659', | |
| 324 | ImperialCode = '256848383', | |
| 325 | Blitzkrieg = '306431437', | |
| 326 | RhapsodyRage = '348690251', | |
| 327 | TheGodFist = '348541501', | |
| 328 | BattleForSoul = '321185592', | |
| 329 | TheDarkColossus = '305976780', | |
| 330 | EmpireOfAngels = '302580452', | |
| 331 | Kronos = '302205297', | |
| 332 | Exorcist = '299796054', | |
| 333 | CrimsonFlames = '297799220', | |
| 334 | UltimatePower = '295753229', | |
| 335 | DrivingInTheDark = '295753229', | |
| 336 | AscendToPower = '293860654', | |
| 337 | GodOfTheSun = '293612495', | |
| 338 | DarkRider = '293861765', | |
| 339 | Vengeance = '293375555', | |
| 340 | SoundOfWar = '293376196', | |
| 341 | HellsCrusaders = '293012202', | |
| 342 | Legend = '293011823', | |
| 343 | RisingSouls = '290524959' | |
| 344 | } | |
| 345 | misc = {
| |
| 346 | GroundSlam = '199145477', | |
| 347 | LaserSlash = '199145497', | |
| 348 | RailGunFire = '199145534', | |
| 349 | Charge1 = '199145659', | |
| 350 | Charge2 = '169380469', | |
| 351 | Charge3 = '169380479', | |
| 352 | EmptyGun = '203691822', | |
| 353 | GunShoot = '203691837', | |
| 354 | Stomp1 = '200632875', | |
| 355 | Stomp2 = '200632561', | |
| 356 | TelsaCannonCharge = '169445572', | |
| 357 | TelsaCannonShoot = '169445602', | |
| 358 | AncientHymm = '245313442' | |
| 359 | } | |
| 360 | wait(1 / 60) | |
| 361 | local Player = game.Players.localPlayer | |
| 362 | local Character = Player.Character | |
| 363 | local Humanoid = Character.Humanoid | |
| 364 | local mouse = Player:GetMouse() | |
| 365 | local m = Instance.new('Model', Character)
| |
| 366 | m.Name = "WeaponModel" | |
| 367 | local LeftArm = Character["Left Arm"] | |
| 368 | local RightArm = Character["Right Arm"] | |
| 369 | local LeftLeg = Character["Left Leg"] | |
| 370 | local RightLeg = Character["Right Leg"] | |
| 371 | local Head = Character.Head | |
| 372 | local Torso = Character.Torso | |
| 373 | local cam = game.Workspace.CurrentCamera | |
| 374 | local RootPart = Character.HumanoidRootPart | |
| 375 | local RootJoint = RootPart.RootJoint | |
| 376 | --cam.CameraSubject = Head | |
| 377 | local equipped = false | |
| 378 | local attack = false | |
| 379 | local Anim = 'Idle' | |
| 380 | local idle = 0 | |
| 381 | local sprint = false | |
| 382 | local battlestance = false | |
| 383 | local attacktype = 1 | |
| 384 | local state = 'none' | |
| 385 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 386 | local velocity = RootPart.Velocity.y | |
| 387 | local sine = 0 | |
| 388 | local change = 1 | |
| 389 | local on = false | |
| 390 | local grabbed = false | |
| 391 | local skill1 = false | |
| 392 | local skill2 = false | |
| 393 | local skill3 = false | |
| 394 | local skill4 = false | |
| 395 | local cooldown1 = 0 | |
| 396 | local cooldown2 = 0 | |
| 397 | local cooldown3 = 0 | |
| 398 | local cooldown4 = 0 | |
| 399 | local co1 = 10--how long it will take for skill to cooldown | |
| 400 | local co2 = 15 | |
| 401 | local co3 = 15 | |
| 402 | local co4 = 25 | |
| 403 | local inputserv = game:GetService('UserInputService')
| |
| 404 | local typing = false | |
| 405 | local crit = false | |
| 406 | local critchance = 2--critical chance percentage | |
| 407 | local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage | |
| 408 | local critdamageaddmax = 7--maximum amount | |
| 409 | local maxstamina = 100--max amount of stamina | |
| 410 | local stamina = 0--stamina you start out with | |
| 411 | local skill1stam = 10--how much stamina is needed for a skill | |
| 412 | local skill2stam = 10 | |
| 413 | local skill3stam = 20 | |
| 414 | local skill4stam = 30 | |
| 415 | local recovermana = 3--how much mana per second | |
| 416 | local defensevalue = 1--how much defense this character has | |
| 417 | local speedvalue = 1--how much speed this character has | |
| 418 | --speed is 16*speedvalue | |
| 419 | local mindamage = 5--self explanatory | |
| 420 | local maxdamage = 7--self explanatory | |
| 421 | local damagevalue = 1--how much damage this character has | |
| 422 | --damage is math.random(mindamage,maxdamage)*damagevalue | |
| 423 | --damage(hit, mindamage, maxdamage, 1, 1, RootPart) | |
| 424 | --asd | |
| 425 | local cn = CFrame.new-- make things easier :) | |
| 426 | local mr = math.rad | |
| 427 | local angles = CFrame.Angles | |
| 428 | local ud = UDim2.new | |
| 429 | local c3 = Color3.new | |
| 430 | local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol | |
| 431 | --asd | |
| 432 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 433 | Humanoid.Animator:Destroy() | |
| 434 | ||
| 435 | --Angles For RootJoint `~` | |
| 436 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 437 | --Save Shoulders/Hips | |
| 438 | RSH, LSH = nil, nil | |
| 439 | RHS, LHS = nil, nil | |
| 440 | --Shoulders | |
| 441 | RW = Instance.new("Weld")
| |
| 442 | LW = Instance.new("Weld")
| |
| 443 | --Hips | |
| 444 | RH = Instance.new("Weld")
| |
| 445 | LH = Instance.new("Weld")
| |
| 446 | -- | |
| 447 | Player = Player | |
| 448 | ch = Character | |
| 449 | LHS = Torso["Left Hip"] | |
| 450 | RHS = Torso["Right Hip"] | |
| 451 | RSH = ch.Torso["Right Shoulder"] | |
| 452 | LSH = ch.Torso["Left Shoulder"] | |
| 453 | -- | |
| 454 | RSH.Parent = nil | |
| 455 | LSH.Parent = nil | |
| 456 | -- | |
| 457 | LHS.Parent = nil | |
| 458 | RHS.Parent = nil | |
| 459 | -- | |
| 460 | RW.Name = "RW" | |
| 461 | RW.Part0 = ch.Torso | |
| 462 | RW.C0 = cn(1.5, 0.5, 0) | |
| 463 | RW.C1 = cn(0, 0.5, 0) | |
| 464 | RW.Part1 = ch["Right Arm"] | |
| 465 | RW.Parent = ch.Torso | |
| 466 | -- | |
| 467 | LW.Name = "LW" | |
| 468 | LW.Part0 = ch.Torso | |
| 469 | LW.C0 = cn(-1.5, 0.5, 0) | |
| 470 | LW.C1 = cn(0, 0.5, 0) | |
| 471 | LW.Part1 = ch["Left Arm"] | |
| 472 | LW.Parent = ch.Torso | |
| 473 | -- | |
| 474 | LH.Name = "LH" | |
| 475 | LH.Part0 = ch.Torso | |
| 476 | LH.C0 = cn(-0.5, -2, 0) | |
| 477 | LH.Part1 = ch["Left Leg"] | |
| 478 | LH.Parent = ch.Torso | |
| 479 | -- | |
| 480 | RH.Name = "RH" | |
| 481 | RH.Part0 = ch.Torso | |
| 482 | RH.C0 = cn(0.5, -2, 0) | |
| 483 | RH.Part1 = ch["Right Leg"] | |
| 484 | RH.Parent = ch.Torso | |
| 485 | ||
| 486 | local Flying = false | |
| 487 | ||
| 488 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) | |
| 489 | if Flying == true then | |
| 490 | if jump == "Jump" then | |
| 491 | Humanoid.Jump = false | |
| 492 | end | |
| 493 | end | |
| 494 | end) | |
| 495 | ||
| 496 | Humanoid.CameraOffset = Vector3.new(0, -2, 0) | |
| 497 | ||
| 498 | Torso.Transparency = 1 | |
| 499 | Head.Transparency = 1 | |
| 500 | LeftLeg.Transparency = 1 | |
| 501 | RightLeg.Transparency = 1 | |
| 502 | LeftArm.Transparency = 1 | |
| 503 | RightArm.Transparency = 1 | |
| 504 | ||
| 505 | for i,v in pairs (Character:GetChildren()) do | |
| 506 | if v.ClassName == "Hat" | |
| 507 | then v:Destroy() | |
| 508 | end | |
| 509 | end | |
| 510 | ||
| 511 | for i,v in pairs (Character.Head:GetChildren()) do | |
| 512 | if v.ClassName == "Decal" | |
| 513 | then v:Destroy() | |
| 514 | end | |
| 515 | end | |
| 516 | ||
| 517 | Character.Animate:Destroy() | |
| 518 | ||
| 519 | local scrn = Instance.new('ScreenGui')
| |
| 520 | scrn.Parent = nil | |
| 521 | ||
| 522 | function makeframe(par, trans, pos, size, color) | |
| 523 | local frame = Instance.new('Frame', par)
| |
| 524 | frame.BackgroundTransparency = trans | |
| 525 | frame.BorderSizePixel = 0 | |
| 526 | frame.Position = pos | |
| 527 | frame.Size = size | |
| 528 | frame.BackgroundColor3 = color | |
| 529 | return frame | |
| 530 | end | |
| 531 | function makelabel(par, text) | |
| 532 | local label = Instance.new('TextLabel', par)
| |
| 533 | label.BackgroundTransparency = 1 | |
| 534 | label.Size = ud(1, 0, 1, 0) | |
| 535 | label.Position = ud(0, 0, 0, 0) | |
| 536 | label.TextColor3 = c3(255, 255, 255) | |
| 537 | label.TextStrokeTransparency = 0 | |
| 538 | label.FontSize = Enum.FontSize.Size32 | |
| 539 | label.Font = Enum.Font.SourceSansBold | |
| 540 | label.BorderSizePixel = 0 | |
| 541 | label.TextScaled = true | |
| 542 | label.Text = text | |
| 543 | end | |
| 544 | framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
| 545 | framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
| 546 | framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
| 547 | framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
| 548 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
| 549 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
| 550 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
| 551 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
| 552 | text1 = makelabel(framesk1, '[3] Skill3') | |
| 553 | text2 = makelabel(framesk2, '[4] Skill4') | |
| 554 | text3 = makelabel(framesk3, "[2] Skill2") | |
| 555 | text4 = makelabel(framesk4, '[1] Skill1') | |
| 556 | staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1)) | |
| 557 | staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1)) | |
| 558 | staminatext = makelabel(staminabar, 'Mana') | |
| 559 | healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0)) | |
| 560 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255)) | |
| 561 | healthtext = makelabel(healthbar, 'Health') | |
| 562 | ||
| 563 | local stats = Instance.new('Folder', Character)
| |
| 564 | stats.Name = 'Stats' | |
| 565 | local block = Instance.new('BoolValue', stats)
| |
| 566 | block.Name = 'Block' | |
| 567 | block.Value = false | |
| 568 | local stun = Instance.new('BoolValue', stats)
| |
| 569 | stun.Name = 'Stun' | |
| 570 | stun.Value = false | |
| 571 | local defense = Instance.new('NumberValue', stats)
| |
| 572 | defense.Name = 'Defence' | |
| 573 | defense.Value = defensevalue | |
| 574 | local speed = Instance.new('NumberValue', stats)
| |
| 575 | speed.Name = 'Speed' | |
| 576 | speed.Value = speedvalue | |
| 577 | local damagea = Instance.new('NumberValue', stats)
| |
| 578 | damagea.Name = 'Damage' | |
| 579 | damagea.Value = damagevalue | |
| 580 | ||
| 581 | function atktype(s, e) | |
| 582 | coroutine.resume(coroutine.create(function() | |
| 583 | attacktype = e | |
| 584 | wait(1.5) | |
| 585 | attacktype = s | |
| 586 | end)) | |
| 587 | end | |
| 588 | ||
| 589 | function turncrit() | |
| 590 | coroutine.resume(coroutine.create(function() | |
| 591 | print'CRITICAL!' | |
| 592 | crit = true | |
| 593 | wait(.25) | |
| 594 | crit = false | |
| 595 | end)) | |
| 596 | end | |
| 597 | ||
| 598 | function subtractstamina(k) | |
| 599 | if stamina >= k then | |
| 600 | stamina = stamina - k | |
| 601 | end | |
| 602 | end | |
| 603 | ||
| 604 | function clerp(a, b, t) | |
| 605 | return a:lerp(b, t) | |
| 606 | end | |
| 607 | ||
| 608 | function randomizer(percent) | |
| 609 | local randomized = math.random(0, 100) | |
| 610 | if randomized <= percent then | |
| 611 | return true | |
| 612 | elseif randomized >= percent then | |
| 613 | return false | |
| 614 | end | |
| 615 | end | |
| 616 | ||
| 617 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 618 | local Create = RbxUtility.Create | |
| 619 | ||
| 620 | function RemoveOutlines(part) | |
| 621 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 622 | end | |
| 623 | ||
| 624 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 625 | local Part = Create("Part"){
| |
| 626 | formFactor = FormFactor, | |
| 627 | Parent = Parent, | |
| 628 | Reflectance = Reflectance, | |
| 629 | Transparency = Transparency, | |
| 630 | CanCollide = false, | |
| 631 | Locked = true, | |
| 632 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 633 | Name = Name, | |
| 634 | Size = Size, | |
| 635 | Material = Material, | |
| 636 | } | |
| 637 | RemoveOutlines(Part) | |
| 638 | return Part | |
| 639 | end | |
| 640 | ||
| 641 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 642 | local Msh = Create(Mesh){
| |
| 643 | Parent = Part, | |
| 644 | Offset = OffSet, | |
| 645 | Scale = Scale, | |
| 646 | } | |
| 647 | if Mesh == "SpecialMesh" then | |
| 648 | Msh.MeshType = MeshType | |
| 649 | Msh.MeshId = MeshId | |
| 650 | end | |
| 651 | return Msh | |
| 652 | end | |
| 653 | ||
| 654 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 655 | local Weld = Create("Weld"){
| |
| 656 | Parent = Parent, | |
| 657 | Part0 = Part0, | |
| 658 | Part1 = Part1, | |
| 659 | C0 = C0, | |
| 660 | C1 = C1, | |
| 661 | } | |
| 662 | return Weld | |
| 663 | end | |
| 664 | ||
| 665 | function rayCast(pos, dir, maxl, ignore) | |
| 666 | return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
| |
| 667 | end | |
| 668 | --Effects | |
| 669 | function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type) | |
| 670 | local p = Instance.new('Part', par or workspace)
| |
| 671 | p.CFrame = pos1 | |
| 672 | p.Anchored = true | |
| 673 | p.Material = 'Concrete' | |
| 674 | p.CanCollide = false | |
| 675 | p.TopSurface = 0 | |
| 676 | p.Size = Vector3.new(1, 1, 1) | |
| 677 | p.BottomSurface = 0 | |
| 678 | p.Transparency = trans | |
| 679 | p.FormFactor = 'Custom' | |
| 680 | RemoveOutlines(p) | |
| 681 | local mesh = Instance.new('SpecialMesh', p)
| |
| 682 | mesh.Scale = size | |
| 683 | if id ~= nil and type == nil then | |
| 684 | mesh.MeshId = 'rbxassetid://'..id | |
| 685 | elseif id == nil and type ~= nil then | |
| 686 | mesh.MeshType = type | |
| 687 | elseif id == nil and type == nil then | |
| 688 | mesh.MeshType = 'Brick' | |
| 689 | end | |
| 690 | coroutine.wrap(function() | |
| 691 | for i = 0, delay1, .1 do | |
| 692 | wait(1 / 60) | |
| 693 | p.CFrame = p.CFrame | |
| 694 | mesh.Scale = mesh.Scale + howmuch | |
| 695 | p.Transparency = p.Transparency + trans1 | |
| 696 | end | |
| 697 | p:Destroy() | |
| 698 | end)() | |
| 699 | return p | |
| 700 | end | |
| 701 | function clangy(cframe) | |
| 702 | wait(1 / 60) | |
| 703 | local clang = {}
| |
| 704 | local dis = 0 | |
| 705 | local part = Instance.new('Part', nil)
| |
| 706 | part.CFrame = cframe | |
| 707 | part.Anchored = true | |
| 708 | part.CanCollide = false | |
| 709 | part.BrickColor = BrickColor.new('New Yeller')
| |
| 710 | part.FormFactor = 'Custom' | |
| 711 | part.Name = 'clanger' | |
| 712 | part.Size = Vector3.new(.2, .2, .2) | |
| 713 | part.TopSurface = 10 | |
| 714 | part.BottomSurface = 10 | |
| 715 | part.RightSurface = 10 | |
| 716 | part.LeftSurface = 10 | |
| 717 | part.BackSurface = 10 | |
| 718 | part.FrontSurface = 10 | |
| 719 | --part.Material='Neon' | |
| 720 | part:BreakJoints() | |
| 721 | local mesh = Instance.new('BlockMesh', part)
| |
| 722 | coroutine.wrap(function() | |
| 723 | for i = 1, 7 do | |
| 724 | wait(1 / 60) | |
| 725 | dis = dis + .2 | |
| 726 | local partc = part:clone() | |
| 727 | partc.Parent = workspace | |
| 728 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
| 729 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
| 730 | table.insert(clang, partc) | |
| 731 | end | |
| 732 | for i, v in pairs(clang) do | |
| 733 | coroutine.wrap(function() | |
| 734 | for i = 1, 10 do | |
| 735 | wait(.01) | |
| 736 | v.Transparency = v.Transparency + .1 | |
| 737 | end | |
| 738 | v:destroy() | |
| 739 | end)() | |
| 740 | end | |
| 741 | end)() | |
| 742 | end | |
| 743 | --damage effects | |
| 744 | function circle(color, pos1) | |
| 745 | local p = Instance.new('Part', m)
| |
| 746 | p.BrickColor = BrickColor.new(color) | |
| 747 | p.CFrame = pos1 | |
| 748 | p.Anchored = true | |
| 749 | p.Material = 'Plastic' | |
| 750 | p.CanCollide = false | |
| 751 | p.TopSurface = 0 | |
| 752 | p.Size = Vector3.new(1, 1, 1) | |
| 753 | p.BottomSurface = 0 | |
| 754 | p.Transparency = 0.35 | |
| 755 | p.FormFactor = 'Custom' | |
| 756 | local mesh = Instance.new('CylinderMesh', p)
| |
| 757 | mesh.Scale = Vector3.new(0, 0, 0) | |
| 758 | coroutine.wrap(function() | |
| 759 | for i = 0, 5, .1 do | |
| 760 | wait(1 / 60) | |
| 761 | p.CFrame = p.CFrame | |
| 762 | mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5) | |
| 763 | p.Transparency = p.Transparency + .025 | |
| 764 | end | |
| 765 | p:Destroy() | |
| 766 | end)() | |
| 767 | end | |
| 768 | function firespaz1(color, pos1) | |
| 769 | local p = Instance.new('Part', m)
| |
| 770 | p.BrickColor = BrickColor.new(color) | |
| 771 | p.CFrame = pos1 | |
| 772 | p.Anchored = true | |
| 773 | p.Material = 'Plastic' | |
| 774 | p.CanCollide = false | |
| 775 | p.TopSurface = 0 | |
| 776 | p.Size = Vector3.new(1, 1, 1) | |
| 777 | p.BottomSurface = 0 | |
| 778 | p.Transparency = 0.5 | |
| 779 | p.FormFactor = 'Custom' | |
| 780 | local mesh = Instance.new('BlockMesh', p)
| |
| 781 | mesh.Scale = Vector3.new(1, 1, 1) | |
| 782 | coroutine.wrap(function() | |
| 783 | for i = 0, 15, .1 do | |
| 784 | wait(1 / 30) | |
| 785 | p.CFrame = p.CFrame * CFrame.new(0, .1, 0) | |
| 786 | mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1) | |
| 787 | p.Transparency = p.Transparency + .025 | |
| 788 | end | |
| 789 | p:Destroy() | |
| 790 | end)() | |
| 791 | end | |
| 792 | ||
| 793 | function pickrandom(tablesa) | |
| 794 | local randomized = tablesa[math.random(1, #tablesa)] | |
| 795 | return randomized | |
| 796 | end | |
| 797 | function sound(id, pitch, volume, par, last) | |
| 798 | local s = Instance.new('Sound', par or Torso)
| |
| 799 | s.SoundId = 'rbxassetid://'..id | |
| 800 | s.Pitch = pitch or 1 | |
| 801 | s.Volume = volume or 1 | |
| 802 | wait() | |
| 803 | s:play() | |
| 804 | game.Debris:AddItem(s, last or 120) | |
| 805 | end | |
| 806 | function clangy(cframe) | |
| 807 | wait(1 / 60) | |
| 808 | local clang = {}
| |
| 809 | local dis = 0 | |
| 810 | local part = Instance.new('Part', nil)
| |
| 811 | part.CFrame = cframe | |
| 812 | part.Anchored = true | |
| 813 | part.CanCollide = false | |
| 814 | part.BrickColor = BrickColor.new('New Yeller')
| |
| 815 | part.FormFactor = 'Custom' | |
| 816 | part.Name = 'clanger' | |
| 817 | part.Size = Vector3.new(.2, .2, .2) | |
| 818 | part.TopSurface = 10 | |
| 819 | part.BottomSurface = 10 | |
| 820 | part.RightSurface = 10 | |
| 821 | part.LeftSurface = 10 | |
| 822 | part.BackSurface = 10 | |
| 823 | part.FrontSurface = 10 | |
| 824 | --part.Material='Neon' | |
| 825 | part:BreakJoints() | |
| 826 | local mesh = Instance.new('BlockMesh', part)
| |
| 827 | coroutine.wrap(function() | |
| 828 | for i = 1, 7 do | |
| 829 | wait(1 / 60) | |
| 830 | dis = dis + .2 | |
| 831 | local partc = part:clone() | |
| 832 | partc.Parent = workspace | |
| 833 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
| 834 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
| 835 | table.insert(clang, partc) | |
| 836 | end | |
| 837 | for i, v in pairs(clang) do | |
| 838 | coroutine.wrap(function() | |
| 839 | for i = 1, 10 do | |
| 840 | wait(.01) | |
| 841 | v.Transparency = v.Transparency + .1 | |
| 842 | end | |
| 843 | v:destroy() | |
| 844 | end)() | |
| 845 | end | |
| 846 | end)() | |
| 847 | end | |
| 848 | --damage effects | |
| 849 | --Effects | |
| 850 | so = function(id, par, vol, pit) | |
| 851 | coroutine.resume(coroutine.create(function() | |
| 852 | local sou = Instance.new("Sound", par or workspace)
| |
| 853 | sou.Volume = vol | |
| 854 | sou.Pitch = pit or 1 | |
| 855 | sou.SoundId = id | |
| 856 | wait() | |
| 857 | sou:play() | |
| 858 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 859 | end)) | |
| 860 | end | |
| 861 | ||
| 862 | local function getclosest(obj, distance) | |
| 863 | local last, lastx = distance + 1 | |
| 864 | for i, v in pairs(workspace:GetChildren()) do | |
| 865 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 866 | local t = v.Torso | |
| 867 | local dist = (t.Position - obj.Position).magnitude | |
| 868 | if dist <= distance then | |
| 869 | if dist < last then | |
| 870 | last = dist | |
| 871 | lastx = v | |
| 872 | end | |
| 873 | end | |
| 874 | end | |
| 875 | end | |
| 876 | return lastx | |
| 877 | end | |
| 878 | ||
| 879 | function makegui(cframe, text) | |
| 880 | local a = math.random(-10, 10) / 100 | |
| 881 | local c = Instance.new("Part")
| |
| 882 | c.Transparency = 1 | |
| 883 | Instance.new("BodyGyro").Parent = c
| |
| 884 | c.Parent = m | |
| 885 | c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0)) | |
| 886 | local f = Instance.new("BodyPosition")
| |
| 887 | f.P = 2000 | |
| 888 | f.D = 100 | |
| 889 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 890 | f.position = c.Position + Vector3.new(0, 3, 0) | |
| 891 | f.Parent = c | |
| 892 | game:GetService("Debris"):AddItem(c, .5 + 6)
| |
| 893 | c.CanCollide = false | |
| 894 | m.Parent = workspace | |
| 895 | c.CanCollide = false | |
| 896 | local bg = Instance.new('BillboardGui', m)
| |
| 897 | bg.Adornee = c | |
| 898 | bg.Size = UDim2.new(1, 0, 1, 0) | |
| 899 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
| 900 | bg.AlwaysOnTop = false | |
| 901 | local tl = Instance.new('TextLabel', bg)
| |
| 902 | tl.BackgroundTransparency = 1 | |
| 903 | tl.Size = UDim2.new(1, 0, 1, 0) | |
| 904 | tl.Text = text | |
| 905 | tl.Font = 'SourceSansBold' | |
| 906 | tl.FontSize = 'Size42' | |
| 907 | if crit == true then | |
| 908 | tl.TextColor3 = Color3.new(180 / 255, 0, 0) | |
| 909 | else | |
| 910 | tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255) | |
| 911 | end | |
| 912 | tl.TextStrokeTransparency = 0 | |
| 913 | tl.TextScaled = true | |
| 914 | tl.TextWrapped = true | |
| 915 | coroutine.wrap(function() | |
| 916 | wait(2) | |
| 917 | for i = 1, 10 do | |
| 918 | wait() | |
| 919 | tl.TextTransparency = tl.TextTransparency + .1 | |
| 920 | end | |
| 921 | end)() | |
| 922 | end | |
| 923 | ||
| 924 | function tag(hum, Player) | |
| 925 | local creator = Instance.new('ObjectValue', hum)
| |
| 926 | creator.Value = Player | |
| 927 | creator.Name = 'creator' | |
| 928 | end | |
| 929 | function untag(hum) | |
| 930 | if hum ~= nil then | |
| 931 | local tag = hum:findFirstChild("creator")
| |
| 932 | if tag ~= nil then | |
| 933 | tag.Parent = nil | |
| 934 | end | |
| 935 | end | |
| 936 | end | |
| 937 | ||
| 938 | function tagPlayer(h) | |
| 939 | coroutine.wrap(function() | |
| 940 | tag(h, Player) | |
| 941 | wait(1) | |
| 942 | untag(h) | |
| 943 | end)() | |
| 944 | end | |
| 945 | function damage(hit, mind, maxd, knock, type, prop) | |
| 946 | --[[ | |
| 947 | to apply it to a Player directly, make the first arg go to the Players Torso | |
| 948 | 1 - normal type(damage and knockback) | |
| 949 | 2 - drain type(damage no knockback) | |
| 950 | 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed | |
| 951 | 4 - heal(heals target) | |
| 952 | 5 - subtracts enemies defense | |
| 953 | 6 - subtracts enemies speed | |
| 954 | 7 - | |
| 955 | ]] | |
| 956 | if hit.Name:lower() == 'Hitbox' then | |
| 957 | local pos = CFrame.new(0, 1, -1) | |
| 958 | sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6) | |
| 959 | coroutine.wrap(function() | |
| 960 | for i = 1, 4 do | |
| 961 | clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)) | |
| 962 | end | |
| 963 | end)() | |
| 964 | end | |
| 965 | if hit.Parent == nil then | |
| 966 | return | |
| 967 | end | |
| 968 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 969 | for i, v in pairs(hit.Parent:children()) do | |
| 970 | if v:IsA("Humanoid") then
| |
| 971 | h = v | |
| 972 | end | |
| 973 | end | |
| 974 | if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
| |
| 975 | h = hit.Parent.Parent:FindFirstChild('Humanoid')
| |
| 976 | end | |
| 977 | if hit.Parent:IsA('Hat') then
| |
| 978 | hit = hit.Parent.Parent:findFirstChild('Head')
| |
| 979 | end | |
| 980 | local D = math.random(mind, maxd) * damagea.Value | |
| 981 | if h.Parent:FindFirstChild('Stats') then
| |
| 982 | D = D / h.Parent:FindFirstChild('Stats').Defence.Value
| |
| 983 | elseif not h.Parent:FindFirstChild('Stats') then
| |
| 984 | D = D | |
| 985 | end | |
| 986 | if h then | |
| 987 | makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5))) | |
| 988 | end | |
| 989 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 990 | if type == 1 then | |
| 991 | tagPlayer(h) | |
| 992 | local asd = randomizer(critchance) | |
| 993 | if asd == true then | |
| 994 | turncrit() | |
| 995 | end | |
| 996 | if crit == false then | |
| 997 | h.Health = h.Health - D | |
| 998 | else | |
| 999 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
| 1000 | end | |
| 1001 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
| |
| 1002 | local vp = Instance.new('BodyVelocity')
| |
| 1003 | vp.P = 500 | |
| 1004 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
| 1005 | vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05 | |
| 1006 | if knock > 0 then | |
| 1007 | vp.Parent = hit.Parent.Torso | |
| 1008 | end | |
| 1009 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 1010 | elseif type == 2 then | |
| 1011 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
| |
| 1012 | local asd = randomizer(critchance) | |
| 1013 | if asd == true then | |
| 1014 | turncrit() | |
| 1015 | end | |
| 1016 | if crit == false then | |
| 1017 | h.Health = h.Health - D | |
| 1018 | else | |
| 1019 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
| 1020 | end | |
| 1021 | tagPlayer(h) | |
| 1022 | elseif type == 3 then | |
| 1023 | tagPlayer(h) | |
| 1024 | local asd = randomizer(critchance) | |
| 1025 | if asd == true then | |
| 1026 | turncrit() | |
| 1027 | end | |
| 1028 | if crit == false then | |
| 1029 | h.Health = h.Health - D | |
| 1030 | else | |
| 1031 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
| 1032 | end | |
| 1033 | Character.Humanoid.Health = Character.Humanoid.Health + D / 2 | |
| 1034 | so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
| |
| 1035 | for i = 1, 10 do | |
| 1036 | firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
| |
| 1037 | end | |
| 1038 | elseif type == 4 then | |
| 1039 | h.Health = h.Health + D | |
| 1040 | so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
| |
| 1041 | circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
| |
| 1042 | end | |
| 1043 | end | |
| 1044 | end | |
| 1045 | ||
| 1046 | function subtrackstamina(k) | |
| 1047 | if stamina >= k then | |
| 1048 | stamina = stamina - k | |
| 1049 | end | |
| 1050 | end | |
| 1051 | ||
| 1052 | Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998)) | |
| 1053 | Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006)) | |
| 1054 | CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1055 | LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Really Pearl","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1056 | LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945)) | |
| 1057 | CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1058 | LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1059 | LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588)) | |
| 1060 | CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1061 | NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
| 1062 | NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
| 1063 | CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1064 | RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1065 | RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199)) | |
| 1066 | CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1067 | RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1068 | RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441)) | |
| 1069 | CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1070 | TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
| 1071 | TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
| 1072 | CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1073 | Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Wings",Vector3.new(1.38, 0.600000024, 0.400000006)) | |
| 1074 | Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0)) | |
| 1075 | CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093))
| |
| 1076 | HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993)) | |
| 1077 | HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847)) | |
| 1078 | CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1079 | HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993)) | |
| 1080 | HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0)) | |
| 1081 | CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1082 | BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993)) | |
| 1083 | BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992)) | |
| 1084 | CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1085 | BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919)) | |
| 1086 | BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686)) | |
| 1087 | CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1088 | Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Head",Vector3.new(1.59999979, 1, 1.19999993)) | |
| 1089 | Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1)) | |
| 1090 | CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1091 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003)) | |
| 1092 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422)) | |
| 1093 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1094 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006)) | |
| 1095 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958)) | |
| 1096 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1097 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006)) | |
| 1098 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051)) | |
| 1099 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1100 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003)) | |
| 1101 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031)) | |
| 1102 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1103 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917)) | |
| 1104 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1)) | |
| 1105 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1106 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917)) | |
| 1107 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1)) | |
| 1108 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1109 | LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1110 | LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503)) | |
| 1111 | CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1112 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
| 1113 | Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503)) | |
| 1114 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1115 | LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1116 | LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668)) | |
| 1117 | CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1118 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
| 1119 | Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668)) | |
| 1120 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1121 | RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1122 | RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874)) | |
| 1123 | CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1124 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
| 1125 | Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874)) | |
| 1126 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1127 | RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
| 1128 | RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768)) | |
| 1129 | CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1130 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
| 1131 | Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768)) | |
| 1132 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1133 | NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
| 1134 | NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
| 1135 | CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1136 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994)) | |
| 1137 | Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
| 1138 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1139 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.5999999, 1, 1.39999998)) | |
| 1140 | Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847)) | |
| 1141 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1142 | TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
| 1143 | TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
| 1144 | CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1145 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994)) | |
| 1146 | Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
| 1147 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1148 | Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952)) | |
| 1149 | Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622)) | |
| 1150 | CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1151 | Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952)) | |
| 1152 | Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993)) | |
| 1153 | CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1154 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952)) | |
| 1155 | Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993)) | |
| 1156 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1157 | Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952)) | |
| 1158 | Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942)) | |
| 1159 | CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1160 | Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952)) | |
| 1161 | Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
| 1162 | CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1163 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003)) | |
| 1164 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
| 1165 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1166 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003)) | |
| 1167 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1)) | |
| 1168 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1169 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003)) | |
| 1170 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907)) | |
| 1171 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1172 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952)) | |
| 1173 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
| 1174 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1175 | ||
| 1176 | mouse.Button1Down:connect(function() | |
| 1177 | end) | |
| 1178 | ||
| 1179 | mouse.KeyDown:connect(function(k) | |
| 1180 | k = k:lower() | |
| 1181 | if k == "f" and attack == false and Flying == false then | |
| 1182 | Humanoid.CameraOffset = Vector3.new(0, -1, 0) | |
| 1183 | Humanoid.WalkSpeed = 200 | |
| 1184 | Flying = true | |
| 1185 | elseif k == "f" and attack == false and Flying == true then | |
| 1186 | Humanoid.CameraOffset = Vector3.new(0, -2, 0) | |
| 1187 | Humanoid.WalkSpeed = 16 | |
| 1188 | Flying = false | |
| 1189 | end | |
| 1190 | end) | |
| 1191 | ||
| 1192 | ||
| 1193 | inputserv.InputBegan:connect(function(k) | |
| 1194 | if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then | |
| 1195 | elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then | |
| 1196 | elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then | |
| 1197 | elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then | |
| 1198 | end | |
| 1199 | end) | |
| 1200 | ||
| 1201 | inputserv.InputBegan:connect(function(k) | |
| 1202 | if k.KeyCode == Enum.KeyCode.Slash then | |
| 1203 | local fin = nil | |
| 1204 | typing = true | |
| 1205 | fin = inputserv.InputBegan:connect(function(k) | |
| 1206 | if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 1207 | typing = false | |
| 1208 | fin:disconnect() | |
| 1209 | end | |
| 1210 | end) | |
| 1211 | end | |
| 1212 | end) | |
| 1213 | ||
| 1214 | function updateskills() | |
| 1215 | if cooldown1 <= co1 then | |
| 1216 | cooldown1 = cooldown1 + 1 / 30 | |
| 1217 | end | |
| 1218 | if cooldown2 <= co2 then | |
| 1219 | cooldown2 = cooldown2 + 1 / 30 | |
| 1220 | end | |
| 1221 | if cooldown3 <= co3 then | |
| 1222 | cooldown3 = cooldown3 + 1 / 30 | |
| 1223 | end | |
| 1224 | if cooldown4 <= co4 then | |
| 1225 | cooldown4 = cooldown4 + 1 / 30 | |
| 1226 | end | |
| 1227 | if stamina <= maxstamina then | |
| 1228 | stamina = stamina + recovermana / 30 | |
| 1229 | end | |
| 1230 | end | |
| 1231 | ||
| 1232 | coroutine.resume(coroutine.create(function(Part,Weld) | |
| 1233 | while Part.Parent~=nil do | |
| 1234 | wait(5) | |
| 1235 | for i=0,1,0.2 do | |
| 1236 | wait() | |
| 1237 | BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1) | |
| 1238 | end | |
| 1239 | for i=0,1,0.2 do | |
| 1240 | wait() | |
| 1241 | BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1) | |
| 1242 | end | |
| 1243 | end | |
| 1244 | end),BlinkPartR,BlinkPartRweld) | |
| 1245 | ||
| 1246 | coroutine.resume(coroutine.create(function(Part,Weld) | |
| 1247 | while Part.Parent~=nil do | |
| 1248 | wait(5) | |
| 1249 | for i=0,1,0.2 do | |
| 1250 | wait() | |
| 1251 | BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1) | |
| 1252 | end | |
| 1253 | for i=0,1,0.2 do | |
| 1254 | wait() | |
| 1255 | BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1) | |
| 1256 | end | |
| 1257 | end | |
| 1258 | end),BlinkPartL,BlinkPartLweld) | |
| 1259 | ||
| 1260 | game:GetService'RunService'.Heartbeat:connect(function() | |
| 1261 | updateskills() | |
| 1262 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1263 | velocity = RootPart.Velocity.y | |
| 1264 | sine = sine + change | |
| 1265 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1266 | if equipped == true or equipped == false then | |
| 1267 | if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then | |
| 1268 | Anim = "Jump" | |
| 1269 | if attack == false then | |
| 1270 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3) | |
| 1271 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
| 1272 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1273 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
| 1274 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
| 1275 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
| 1276 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
| 1277 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
| 1278 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
| 1279 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
| 1280 | end | |
| 1281 | elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then | |
| 1282 | Anim = "Fall" | |
| 1283 | if attack == false then | |
| 1284 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
| 1285 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3) | |
| 1286 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3) | |
| 1287 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1288 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1289 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1290 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1291 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
| 1292 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
| 1293 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
| 1294 | end | |
| 1295 | elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then | |
| 1296 | Anim = "Idle" | |
| 1297 | if attack == false and Flying == false then | |
| 1298 | change = 1 | |
| 1299 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1300 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3) | |
| 1301 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3) | |
| 1302 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
| 1303 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
| 1304 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
| 1305 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
| 1306 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3) | |
| 1307 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3) | |
| 1308 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3) | |
| 1309 | elseif attack == false and Flying == true then | |
| 1310 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3) | |
| 1311 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3) | |
| 1312 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3) | |
| 1313 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
| 1314 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
| 1315 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
| 1316 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
| 1317 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3) | |
| 1318 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3) | |
| 1319 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3) | |
| 1320 | end | |
| 1321 | elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then | |
| 1322 | Anim = "Walk" | |
| 1323 | if attack == false and Flying == false then | |
| 1324 | change = 1 | |
| 1325 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3) | |
| 1326 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3) | |
| 1327 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3) | |
| 1328 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3) | |
| 1329 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3) | |
| 1330 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3) | |
| 1331 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3) | |
| 1332 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3) | |
| 1333 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3) | |
| 1334 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3) | |
| 1335 | elseif attack == false and Flying == true then | |
| 1336 | change = 1 | |
| 1337 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1338 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3) | |
| 1339 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3) | |
| 1340 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
| 1341 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
| 1342 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
| 1343 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
| 1344 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3) | |
| 1345 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3) | |
| 1346 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3) | |
| 1347 | end | |
| 1348 | end | |
| 1349 | end | |
| 1350 | end) | |
| 1351 | local p = game.Players:findFirstChild("EnderWolfMage") -- Put your name where it says pingfuzz
| |
| 1352 | script.Name = "FusScript" | |
| 1353 | local go = true --for normal shouts | |
| 1354 | local skygo = true --for sky-related shouts | |
| 1355 | --19 Shouts: Fus Ro Dah, Wuld Nah Kest, Liz Slen Nus, Yol Toor Shul, Feim Zii Gron, Strun Bah Qo, Fo Krah Diin, Laas Yah Nir, | |
| 1356 | --Zun Haal Viik, Krii Lun Aus, Tiid Klo Ul, Faas Ru Maar, Toor Bah Yol, Joor Zah Frul, Kaan Drem Ov, Ven Mul Riik, Lok Vah Koor, | |
| 1357 | --Nahl Daal Vus, and Bex | |
| 1358 | p.Chatted:connect(function(message) | |
| 1359 | local msg = string.lower(message) | |
| 1360 | if string.find(msg, "fus ro dah") and go == true then | |
| 1361 | go = false | |
| 1362 | fus = Instance.new("Part")
| |
| 1363 | fus.formFactor = "Custom" | |
| 1364 | fus.Size = Vector3.new(1, 1, 4) | |
| 1365 | fus.TopSurface = "Smooth" | |
| 1366 | fus.BottomSurface = "Smooth" | |
| 1367 | fus.Anchored = false | |
| 1368 | fus.CanCollide = false | |
| 1369 | fus.BrickColor = BrickColor.new("Bright blue")
| |
| 1370 | fus.Transparency = 0.6 | |
| 1371 | fus.Reflectance = 0.5 | |
| 1372 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 1373 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 1374 | local f = Instance.new("Fire")
| |
| 1375 | f.Name = "FusFire" | |
| 1376 | f.Size = fus:GetMass() | |
| 1377 | f.Heat = 0 | |
| 1378 | f.Color = Color3.new(1, 1, 1) | |
| 1379 | f.SecondaryColor = Color3.new(1, 1, 1) | |
| 1380 | f.Parent = fus | |
| 1381 | local mesh = Instance.new("SpecialMesh")
| |
| 1382 | mesh.MeshType = "Sphere" | |
| 1383 | mesh.Parent = fus | |
| 1384 | local bp = Instance.new("BodyPosition")
| |
| 1385 | bp.position = p.Character.Head.Position | |
| 1386 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1387 | bp.Parent = fus | |
| 1388 | fus.Parent = workspace | |
| 1389 | fus.Touched:connect(fused) | |
| 1390 | coroutine.resume(coroutine.create(function() | |
| 1391 | wait(0.5) | |
| 1392 | for i = 1, 20 do | |
| 1393 | wait(0.01) | |
| 1394 | local cf = fus.CFrame | |
| 1395 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 1396 | f.Size = fus:GetMass()/2 | |
| 1397 | fus.CFrame = cf | |
| 1398 | end | |
| 1399 | wait(3) | |
| 1400 | for i = 1, 40 do | |
| 1401 | fus.Transparency = fus.Transparency + 0.1 | |
| 1402 | f.Size = f.Size - (fus:GetMass()/40) | |
| 1403 | wait(0.1) | |
| 1404 | end | |
| 1405 | wait() | |
| 1406 | fus.Transparency = 1 | |
| 1407 | f:remove() | |
| 1408 | fus:remove() | |
| 1409 | go = true | |
| 1410 | end)) | |
| 1411 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 1412 | elseif string.find(msg, "wuld nah kest") then | |
| 1413 | local speed = p.Character.Humanoid.WalkSpeed --Speed prior to sprinting | |
| 1414 | local cf = p.Character.Torso.CFrame * CFrame.new(0, 0, -50) | |
| 1415 | local pos = cf.p | |
| 1416 | p.Character.Humanoid.WalkSpeed = 200 | |
| 1417 | p.Character.Humanoid:MoveTo(pos, workspace.Base) | |
| 1418 | wait(0.275) | |
| 1419 | p.Character.Humanoid.WalkSpeed = speed | |
| 1420 | p.Character.Humanoid:MoveTo(p.Character.Torso.Position, p.Character.Torso) | |
| 1421 | elseif string.find(msg, "liz slen nus") and go == true then | |
| 1422 | --local succ, ret = pcall(function() | |
| 1423 | go = false | |
| 1424 | fus = Instance.new("Part")
| |
| 1425 | fus.formFactor = "Custom" | |
| 1426 | fus.Size = Vector3.new(3, 3, 6) | |
| 1427 | fus.TopSurface = "Smooth" | |
| 1428 | fus.BottomSurface = "Smooth" | |
| 1429 | fus.Anchored = false | |
| 1430 | fus.CanCollide = false | |
| 1431 | fus.BrickColor = BrickColor.new("White")
| |
| 1432 | fus.Transparency = 0.5 | |
| 1433 | fus.Reflectance = 0.6 | |
| 1434 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -6) | |
| 1435 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 1436 | local s = Instance.new("Sparkles")
| |
| 1437 | s.Name = "LizSparkle" | |
| 1438 | s.SparkleColor = Color3.new(1, 1, 1) | |
| 1439 | s.Parent = fus | |
| 1440 | local mesh = Instance.new("SpecialMesh")
| |
| 1441 | mesh.MeshType = "Sphere" | |
| 1442 | mesh.Parent = fus | |
| 1443 | local bp = Instance.new("BodyPosition")
| |
| 1444 | bp.position = p.Character.Head.Position | |
| 1445 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1446 | bp.Parent = fus | |
| 1447 | fus.Parent = workspace | |
| 1448 | fus.Touched:connect(lized) | |
| 1449 | --[end) | |
| 1450 | if ret then | |
| 1451 | local m = Instance.new("Part", p.PlayerGui)
| |
| 1452 | m.Text = "ERROR: " ..ret | |
| 1453 | game:GetService("Debris"):AddItem(m, 15)
| |
| 1454 | end | |
| 1455 | coroutine.resume(coroutine.create(function() | |
| 1456 | wait(3) | |
| 1457 | for i = 1, 40 do | |
| 1458 | fus.Transparency = fus.Transparency + 0.1 | |
| 1459 | wait(0.1) | |
| 1460 | end | |
| 1461 | wait() | |
| 1462 | fus.Transparency = 1 | |
| 1463 | fus:remove() | |
| 1464 | go = true | |
| 1465 | end)) | |
| 1466 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 1467 | elseif string.find(msg, "yol toor shul") and go == true then | |
| 1468 | go = false | |
| 1469 | fus = Instance.new("Part")
| |
| 1470 | fus.formFactor = "Custom" | |
| 1471 | fus.Size = Vector3.new(3, 3, 6) | |
| 1472 | fus.TopSurface = "Smooth" | |
| 1473 | fus.BottomSurface = "Smooth" | |
| 1474 | fus.Anchored = false | |
| 1475 | fus.CanCollide = false | |
| 1476 | fus.BrickColor = BrickColor.new("Bright orange")
| |
| 1477 | fus.Transparency = 0.5 | |
| 1478 | fus.Reflectance = 0.6 | |
| 1479 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -6) | |
| 1480 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 1481 | local f = Instance.new("Fire")
| |
| 1482 | f.Name = "FusFire" | |
| 1483 | f.Size = fus:GetMass()/3 | |
| 1484 | f.Heat = 0 | |
| 1485 | f.Parent = fus | |
| 1486 | local mesh = Instance.new("SpecialMesh")
| |
| 1487 | mesh.MeshType = "Sphere" | |
| 1488 | mesh.Parent = fus | |
| 1489 | local bp = Instance.new("BodyPosition")
| |
| 1490 | bp.position = p.Character.Head.Position | |
| 1491 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1492 | bp.Parent = fus | |
| 1493 | fus.Parent = workspace | |
| 1494 | fus.Touched:connect(yoled) | |
| 1495 | coroutine.resume(coroutine.create(function() | |
| 1496 | wait(0.5) | |
| 1497 | for i = 1, 20 do | |
| 1498 | wait(0.01) | |
| 1499 | local cf = fus.CFrame | |
| 1500 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 1501 | f.Size = fus:GetMass()/2 | |
| 1502 | fus.CFrame = cf | |
| 1503 | end | |
| 1504 | wait(3) | |
| 1505 | for i = 1, 40 do | |
| 1506 | fus.Transparency = fus.Transparency + 0.1 | |
| 1507 | f.Size = f.Size - (fus:GetMass()/3)/40 | |
| 1508 | wait(0.1) | |
| 1509 | end | |
| 1510 | wait() | |
| 1511 | fus.Transparency = 1 | |
| 1512 | f:remove() | |
| 1513 | fus:remove() | |
| 1514 | go = true | |
| 1515 | end)) | |
| 1516 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 1517 | elseif string.find(msg, "feim zii gron") then | |
| 1518 | p.Character.Humanoid.WalkSpeed = 30 | |
| 1519 | for a, b in pairs(p.Character:children()) do | |
| 1520 | if b.Name == "Head" then | |
| 1521 | if b:findFirstChild("face") ~= nil then
| |
| 1522 | coroutine.resume(coroutine.create(function() | |
| 1523 | for i = 1, 110 do | |
| 1524 | b.face.Transparency = b.face.Transparency + 0.01 | |
| 1525 | wait(0.01) | |
| 1526 | end | |
| 1527 | b.face.Transparency = 1 | |
| 1528 | end)) | |
| 1529 | end | |
| 1530 | end | |
| 1531 | if b.className == "Part" then | |
| 1532 | coroutine.resume(coroutine.create(function() | |
| 1533 | for i = 1, 110 do | |
| 1534 | b.Transparency = b.Transparency + 0.01 | |
| 1535 | wait(0.01) | |
| 1536 | end | |
| 1537 | b.Transparency = 1 | |
| 1538 | end)) | |
| 1539 | elseif b.className == "Hat" then | |
| 1540 | coroutine.resume(coroutine.create(function() | |
| 1541 | for i = 1, 110 do | |
| 1542 | b.Handle.Transparency = b.Handle.Transparency + 0.01 | |
| 1543 | wait(0.01) | |
| 1544 | end | |
| 1545 | b.Handle.Transparency = 1 | |
| 1546 | end)) | |
| 1547 | end | |
| 1548 | end | |
| 1549 | wait(15) | |
| 1550 | p.Character.Humanoid.WalkSpeed = 16 | |
| 1551 | for a, b in pairs(p.Character:children()) do | |
| 1552 | if b.Name == "Head" then | |
| 1553 | if b:findFirstChild("face") ~= nil then
| |
| 1554 | coroutine.resume(coroutine.create(function() | |
| 1555 | for i = 1, 110 do | |
| 1556 | b.face.Transparency = b.face.Transparency - 0.01 | |
| 1557 | wait(0.01) | |
| 1558 | end | |
| 1559 | b.face.Transparency = 0 | |
| 1560 | end)) | |
| 1561 | end | |
| 1562 | end | |
| 1563 | if b.className == "Part" then | |
| 1564 | coroutine.resume(coroutine.create(function() | |
| 1565 | for i = 1, 110 do | |
| 1566 | b.Transparency = b.Trans0arency - 0.01 | |
| 1567 | wait(0.01) | |
| 1568 | end | |
| 1569 | b.Transparency = 0 | |
| 1570 | end)) | |
| 1571 | elseif b.className == "Hat" then | |
| 1572 | coroutine.resume(coroutine.create(function() | |
| 1573 | for i = 1, 110 do | |
| 1574 | b.Handle.Transparency = b.Handle.Transparency - 0.01 | |
| 1575 | wait(0.01) | |
| 1576 | end | |
| 1577 | b.Handle.Transparency = 0 | |
| 1578 | end)) | |
| 1579 | end | |
| 1580 | end | |
| 1581 | elseif string.find(msg, "strun bah qo") and skygo == true then | |
| 1582 | skygo = false | |
| 1583 | local clouds = {}
| |
| 1584 | function lightning(cl) | |
| 1585 | local lights = {}
| |
| 1586 | for i = 1, 15 do | |
| 1587 | local l = Instance.new("Part")
| |
| 1588 | l.Name = "FusLightning" | |
| 1589 | table.insert(lights, l) | |
| 1590 | game:GetService("Debris"):AddItem(l, 15)
| |
| 1591 | l.formFactor = "Custom" | |
| 1592 | l.Size = Vector3.new(1, math.random(50, 75), 1) | |
| 1593 | l.BrickColor = BrickColor.new("Institutional white")
| |
| 1594 | l.Transparency = 0.45 | |
| 1595 | l.Reflectance = 0.5 | |
| 1596 | l.Anchored = true | |
| 1597 | l.CanCollide = false | |
| 1598 | local xnum = 6 | |
| 1599 | local znum = 6 | |
| 1600 | if i == 1 then | |
| 1601 | l.CFrame = cl.CFrame * CFrame.Angles(math.random(-(math.pi/xnum), math.pi/xnum), 0, math.random(-(math.pi/znum), math.pi/znum)) * CFrame.new(0, -1 * (l.Size.Y/2), 0) | |
| 1602 | elseif i > 1 then | |
| 1603 | local llight = lights[i - 1] | |
| 1604 | l.CFrame = llight.CFrame * CFrame.Angles(math.random(-(math.pi/xnum), math.pi/xnum), 0, math.random(-(math.pi/znum), math.pi/znum)) * CFrame.new(0, -1 * (l.Size.Y/2), 0) | |
| 1605 | end | |
| 1606 | l.Parent = workspace | |
| 1607 | l.Touched:connect(function(part) struned(part, l) end) | |
| 1608 | coroutine.resume(coroutine.create(function() | |
| 1609 | repeat | |
| 1610 | l.Transparency = l.Transparency + 0.02 | |
| 1611 | wait() | |
| 1612 | until l.Transparency >= 1 | |
| 1613 | l:remove() | |
| 1614 | end)) | |
| 1615 | end | |
| 1616 | end | |
| 1617 | for i = 1, 100 do | |
| 1618 | game.Lighting.Brightness = game.Lighting.Brightness - 0.01 | |
| 1619 | wait(0.05) | |
| 1620 | end | |
| 1621 | game.Lighting.Brightness = 0 | |
| 1622 | local cloud = Instance.new("Part")
| |
| 1623 | cloud.Name = "StrunCloud" | |
| 1624 | cloud.Size = Vector3.new(1, 1, 1) | |
| 1625 | cloud.Anchored = true | |
| 1626 | cloud.CanCollide = false | |
| 1627 | cloud.BrickColor = BrickColor.new("Black")
| |
| 1628 | cloud.Transparency = 1 | |
| 1629 | local mesh = Instance.new("SpecialMesh")
| |
| 1630 | mesh.MeshType = "FileMesh" | |
| 1631 | mesh.Scale = Vector3.new(math.random(100, 150), math.random(50, 100), math.random(100, 150)) | |
| 1632 | mesh.MeshId = "www.roblox.com/asset/?id=1095708" | |
| 1633 | mesh.Parent = cloud | |
| 1634 | for i = 1, (math.random(4, 8)) do | |
| 1635 | local newc = cloud:clone() | |
| 1636 | newc.Parent = workspace | |
| 1637 | game:GetService("Debris"):AddItem(newc, 300)
| |
| 1638 | table.insert(clouds, newc) | |
| 1639 | newc.CFrame = CFrame.new(p.Character.Torso.Position + Vector3.new(math.random(-250, 250), math.random(150, 200), math.random(-250, 250))) | |
| 1640 | coroutine.resume(coroutine.create(function() | |
| 1641 | repeat | |
| 1642 | newc.Transparency = newc.Transparency - 0.01 | |
| 1643 | wait() | |
| 1644 | until newc.Transparency <= 0.2 | |
| 1645 | newc.Transparency = 0.2 | |
| 1646 | end)) | |
| 1647 | end | |
| 1648 | for i = 1, (math.random(7, 15)) do | |
| 1649 | if skygo == true then break end | |
| 1650 | local s = Instance.new("Sound")
| |
| 1651 | game:GetService("Debris"):AddItem(s, 5)
| |
| 1652 | s.Name = "Lighting" | |
| 1653 | s.SoundId = "rbxasset://sounds/HalloweenLightning.wav" | |
| 1654 | s.Pitch = (math.random(10, 15) * 0.1) | |
| 1655 | s.PlayOnRemove = true | |
| 1656 | s.Looped = false | |
| 1657 | s.Parent = workspace | |
| 1658 | wait(0.5) | |
| 1659 | s:play() | |
| 1660 | for i = 1, #clouds do | |
| 1661 | lightning(clouds[i]) | |
| 1662 | end | |
| 1663 | game.Lighting.Brightness = 1 | |
| 1664 | wait(0.001) | |
| 1665 | game.Lighting.Brightness = 0 | |
| 1666 | s:remove() | |
| 1667 | wait(math.random(3, 6)) | |
| 1668 | end | |
| 1669 | wait(2) | |
| 1670 | for i = 1, #clouds do | |
| 1671 | coroutine.resume(coroutine.create(function() | |
| 1672 | repeat | |
| 1673 | clouds[i].Transparency = clouds[i].Transparency + 0.01 | |
| 1674 | wait(0.05) | |
| 1675 | until clouds[i].Transparency >= 1 | |
| 1676 | clouds[i]:remove() | |
| 1677 | end)) | |
| 1678 | end | |
| 1679 | for i = 1, 110 do | |
| 1680 | game.Lighting.Brightness = game.Lighting.Brightness + 0.01 | |
| 1681 | wait(0.01) | |
| 1682 | end | |
| 1683 | skygo = true | |
| 1684 | game.Lighting.Brightness = 1 | |
| 1685 | elseif string.find(msg, "fo krah diin") and go == true then | |
| 1686 | go = false | |
| 1687 | for i = 1, 50 do | |
| 1688 | fus = Instance.new("Part")
| |
| 1689 | fus.formFactor = "Custom" | |
| 1690 | fus.Size = Vector3.new(0.5, 0.5, 0.5) | |
| 1691 | fus.TopSurface = "Smooth" | |
| 1692 | fus.BottomSurface = "Smooth" | |
| 1693 | fus.Anchored = false | |
| 1694 | fus.CanCollide = false | |
| 1695 | fus.BrickColor = BrickColor.new("Institutional white")
| |
| 1696 | fus.Transparency = 0.6 | |
| 1697 | fus.Reflectance = 0.5 | |
| 1698 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(math.random(-15, 15)*0.1, math.random(-15, 15)*0.1, -4) | |
| 1699 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 1700 | local f = Instance.new("Fire")
| |
| 1701 | f.Name = "FusFire" | |
| 1702 | f.Size = fus:GetMass() | |
| 1703 | f.Heat = 0 | |
| 1704 | f.Color = Color3.new(1, 1, 1) | |
| 1705 | f.SecondaryColor = Color3.new(1, 1, 1) | |
| 1706 | f.Parent = fus | |
| 1707 | local mesh = Instance.new("SpecialMesh")
| |
| 1708 | mesh.MeshType = "Sphere" | |
| 1709 | mesh.Parent = fus | |
| 1710 | local bp = Instance.new("BodyPosition")
| |
| 1711 | bp.position = fus.Position | |
| 1712 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1713 | bp.Parent = fus | |
| 1714 | fus.Parent = workspace | |
| 1715 | fus.Touched:connect(function(part) foed(part, fus) end) | |
| 1716 | game:Ge4Service("Debris"):AddItem(fus, 15)
| |
| 1717 | end | |
| 1718 | go = true | |
| 1719 | elseif string.find(msg, "laas yah nir") then | |
| 1720 | for i = 1, 30 do | |
| 1721 | for a, b in pairs(game.Players:children()) do | |
| 1722 | if b.Character ~= nil then | |
| 1723 | if (p.Character.Torso.Position - b.Character.Torso.Position).magnitude <= 100 and b ~= p then | |
| 1724 | if b.Character.Torso:findFirstChild("LaasFire") == nil then
| |
| 1725 | local f = Instance.new("Fire", b.Character.Torso)
| |
| 1726 | f.Name = "LaasFire" | |
| 1727 | f.Size = b.Character.Torso:GetMass()*2 | |
| 1728 | f.Color = Color3.new(0, 0, 0) | |
| 1729 | f.SecondaryColor = Color3.new(1, 1, 1) | |
| 1730 | end | |
| 1731 | elseif (p.Character.Torso.Position - b.Character.Torso.Position).magnitude > 100 then | |
| 1732 | if b.Character.Torso:findFirstChild("LaasFire") ~= nil then
| |
| 1733 | b.Character.Torso.LaasFire:remove() | |
| 1734 | end | |
| 1735 | end | |
| 1736 | end | |
| 1737 | end | |
| 1738 | wait(1) | |
| 1739 | end | |
| 1740 | for a, b in pairs(game.Players:children()) do | |
| 1741 | if b.Character.Torso:findFirstChild("LaasFire") ~= nil then
| |
| 1742 | b.Character.Torso.LaasFire:remove() | |
| 1743 | end | |
| 1744 | end | |
| 1745 | elseif string.find(msg, "zun haal viik") and go == true then | |
| 1746 | go = false | |
| 1747 | fus = Instance.new("Part")
| |
| 1748 | fus.formFactor = "Custom" | |
| 1749 | fus.Size = Vector3.new(1, 1, 4) | |
| 1750 | fus.TopSurface = "Smooth" | |
| 1751 | fus.BottomSurface = "Smooth" | |
| 1752 | fus.Anchored = false | |
| 1753 | fus.CanCollide = false | |
| 1754 | fus.BrickColor = BrickColor.new("Lime green")
| |
| 1755 | fus.Transparency = 0.6 | |
| 1756 | fus.Reflectance = 0.5 | |
| 1757 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 1758 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -200 | |
| 1759 | local f = Instance.new("Fire")
| |
| 1760 | f.Name = "FusFire" | |
| 1761 | f.Size = fus:GetMass() | |
| 1762 | f.Heat = 0 | |
| 1763 | f.Color = Color3.new(1, 1, 1) | |
| 1764 | f.SecondaryColor = Color3.new(1, 1, 1) | |
| 1765 | f.Parent = fus | |
| 1766 | local mesh = In3tance.new("SpecialMesh")
| |
| 1767 | mesh.MeshType = "Sphere" | |
| 1768 | mesh.Parent = fus | |
| 1769 | local bp = Instance.new("BodyPosition")
| |
| 1770 | bp.position = p.Character.Head.Position | |
| 1771 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1772 | bp.Parent = fus | |
| 1773 | fus.Paren4 = workspace | |
| 1774 | fus.Touched:connect(function(part) zuned(part, fus) end) | |
| 1775 | coroutine.resume(coroutine.create(function() | |
| 1776 | wait(0.5) | |
| 1777 | for i = 1, 9 do | |
| 1778 | wait(0.01) | |
| 1779 | local cf = fus.CFrame | |
| 1780 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 1781 | f.Size = fus:GetMass()/2 | |
| 1782 | fus.CFrame = cf | |
| 1783 | end | |
| 1784 | wait(3) | |
| 1785 | for i = 1, 40 do | |
| 1786 | fus.Transparency = fus.Transparency + 0.1 | |
| 1787 | f.Size = f.Size - (fus:GetMass()/40) | |
| 1788 | wait(0.1) | |
| 1789 | end | |
| 1790 | wait() | |
| 1791 | fus.Transparency = 1 | |
| 1792 | f:remove() | |
| 1793 | fus:remove() | |
| 1794 | go = true | |
| 1795 | end)) | |
| 1796 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 1797 | elseif string.find(msg, "krii lun aus") and go == true then | |
| 1798 | go = false | |
| 1799 | fus = Instance.new("Part")
| |
| 1800 | fus.formFactor = "Custom" | |
| 1801 | fus.Size = Vector3.new(1, 1, 4) | |
| 1802 | fus.TopSurface = "Smooth" | |
| 1803 | fus.BottomSurface = "Smooth" | |
| 1804 | fus.Anchored = false | |
| 1805 | fus.CanCollide = false | |
| 1806 | fus.BrickColor = BrickColor.new("Bright purple")
| |
| 1807 | fus.Transparency = 0.6 | |
| 1808 | fus.Reflectance = 0.5 | |
| 1809 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 1810 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 1811 | local f = Instance.new("Fire")
| |
| 1812 | f.Name = "FusFire" | |
| 1813 | f.Size = fus:GetMass() | |
| 1814 | f.Heat = 0 | |
| 1815 | f.Color = Color3.new(0, 0, 0) | |
| 1816 | f.SecondaryColor = Color3.new(0, 0, 0) | |
| 1817 | f.Parent = fus | |
| 1818 | local mesh = Instance.new("SpecialMesh")
| |
| 1819 | mesh.MeshType = "Sphere" | |
| 1820 | mesh.Parent = fus | |
| 1821 | local bp = Instance.new("BodyPosition")
| |
| 1822 | bp.position = p.Character.Head.Position | |
| 1823 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1824 | bp.Parent = fus | |
| 1825 | fus.Parent = workspace | |
| 1826 | fus.Touched:connect(function(part) kriied(part, fus) end) | |
| 1827 | coroutine.resume(coroutine.create(function() | |
| 1828 | wait(0.5) | |
| 1829 | for i = 1, 19 do | |
| 1830 | wait(0.01) | |
| 1831 | local cf = fus.CFrame | |
| 1832 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 1833 | f.Size = fus:GetMass()/2 | |
| 1834 | fus.CFrame = cf | |
| 1835 | end | |
| 1836 | wait(3) | |
| 1837 | for i = 1, 40 do | |
| 1838 | fus.Transparency = fus.Transparency + 0.1 | |
| 1839 | f.Size = f.Size - (fus:GetMass()/40) | |
| 1840 | wait(0.1) | |
| 1841 | end | |
| 1842 | wait() | |
| 1843 | fus.Transparency = 1 | |
| 1844 | f:remove() | |
| 1845 | fus:remove() | |
| 1846 | go = true | |
| 1847 | end)) | |
| 1848 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 1849 | elseif string.find(msg, "tiid klo ul") then | |
| 1850 | for a, b in pairs(game.Players:children()) do | |
| 1851 | if b.Character ~= nil and b ~= p then | |
| 1852 | for c, d in pairs(b.Character:children()) do | |
| 1853 | if d.className == "Part" then | |
| 1854 | if d.Anchored == false then | |
| 1855 | local cf = nil | |
| 1856 | if d.Name == "Torso" then | |
| 1857 | cf = d.CFrame | |
| 1858 | end | |
| 1859 | d.Anchored = true | |
| 1860 | coroutine.resume(coroutine.create(function() | |
| 1861 | wait(10) | |
| 1862 | if d ~= nil then | |
| 1863 | d.Anchored = false | |
| 1864 | d.CFrame = cf | |
| 1865 | end | |
| 1866 | end)) | |
| 1867 | end | |
| 1868 | elseif d.className == "Hat" then | |
| 1869 | if d.Handle.Anchored == false then | |
| 1870 | d.Handle.Anchored = true | |
| 1871 | coroutine.resume(coroutine.create(function() | |
| 1872 | wait(10) | |
| 1873 | if d ~= nil then | |
| 1874 | if d.Handle ~= nil then | |
| 1875 | d.Handle.Anchored = false | |
| 1876 | end | |
| 1877 | end | |
| 1878 | end)) | |
| 1879 | end | |
| 1880 | end | |
| 1881 | end | |
| 1882 | end | |
| 1883 | end | |
| 1884 | elseif string.find(msg, "faas ru maar") and go == true then | |
| 1885 | go = false | |
| 1886 | fus = Instance.new("Part")
| |
| 1887 | fus.formFactor = "Custom" | |
| 1888 | fus.Size = Vector3.new(1, 1, 4) | |
| 1889 | fus.TopSurface = "Smooth" | |
| 1890 | fus.BottomSurface = "Smooth" | |
| 1891 | fus.Anchored = false | |
| 1892 | fus.CanCollide = false | |
| 1893 | fus.BrickColor = BrickColor.new("Really black")
| |
| 1894 | fus.Transparency = 0.6 | |
| 1895 | fus.Reflectance = 0.5 | |
| 1896 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 1897 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 1898 | local f = Instance.new("Fire")
| |
| 1899 | f.Name = "FusFire" | |
| 1900 | f.Size = fus:GetMass() | |
| 1901 | f.Heat = 0 | |
| 1902 | f.Color = Color3.new(0, 0, 0) | |
| 1903 | f.SecondaryColor = Color3.new(0, 0, 0) | |
| 1904 | f.Parent = fus | |
| 1905 | local mesh = Instance.new("SpecialMesh")
| |
| 1906 | mesh.MeshType = "Sphere" | |
| 1907 | mesh.Parent = fus | |
| 1908 | local bp = Instance.new("BodyPosition")
| |
| 1909 | bp.position = p.Character.Head.Position | |
| 1910 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 1911 | bp.Parent = fus | |
| 1912 | fus.Parent = workspace | |
| 1913 | fus.Touched:connect(function(part) faased(part) end) | |
| 1914 | coroutine.resume(coroutine.create(function() | |
| 1915 | wait(0.5) | |
| 1916 | for i = 1, 19 do | |
| 1917 | wait(0.01) | |
| 1918 | local cf = fus.CFrame | |
| 1919 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 1920 | f.Size = fus:GetMass()/2 | |
| 1921 | fus.CFrame = cf | |
| 1922 | end | |
| 1923 | wait(3) | |
| 1924 | for i = 1, 40 do | |
| 1925 | fus.Transparency = fus.Transparency + 0.1 | |
| 1926 | f.Size = f.Size - (fus:GetMass()/40) | |
| 1927 | wait(0.1) | |
| 1928 | end | |
| 1929 | wait() | |
| 1930 | fus.Transparency = 1 | |
| 1931 | f:remove() | |
| 1932 | fus:remove() | |
| 1933 | go = true | |
| 1934 | end)) | |
| 1935 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 1936 | elseif string.find(msg, "toor bah yol") and skygo == true then | |
| 1937 | skygo = false | |
| 1938 | local clouds = {}
| |
| 1939 | function meteor(cloud) | |
| 1940 | local cf = CFrame.new(cloud.Position + Vector3.new(math.random(-10, 10), 20, math.random(-10, 10))) | |
| 1941 | local m = Instance.new("Part")
| |
| 1942 | m.Name = "FusRock" | |
| 1943 | m.Shape = "Ball" | |
| 1944 | m.formFactor = "Symmetric" | |
| 1945 | m.Anchored = false | |
| 1946 | m.CanCollide = false | |
| 1947 | m.TopSurface = "Smooth" | |
| 1948 | m.BottomSurface = "Smooth" | |
| 1949 | local size = math.random(10, 20) | |
| 1950 | m.Size = Vector3.new(size, size, size) | |
| 1951 | m.BrickColor = BrickColor.new("Bright red")
| |
| 1952 | m.Reflectance = 0.4 | |
| 1953 | m.CFrame = cf | |
| 1954 | Instance.new("Fire", m).Size = m:GetMass()
| |
| 1955 | m.Velocity = Vector3.new(0, -50, 0) | |
| 1956 | m.Parent = workspace | |
| 1957 | game:GetService("Debris"):AddItem(m, 30)
| |
| 1958 | m.Touched:connect(function(part) toored(part, m) end) | |
| 1959 | end | |
| 1960 | for i = 1, 100 do | |
| 1961 | game.Lighting.Brightness = game.Lighting.Brightness - 0.01 | |
| 1962 | wait(0.05) | |
| 1963 | end | |
| 1964 | game.Lighting.Brightness = 0 | |
| 1965 | local cloud = Instance.new("Part")
| |
| 1966 | cloud.Name = "ToorCloud" | |
| 1967 | cloud.Size = Vector3.new(1, 1, 1) | |
| 1968 | cloud.Anchored = true | |
| 1969 | cloud.CanCollide = false | |
| 1970 | cloud.BrickColor = BrickColor.new("Black")
| |
| 1971 | cloud.Transparency = 1 | |
| 1972 | local mesh = Instance.new("SpecialMesh")
| |
| 1973 | mesh.MeshType = "FileMesh" | |
| 1974 | mesh.Scale = Vector3.new(math.random(100, 150), math.random(50, 100), math.random(100, 150)) | |
| 1975 | mesh.MeshId = "www.roblox.com/asset/?id=1095708" | |
| 1976 | mesh.Parent = cloud | |
| 1977 | for i = 1, (math.random(4, 8)) do | |
| 1978 | local newc = cloud:clone() | |
| 1979 | newc.Parent = workspace | |
| 1980 | game:GetService("Debris"):AddItem(newc, 180)
| |
| 1981 | table.insert(clouds, newc) | |
| 1982 | newc.CFrame = CFrame.new(p.Character.Torso.Position + Vector3.new(math.random(-250, 250), math.random(150, 200), math.random(-250, 250))) | |
| 1983 | coroutine.resume(coroutine.create(function() | |
| 1984 | repeat | |
| 1985 | newc.Transparency = newc.Transparency - 0.01 | |
| 1986 | wait() | |
| 1987 | until newc.Transparency <= 0.2 | |
| 1988 | newc.Transparency = 0.2 | |
| 1989 | end)) | |
| 1990 | end | |
| 1991 | for launch = 1, math.random(20, 30) do | |
| 1992 | if skygo == true then break end | |
| 1993 | wait(math.random(2, 4)) | |
| 1994 | meteor(clouds[math.random(1, #clouds)]) | |
| 1995 | end | |
| 1996 | wait(1) | |
| 1997 | for c = 1, #clouds do | |
| 1998 | coroutine.resume(coroutine.create(function() | |
| 1999 | repeat | |
| 2000 | clouds[c].Transparency = clouds[c].Transparency + 0.01 | |
| 2001 | wait() | |
| 2002 | until clouds[c].Transparency >= 1 | |
| 2003 | clouds[c].Transparency = 1 | |
| 2004 | clouds[c]:remove() | |
| 2005 | end)) | |
| 2006 | end | |
| 2007 | repeat | |
| 2008 | game.Lighting.Brightness = game.Lighting.Brightness + 0.01 | |
| 2009 | wait(0.01) | |
| 2010 | until game.Lighting.Brightness >= 1 | |
| 2011 | game.Lighting.Brightness = 1 | |
| 2012 | skygo = true | |
| 2013 | elseif string.find(msg, "joor zah frul") and go == true then | |
| 2014 | go = false | |
| 2015 | fus = Instance.new("Part")
| |
| 2016 | fus.formFactor = "Custom" | |
| 2017 | fus.Size = Vector3.new(1, 1, 4) | |
| 2018 | fus.TopSurface = "Smooth" | |
| 2019 | fus.BottomSurface = "Smooth" | |
| 2020 | fus.Anchored = false | |
| 2021 | fus.CanCollide = false | |
| 2022 | fus.BrickColor = BrickColor.new("Bright yellow")
| |
| 2023 | fus.Transparency = 0.7 | |
| 2024 | fus.Reflectance = 0.5 | |
| 2025 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 2026 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 2027 | local f = Instance.new("Sparkles")
| |
| 2028 | f.Name = "FusSparkles" | |
| 2029 | f.SparkleColor = Color3.new(0, 0, 0) | |
| 2030 | f.Parent = fus | |
| 2031 | local mesh = Instance.new("SpecialMesh")
| |
| 2032 | mesh.MeshType = "Sphere" | |
| 2033 | mesh.Parent = fus | |
| 2034 | local bp = Instance.new("BodyPosition")
| |
| 2035 | bp.position = p.Character.Head.Position | |
| 2036 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 2037 | bp.Parent = fus | |
| 2038 | fus.Parent = workspace | |
| 2039 | fus.Touched:connect(function(part) joored(part, fus) end) | |
| 2040 | coroutine.resume(coroutine.create(function() | |
| 2041 | wait(0.5) | |
| 2042 | for i = 1, 19 do | |
| 2043 | wait(0.01) | |
| 2044 | local cf = fus.CFrame | |
| 2045 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 2046 | fus.CFrame = cf | |
| 2047 | end | |
| 2048 | wait(3) | |
| 2049 | for i = 1, 40 do | |
| 2050 | fus.Transparency = fus.Transparency + 0.1 | |
| 2051 | wait(0.1) | |
| 2052 | end | |
| 2053 | wait() | |
| 2054 | fus.Transparency = 1 | |
| 2055 | f:remove() | |
| 2056 | fus:remove() | |
| 2057 | go = true | |
| 2058 | end)) | |
| 2059 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 2060 | elseif string.find(msg, "kaan drem ov") and go == true then | |
| 2061 | go = false | |
| 2062 | fus = Instance.new("Part")
| |
| 2063 | fus.formFactor = "Custom" | |
| 2064 | fus.Size = Vector3.new(1, 1, 4) | |
| 2065 | fus.TopSurface = "Smooth" | |
| 2066 | fus.BottomSurface = "Smooth" | |
| 2067 | fus.Anchored = false | |
| 2068 | fus.CanCollide = false | |
| 2069 | fus.BrickColor = BrickColor.new("White")
| |
| 2070 | fus.Transparency = 0.7 | |
| 2071 | fus.Reflectance = 0.5 | |
| 2072 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 2073 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 2074 | local f = Instance.new("Sparkles")
| |
| 2075 | f.Name = "FusSparkles" | |
| 2076 | f.SparkleColor = Color3.new(1, 1, 1) | |
| 2077 | f.Parent = fus | |
| 2078 | local mesh = Instance.new("SpecialMesh")
| |
| 2079 | mesh.MeshType = "Sphere" | |
| 2080 | mesh.Parent = fus | |
| 2081 | local bp = Instance.new("BodyPosition")
| |
| 2082 | bp.position = p.Character.Head.Position | |
| 2083 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 2084 | bp.Parent = fus | |
| 2085 | fus.Parent = workspace | |
| 2086 | fus.Touched:connect(function(part) kaaned(part) end) | |
| 2087 | coroutine.resume(coroutine.create(function() | |
| 2088 | wait(0.5) | |
| 2089 | for i = 1, 19 do | |
| 2090 | wait(0.01) | |
| 2091 | local cf = fus.CFrame | |
| 2092 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 2093 | fus.CFrame = cf | |
| 2094 | end | |
| 2095 | wait(3) | |
| 2096 | for i = 1, 40 do | |
| 2097 | fus.Transparency = fus.Transparency + 0.1 | |
| 2098 | wait(0.1) | |
| 2099 | end | |
| 2100 | wait() | |
| 2101 | fus.Transparency = 1 | |
| 2102 | f:remove() | |
| 2103 | fus:remove() | |
| 2104 | go = true | |
| 2105 | end)) | |
| 2106 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 2107 | elseif string.find(msg, "ven mul riik") and skygo == true then | |
| 2108 | skygo = false | |
| 2109 | local l = game.Lighting | |
| 2110 | l.FogEnd = 1000 | |
| 2111 | coroutine.resume(coroutine.create(function() | |
| 2112 | repeat | |
| 2113 | l.FogEnd = l.FogEnd - 3 | |
| 2114 | wait() | |
| 2115 | until l.FogEnd < 50 | |
| 2116 | wait(10) | |
| 2117 | repeat | |
| 2118 | l.FogEnd = l.FogEnd + 5 | |
| 2119 | wait() | |
| 2120 | until l.FogEnd > 5000 | |
| 2121 | l.FogEnd = 10000 | |
| 2122 | skygo = true | |
| 2123 | end)) | |
| 2124 | elseif string.find(msg, "lok vah koor") and skygo == false and go == true then | |
| 2125 | skygo = true | |
| 2126 | --Not changing go because this is an instantaneous reaction. | |
| 2127 | coroutine.resume(coroutine.create(function() | |
| 2128 | local b = Instance.new("Part")
| |
| 2129 | b.Shape = "Ball" | |
| 2130 | b.formFactor = "Symmetric" | |
| 2131 | b.Size = Vector3.new(1, 1, 1) | |
| 2132 | b.CFrame = p.Character.Torso.CFrame | |
| 2133 | b.TopSurface = "Smooth" | |
| 2134 | b.BottomSurface = "Smooth" | |
| 2135 | b.Anchored = true | |
| 2136 | b.CanCollide = false | |
| 2137 | b.Name = "LokBall" | |
| 2138 | b.BrickColor = BrickColor.new("White")
| |
| 2139 | b.Parent = p.Character | |
| 2140 | game:GetService("Debris"):AddItem(b, 20)
| |
| 2141 | repeat | |
| 2142 | b.Size = b.Size + Vector3.new(1, 1, 1) | |
| 2143 | b.CFrame = p.Character.Torso.CFrame | |
| 2144 | b.Transparency = b.Transparency + 1/29 | |
| 2145 | wait() | |
| 2146 | until b.Size.x == 30 | |
| 2147 | b:remove() | |
| 2148 | end)) | |
| 2149 | local l = game.Lighting | |
| 2150 | coroutine.resume(coroutine.create(function() | |
| 2151 | repeat | |
| 2152 | l.FogEnd = l.FogEnd + 5 | |
| 2153 | wait() | |
| 2154 | until l.FogEnd > 5000 | |
| 2155 | l.FogEnd = 10000 | |
| 2156 | end)) | |
| 2157 | elseif string.find(msg, "nahl daal vus") and go == true then | |
| 2158 | go = false | |
| 2159 | fus = Instance.new("Part")
| |
| 2160 | fus.formFactor = "Custom" | |
| 2161 | fus.Size = Vector3.new(2, 2, 4) | |
| 2162 | fus.TopSurface = "Smooth" | |
| 2163 | fus.BottomSurface = "Smooth" | |
| 2164 | fus.Anchored = false | |
| 2165 | fus.CanCollide = false | |
| 2166 | fus.BrickColor = BrickColor.new("Bright green")
| |
| 2167 | fus.Transparency = 0.7 | |
| 2168 | fus.Reflectance = 0.5 | |
| 2169 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 2170 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 2171 | local f = Instance.new("Sparkles")
| |
| 2172 | f.Name = "FusSparkles" | |
| 2173 | f.SparkleColor = Color3.new(1, 1, 1) | |
| 2174 | f.Parent = fus | |
| 2175 | local mesh = Instance.new("SpecialMesh")
| |
| 2176 | mesh.MeshType = "Sphere" | |
| 2177 | mesh.Parent = fus | |
| 2178 | local bp = Instance.new("BodyPosition")
| |
| 2179 | bp.position = p.Character.Head.Position | |
| 2180 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 2181 | bp.Parent = fus | |
| 2182 | fus.Parent = workspace | |
| 2183 | fus.Touched:connect(function(part) nahled(part) end) | |
| 2184 | coroutine.resume(coroutine.create(function() | |
| 2185 | wait(0.5) | |
| 2186 | for i = 1, 19 do | |
| 2187 | wait(0.01) | |
| 2188 | local cf = fus.CFrame | |
| 2189 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
| 2190 | fus.CFrame = cf | |
| 2191 | end | |
| 2192 | wait(3) | |
| 2193 | for i = 1, 40 do | |
| 2194 | fus.Transparency = fus.Transparency + 0.1 | |
| 2195 | wait(0.1) | |
| 2196 | end | |
| 2197 | wait() | |
| 2198 | fus.Transparency = 1 | |
| 2199 | f:remove() | |
| 2200 | fus:remove() | |
| 2201 | go = true | |
| 2202 | end)) | |
| 2203 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 2204 | elseif string.find(msg, "bex") and go == true then | |
| 2205 | go = false | |
| 2206 | fus = Instance.new("Part")
| |
| 2207 | fus.formFactor = "Custom" | |
| 2208 | fus.Size = Vector3.new(1, 1, 4) | |
| 2209 | fus.TopSurface = "Smooth" | |
| 2210 | fus.BottomSurface = "Smooth" | |
| 2211 | fus.Anchored = false | |
| 2212 | fus.CanCollide = false | |
| 2213 | fus.BrickColor = BrickColor.new("White")
| |
| 2214 | fus.Transparency = 0.7 | |
| 2215 | fus.Reflectance = 0.5 | |
| 2216 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
| 2217 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
| 2218 | local mesh = Instance.new("SpecialMesh")
| |
| 2219 | mesh.MeshType = "Sphere" | |
| 2220 | mesh.Parent = fus | |
| 2221 | local bp = Instance.new("BodyPosition")
| |
| 2222 | bp.position = p.Character.Head.Position | |
| 2223 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
| 2224 | bp.Parent = fus | |
| 2225 | fus.Parent = workspace | |
| 2226 | fus.Touched:connect(function(part) bexed(part) end) | |
| 2227 | coroutine.resume(coroutine.create(function() | |
| 2228 | wait(1) | |
| 2229 | for i = 1, 40 do | |
| 2230 | fus.Transparency = fus.Transparency + 0.1 | |
| 2231 | wait(0.1) | |
| 2232 | end | |
| 2233 | wait() | |
| 2234 | fus.Transparency = 1 | |
| 2235 | fus:remove() | |
| 2236 | go = true | |
| 2237 | end)) | |
| 2238 | game:GetService("Debris"):AddItem(fus, 15)
| |
| 2239 | end | |
| 2240 | end) | |
| 2241 | function bexed(part) | |
| 2242 | if part.Parent then | |
| 2243 | if part.Name == "Door" then | |
| 2244 | local d = part:clone() | |
| 2245 | coroutine.resume(coroutine.create(function() | |
| 2246 | repeat | |
| 2247 | part.Transparency = part.Transparency + 0.05 | |
| 2248 | wait() | |
| 2249 | until part.Transparency >= 1 | |
| 2250 | part.Anchored = true | |
| 2251 | part.CanCollide = false | |
| 2252 | wait(3) | |
| 2253 | repeat | |
| 2254 | part.Transparency = part.Transparency - 0.05 | |
| 2255 | wait() | |
| 2256 | until part.Transparency <= d.Transparency | |
| 2257 | part.Transparency = d.Transparency | |
| 2258 | if d.CanCollide == true then | |
| 2259 | part.CanCollide = true | |
| 2260 | end | |
| 2261 | if d.Anchored == true then | |
| 2262 | part.Anchored = d.Anchored | |
| 2263 | end | |
| 2264 | end)) | |
| 2265 | end | |
| 2266 | end | |
| 2267 | end | |
| 2268 | function nahled(part) | |
| 2269 | if workspace:findFirstChild("Base") ~= nil then
| |
| 2270 | if part.Parent then | |
| 2271 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil and part.Parent ~= p.Character then
| |
| 2272 | part.Parent.Torso.CFrame = workspace.Base.CFrame * CFrame.new(0, 5, 0) | |
| 2273 | end | |
| 2274 | end | |
| 2275 | end | |
| 2276 | end | |
| 2277 | function kaaned(part) | |
| 2278 | if part.Parent then | |
| 2279 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil and part.Parent ~= p.Character then
| |
| 2280 | if part.Parent:findFirstChild("Kaaned") == nil then
| |
| 2281 | local k = Instance.new("IntValue", part.Parent)
| |
| 2282 | k.Name = "Kaaned" | |
| 2283 | game:GetService("Debris"):AddItem(k, 2)
| |
| 2284 | local hum = part.Parent.Humanoid | |
| 2285 | local speed = hum.WalkSpeed | |
| 2286 | coroutine.resume(coroutine.create(function() | |
| 2287 | hum.WalkSpeed = 0 | |
| 2288 | wait(10) | |
| 2289 | hum.WalkSpeed = speed | |
| 2290 | end)) | |
| 2291 | end | |
| 2292 | end | |
| 2293 | end | |
| 2294 | end | |
| 2295 | function joored(part, shout) | |
| 2296 | shout.Anchored = false | |
| 2297 | shout.CanCollide = false | |
| 2298 | if part.Parent then | |
| 2299 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil and part.Parent ~= p.Character then
| |
| 2300 | if part.Parent:findFirstChild("Joored") == nil then
| |
| 2301 | local j = Instance.new("IntValue", part.Parent)
| |
| 2302 | j.Name = "Joored" | |
| 2303 | game:GetService("Debris"):AddItem(j, 2)
| |
| 2304 | local hum = part.Parent.Humanoid | |
| 2305 | tag(hum) | |
| 2306 | hum.Parent:BreakJoints() | |
| 2307 | for a, b in pairs(hum.Parent:children()) do | |
| 2308 | if b.className == "Part" then | |
| 2309 | b.Velocity = (p.Character.Torso.Position - b.Position).unit * -50 | |
| 2310 | local f = Instance.new("Fire", b)
| |
| 2311 | f.Color = Color3.new(0, 0, 0) | |
| 2312 | f.SecondaryColor = Color3.new(0, 0, 0) | |
| 2313 | f.Heat = 0 | |
| 2314 | f.Size = ":GetMass()" | |
| 2315 | local bf = Instance.new("BodyVelocity")
| |
| 2316 | bf.Parent = b | |
| 2317 | bf.P = 196*b:GetMass() | |
| 2318 | bf.maxForce = Vector3.new(0, 196*b:GetMass(), 0) | |
| 2319 | bf.velocity = Vector3.new(0, 196*b:GetMass(), 0) | |
| 2320 | elseif b.className == "Hat" then | |
| 2321 | local b = b.Handle | |
| 2322 | b.Velocity = (p.Character.Torso.Position - b.Position).unit * -50 | |
| 2323 | local f = Instance.new("Fire", b)
| |
| 2324 | f.Color = Color3.new(0, 0, 0) | |
| 2325 | f.SecondaryColor = Color3.new(0, 0, 0) | |
| 2326 | f.Heat = 0 | |
| 2327 | f.Size = 3 | |
| 2328 | local bf = Instance.new("BodyVelocity")
| |
| 2329 | bf.Parent = b | |
| 2330 | bf.P = 196*b:GetMass() | |
| 2331 | bf.maxForce = Vector3.new(0, 196*b:GetMass(), 0) | |
| 2332 | bf.velocity = Vector3.new(0, 196*b:GetMass(), 0) | |
| 2333 | elseif b.className == "ForceField" then | |
| 2334 | b:remove() | |
| 2335 | local e = Instance.new("Explosion", hum.Parent.Torso)
| |
| 2336 | e.BlastRadius = 1 | |
| 2337 | e.BlastPressure = 1 | |
| 2338 | e.position = hum.Parent.Torso.Position | |
| 2339 | end | |
| 2340 | end | |
| 2341 | end | |
| 2342 | end | |
| 2343 | end | |
| 2344 | end | |
| 2345 | function toored(part, m) | |
| 2346 | if part.Name ~= "FusRock" and part.Name ~= "ToorCloud" and part.CanCollide == true then | |
| 2347 | m.Anchored = true | |
| 2348 | m.CanCollide = true | |
| 2349 | if m:findFirstChild("Touched") == nil then
| |
| 2350 | Instance.new("IntValue", m).Name = "Touched"
| |
| 2351 | m.CFrame = CFrame.new(m.Position.x, part.Position.y, m.Position.z) | |
| 2352 | end | |
| 2353 | local e = Instance.new("Explosion")
| |
| 2354 | e.BlastPressure = 50000 | |
| 2355 | e.BlastRadius = 15 | |
| 2356 | e.Position = m.Position | |
| 2357 | e.Parent = m | |
| 2358 | e.Hit:connect(function(hit) | |
| 2359 | if hit.Parent then | |
| 2360 | if hit.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2361 | tag(hit.Parent.Humanoid) | |
| 2362 | end | |
| 2363 | end | |
| 2364 | end) | |
| 2365 | end | |
| 2366 | end | |
| 2367 | function faased(part) | |
| 2368 | if part.Parent then | |
| 2369 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil then
| |
| 2370 | if part.Parent:findFirstChild("Faased") == nil then
| |
| 2371 | local f = Instance.new("IntValue", part.Parent)
| |
| 2372 | f.Name = "Faased" | |
| 2373 | game:GetService("Debris"):AddItem(f, 2)
| |
| 2374 | local hum = part.Parent.Humanoid | |
| 2375 | local speed = hum.WalkSpeed --Speed prior to fleeing | |
| 2376 | hum.WalkSpeed = speed * -1 | |
| 2377 | game:GetService("Chat"):Chat(hum.Parent.Head, "Ahh!!!", "Red")
| |
| 2378 | for i = 1, 10 do | |
| 2379 | hum:MoveTo(hum.Parent.Torso.Position + Vector3.new(math.random(-30, 30), 0, math.random(-30, 20)), hum.Parent.Torso) | |
| 2380 | wait(math.random(1, 2)) | |
| 2381 | end | |
| 2382 | hum.WalkSpeed = speed | |
| 2383 | hum:MoveTo(hum.Parent.Torso.Position, hum.Parent.Torso) | |
| 2384 | end | |
| 2385 | end | |
| 2386 | end | |
| 2387 | end | |
| 2388 | function struned(part, lightning) | |
| 2389 | if part.Parent then | |
| 2390 | if part.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2391 | local hum = part.Parent.Humanoid | |
| 2392 | tag(part.Parent.Humanoid) | |
| 2393 | local e = Instance.new("Explosion")
| |
| 2394 | e.position = part.Position | |
| 2395 | e.BlastPressure = 35000 | |
| 2396 | e.BlastRadius = 2 | |
| 2397 | e.Parent = part | |
| 2398 | hum:TakeDamage(math.huge) | |
| 2399 | for a, b in pairs(hum.Parent:children()) do | |
| 2400 | if b.className == "Part" then | |
| 2401 | Instance.new("Fire", part).Size = part:GetMass()
| |
| 2402 | end | |
| 2403 | end | |
| 2404 | end | |
| 2405 | end | |
| 2406 | end | |
| 2407 | function kriied(part, shout) | |
| 2408 | if part.Parent then | |
| 2409 | if part.Parent == p.Character then return end | |
| 2410 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild(p.Name.. "Kriied") == nil then
| |
| 2411 | Instance.new("IntValue", part.Parent).Name = p.Name.. "Kriied"
| |
| 2412 | local hum = part.Parent.Humanoid | |
| 2413 | hum.MaxHealth = hum.MaxHealth - 75 | |
| 2414 | hum.Health = hum.MaxHealth | |
| 2415 | for i = 1, 60 do | |
| 2416 | tag(part.Parent.Humanoid) | |
| 2417 | hum:TakeDamage(1.5) | |
| 2418 | wait(1) | |
| 2419 | end | |
| 2420 | hum.MaxHealth = hum.MaxHealth + 75 | |
| 2421 | end | |
| 2422 | end | |
| 2423 | end | |
| 2424 | function zuned(part, shout) | |
| 2425 | if part.Parent == p.Character then return end | |
| 2426 | if part.Parent then | |
| 2427 | if part.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2428 | for a, b in pairs(part.Parent:children()) do | |
| 2429 | if b.className == "Tool" then | |
| 2430 | if b:findFirstChild("Handle") ~= nil then
| |
| 2431 | b.Parent = workspace | |
| 2432 | wait() | |
| 2433 | b.Handle.Velocity = (b.Handle.Position - p.Character.Torso.Position).unit * -100 | |
| 2434 | repeat | |
| 2435 | shout.Size = shout.Size - Vector3.new(1, 1, 1) | |
| 2436 | wait(0.1) | |
| 2437 | until shout.Shout.Size == Vector3.new(1, 1, 1) | |
| 2438 | shout:remove() | |
| 2439 | end | |
| 2440 | end | |
| 2441 | end | |
| 2442 | end | |
| 2443 | end | |
| 2444 | end | |
| 2445 | function foed(part, shout) | |
| 2446 | if part.Parent == p.Character then return end | |
| 2447 | if part.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2448 | local hum = part.Parent.Humanoid | |
| 2449 | hum.Sit = true | |
| 2450 | hum:TakeDamage(7.5) | |
| 2451 | if hum.Parent:findFirstChild(p.Name.. "Foed") == nil then | |
| 2452 | hum.WalkSpeed = 8 | |
| 2453 | local foer = Instance.new("IntValue", workspace)
| |
| 2454 | foer.Name = p.Name.. "Foed" | |
| 2455 | game:GetService("Debris"):AddItem(foer, 2)
| |
| 2456 | wait(5) | |
| 2457 | hum.WalkSpeed = 16 | |
| 2458 | hum.Sit = false | |
| 2459 | end | |
| 2460 | shout:remove() | |
| 2461 | end | |
| 2462 | end | |
| 2463 | function yoled(part) | |
| 2464 | if part.Parent == p.Character then return end | |
| 2465 | if part.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2466 | local f = Instance.new("Fire", part)
| |
| 2467 | f.Size = part:GetMass() | |
| 2468 | f.Heat = 100 | |
| 2469 | game:GetService("Debris"):AddItem(f, 10)
| |
| 2470 | if part:findFirstChild(p.Name.. "Yoled") == nil then | |
| 2471 | local tag = Instance.new("IntValue")
| |
| 2472 | tag.Name = p.Name.. "Yoled" | |
| 2473 | tag.Parent = part | |
| 2474 | game:GetService("Debris"):AddItem(tag, 2)
| |
| 2475 | end | |
| 2476 | tag(part.Parent.Humanoid) | |
| 2477 | part.Parent.Humanoid:TakeDamage(7.5) | |
| 2478 | end | |
| 2479 | end | |
| 2480 | function lized(part) | |
| 2481 | if part.Parent then | |
| 2482 | if part.Parent == p.Character then return end | |
| 2483 | if part.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2484 | if part.Parent:findFirstChild("Lized") ~= nil then return end
| |
| 2485 | local Lizvictim = Instance.new("IntValue")
| |
| 2486 | Lizvictim.Name = "Lized" | |
| 2487 | Lizvictim.Parent = part.Parent | |
| 2488 | game:GetService("Debris"):AddItem(Lizvictim, 10)
| |
| 2489 | part.Parent.Animate.Disabled = true | |
| 2490 | part.Parent.Humanoid.PlatformStand = true | |
| 2491 | local speed = part.Parent.Humanoid.WalkSpeed | |
| 2492 | part.Parent.Humanoid.WalkSpeed = 0 | |
| 2493 | wait(0.01) | |
| 2494 | part.Parent.Torso.Velocity = (fus.Position - part.Parent.Torso.Position).unt * -50 | |
| 2495 | tag(part.Parent.Humanoid) | |
| 2496 | part.Parent.Humanoid:TakeDamage(part.Parent.Humanoid.MaxHealth/2) | |
| 2497 | for a, b in pairs(part.Parent:children()) do | |
| 2498 | if b:findFirstChild("Fire") ~= nil then
| |
| 2499 | b.Fire:remove() | |
| 2500 | end | |
| 2501 | local frost = Instance.new("Part")
| |
| 2502 | frost.Name = "Frost" | |
| 2503 | frost.formFactor = "Custom" | |
| 2504 | frost.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 2505 | frost.Reflectance = 0.5 | |
| 2506 | frost.Transparency = 0.6 | |
| 2507 | frost.Anchored = false | |
| 2508 | frost.CanCollide = true | |
| 2509 | if b.className == "Part" then | |
| 2510 | frost.Size = b.Size + Vector3.new(0.5, 0.5, 0.5) | |
| 2511 | local w = Instance.new("Weld")
| |
| 2512 | w.Part0 = b | |
| 2513 | w.Part1 = frost | |
| 2514 | w.Parent = frost | |
| 2515 | frost.Parent = part.Parent | |
| 2516 | game:GetService("Debris"):AddItem(frost, 10)
| |
| 2517 | end | |
| 2518 | end | |
| 2519 | wait(10) | |
| 2520 | part.Parent.Humanoid.PlatformStand = false | |
| 2521 | part.Parent.Animate.Disabled = false | |
| 2522 | part.Parent.Humanoid.WalkSpeed = speed | |
| 2523 | end | |
| 2524 | end | |
| 2525 | end | |
| 2526 | function fused(part) | |
| 2527 | if part.Parent then | |
| 2528 | if part.Parent == p.Character then return end | |
| 2529 | if part.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 2530 | if part.Parent:findFirstChild(p.Name.. "Fused") ~= nil then return end | |
| 2531 | local fusvictim = Instance.new("IntValue")
| |
| 2532 | fusvictim.Name = p.Name.. "Fused" | |
| 2533 | fusvictim.Parent = part.Parent | |
| 2534 | game:GetService("Debris"):AddItem(fusvictim, 2)
| |
| 2535 | part.Parent.Humanoid.Sit = true | |
| 2536 | tag(part.Parent.Humanoid) | |
| 2537 | part.Parent.Humanoid:TakeDamage(part.Parent.Humanoid.MaxHealth/4) | |
| 2538 | for a, b in pairs(part.Parent:children()) do | |
| 2539 | if b.className == "Part" then | |
| 2540 | b.Velocity = fus.Velocity | |
| 2541 | elseif b.className == "Hat" then | |
| 2542 | b.Handle.Velocity = fus.Velocity | |
| 2543 | end | |
| 2544 | end | |
| 2545 | wait(2) | |
| 2546 | part.Parent.Humanoid.Sit = false | |
| 2547 | elseif part.Anchored == false and part.Parent:findFirstChild("Humanoid") == nil then
| |
| 2548 | part.Velocity = fus.Velocity | |
| 2549 | end | |
| 2550 | end | |
| 2551 | end | |
| 2552 | function tag(victim) | |
| 2553 | local creator_tag = Instance.new("ObjectValue")
| |
| 2554 | creator_tag.Value = p | |
| 2555 | creator_tag.Name = "creator" | |
| 2556 | creator_tag.Parent = victim | |
| 2557 | game:GetService("Debris"):AddItem(creator_tag, 1)
| |
| 2558 | end | |
| 2559 | --[Skyrim Shouting Rules.]]-- |