SHOW:
|
|
- or go back to the newest paste.
| 1 | - | paly = game.Players.LocalPlayer |
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | - | p = game.Players.LocalPlayer |
| 2 | + | |
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | - | Player = game:GetService("Players").LocalPlayer
|
| 5 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 6 | do | |
| 7 | - | local mouse = paly:GetMouse() |
| 7 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | - | Player = game:GetService("Players").LocalPlayer
|
| 14 | + | --Fake event to make stuff like Mouse.KeyDown work |
| 15 | - | local mouse = Player:GetMouse() |
| 15 | + | local function fakeEvent() |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 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 | - | c.Value=game:service("Players").LocalPlayer
|
| 61 | + | Event.Parent = NLS([==[ |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 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 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | paly = game.Players.hsdfsfsdfds | |
| 88 | p = game.Players.hsdfsfsdfds | |
| 89 | char = paly.Character | |
| 90 | local symbolimg = "rbxassetid://301362847" | |
| 91 | Player = game:GetService("Players").hsdfsfsdfds
| |
| 92 | Character = Player.Character | |
| 93 | local charge = false | |
| 94 | local energy = 1000 | |
| 95 | vt = Vector3.new | |
| 96 | torso = char.Torso | |
| 97 | neck = char.Torso.Neck | |
| 98 | hum = char.Humanoid | |
| 99 | Player = game:GetService("Players").hsdfsfsdfds
| |
| 100 | Character = Player.Character | |
| 101 | tors = Character.Torso | |
| 102 | lleg = Character["Left Leg"] | |
| 103 | root = Character.HumanoidRootPart | |
| 104 | hed = Character.Head | |
| 105 | rleg = Character["Right Leg"] | |
| 106 | rarm = Character["Right Arm"] | |
| 107 | larm = Character["Left Arm"] | |
| 108 | local Effects = {}
| |
| 109 | attack = false | |
| 110 | local attacking = false | |
| 111 | vt = Vector3.new | |
| 112 | bc = BrickColor.new | |
| 113 | br = BrickColor.random | |
| 114 | it = Instance.new | |
| 115 | cf = CFrame.new | |
| 116 | euler = CFrame.fromEulerAnglesXYZ | |
| 117 | angles = CFrame.Angles | |
| 118 | matr = math.random | |
| 119 | local maincolor = Color3.new(255/255,85/255,0/255) | |
| 120 | ||
| 121 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 122 | if hit.Parent==nil then | |
| 123 | return | |
| 124 | end | |
| 125 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 126 | for _,v in pairs(hit.Parent:children()) do | |
| 127 | if v:IsA("Humanoid") then
| |
| 128 | h=v | |
| 129 | end | |
| 130 | end | |
| 131 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 132 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 133 | end | |
| 134 | if hit.Parent.className=="Hat" then | |
| 135 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 136 | end | |
| 137 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 138 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 139 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 140 | return | |
| 141 | end]] | |
| 142 | -- hs(hit,1.2) | |
| 143 | c=Instance.new("ObjectValue")
| |
| 144 | c.Name="creator" | |
| 145 | c.Value=game:service("Players").hsdfsfsdfds
| |
| 146 | c.Parent=h | |
| 147 | game:GetService("Debris"):AddItem(c,.5)
| |
| 148 | Damage=math.random(minim,maxim) | |
| 149 | -- h:TakeDamage(Damage) | |
| 150 | blocked=false | |
| 151 | block=hit.Parent:findFirstChild("Block")
| |
| 152 | if block~=nil then | |
| 153 | print(block.className) | |
| 154 | if block.className=="NumberValue" then | |
| 155 | if block.Value>0 then | |
| 156 | blocked=true | |
| 157 | if decreaseblock==nil then | |
| 158 | block.Value=block.Value-1 | |
| 159 | end | |
| 160 | end | |
| 161 | end | |
| 162 | if block.className=="IntValue" then | |
| 163 | if block.Value>0 then | |
| 164 | blocked=true | |
| 165 | if decreaseblock~=nil then | |
| 166 | block.Value=block.Value-1 | |
| 167 | end | |
| 168 | end | |
| 169 | end | |
| 170 | end | |
| 171 | if blocked==false then | |
| 172 | -- h:TakeDamage(Damage) | |
| 173 | h.Health=h.Health-Damage | |
| 174 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
| 175 | else | |
| 176 | h.Health=h.Health-(Damage/2) | |
| 177 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
| |
| 178 | end | |
| 179 | if Type=="Knockdown" then | |
| 180 | hum=hit.Parent.Humanoid | |
| 181 | hum.PlatformStand=true | |
| 182 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 183 | swait(1) | |
| 184 | HHumanoid.PlatformStand=false | |
| 185 | end),hum) | |
| 186 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 187 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 188 | local bodvol=Instance.new("BodyVelocity")
| |
| 189 | bodvol.velocity=angle*knockback | |
| 190 | bodvol.P=5000 | |
| 191 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 192 | bodvol.Parent=hit | |
| 193 | rl=Instance.new("BodyAngularVelocity")
| |
| 194 | rl.P=3000 | |
| 195 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 196 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 197 | rl.Parent=hit | |
| 198 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 199 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 200 | elseif Type=="Normal" then | |
| 201 | vp=Instance.new("BodyVelocity")
| |
| 202 | vp.P=500 | |
| 203 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 204 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 205 | if KnockbackType==1 then | |
| 206 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 207 | elseif KnockbackType==2 then | |
| 208 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 209 | end | |
| 210 | if knockback>0 then | |
| 211 | vp.Parent=hit.Parent.Torso | |
| 212 | end | |
| 213 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 214 | elseif Type=="Up" then | |
| 215 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 216 | bodyVelocity.velocity=vt(0,10,0) | |
| 217 | bodyVelocity.P=1000 | |
| 218 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
| 219 | bodyVelocity.Parent=hit | |
| 220 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 221 | rl=Instance.new("BodyAngularVelocity")
| |
| 222 | rl.P=3000 | |
| 223 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 224 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 225 | rl.Parent=hit | |
| 226 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 227 | elseif Type=="Snare" then | |
| 228 | bp=Instance.new("BodyPosition")
| |
| 229 | bp.P=2000 | |
| 230 | bp.D=100 | |
| 231 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 232 | bp.position=hit.Parent.Torso.Position | |
| 233 | bp.Parent=hit.Parent.Torso | |
| 234 | game:GetService("Debris"):AddItem(bp,1)
| |
| 235 | elseif Type=="Target" then | |
| 236 | if Targetting==false then | |
| 237 | ZTarget=hit.Parent.Torso | |
| 238 | coroutine.resume(coroutine.create(function(Part) | |
| 239 | swait(5) | |
| 240 | end),ZTarget) | |
| 241 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 242 | targetgui=Instance.new("BillboardGui")
| |
| 243 | targetgui.Parent=ZTarget | |
| 244 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 245 | targ=Instance.new("ImageLabel")
| |
| 246 | targ.Parent=targetgui | |
| 247 | targ.BackgroundTransparency=1 | |
| 248 | targ.Image="rbxassetid://4834067" | |
| 249 | targ.Size=UDim2.new(1,0,1,0) | |
| 250 | cam.CameraType="Scriptable" | |
| 251 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 252 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 253 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 254 | Targetting=true | |
| 255 | RocketTarget=ZTarget | |
| 256 | for i=1,Property do | |
| 257 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 258 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 259 | swait() | |
| 260 | end | |
| 261 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 262 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 263 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 264 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 265 | end | |
| 266 | Targetting=false | |
| 267 | RocketTarget=nil | |
| 268 | targetgui.Parent=nil | |
| 269 | cam.CameraType="Custom" | |
| 270 | end | |
| 271 | end | |
| 272 | debounce=Instance.new("BoolValue")
| |
| 273 | debounce.Name="DebounceHit" | |
| 274 | debounce.Parent=hit.Parent | |
| 275 | debounce.Value=true | |
| 276 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 277 | c=Instance.new("ObjectValue")
| |
| 278 | c.Name="creator" | |
| 279 | c.Value=Player | |
| 280 | c.Parent=h | |
| 281 | game:GetService("Debris"):AddItem(c,.5)
| |
| 282 | CRIT=false | |
| 283 | hitDeb=true | |
| 284 | AttackPos=6 | |
| 285 | end | |
| 286 | end | |
| 287 | ||
| 288 | showDamage=function(Char,Dealt,du,Color) | |
| 289 | m=Instance.new("Model")
| |
| 290 | m.Name="" | |
| 291 | h=Instance.new("Humanoid")
| |
| 292 | h.Health=0 | |
| 293 | h.MaxHealth=0 | |
| 294 | h.Parent=m | |
| 295 | c=Instance.new("Part")
| |
| 296 | c.Transparency=0 | |
| 297 | c.Material = "Neon" | |
| 298 | c.BrickColor=bc("Bright red")
| |
| 299 | c.Name="Head" | |
| 300 | c.TopSurface=0 | |
| 301 | c.BottomSurface=0 | |
| 302 | CV="Hot pink" | |
| 303 | ||
| 304 | local txt = Instance.new("BillboardGui", c)
| |
| 305 | txt.Adornee = c | |
| 306 | txt.Name = "_status" | |
| 307 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 308 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 309 | local text = Instance.new("TextLabel", txt)
| |
| 310 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 311 | text.FontSize = "Size24" | |
| 312 | text.TextScaled = true | |
| 313 | text.TextTransparency = 0 | |
| 314 | text.BackgroundTransparency = 1 | |
| 315 | text.TextTransparency = 0 | |
| 316 | text.TextStrokeTransparency = 0 | |
| 317 | text.Font = "Cartoon" | |
| 318 | text.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 319 | ||
| 320 | v=Instance.new("Part")
| |
| 321 | v.Name = "ColorBrick" | |
| 322 | v.Parent=c | |
| 323 | v.FormFactor="Symmetric" | |
| 324 | v.Anchored=true | |
| 325 | v.CanCollide=false | |
| 326 | v.BottomSurface="Smooth" | |
| 327 | v.TopSurface="Smooth" | |
| 328 | v.Size=Vector3.new(10,5,3) | |
| 329 | v.Transparency=1 | |
| 330 | v.CFrame=c.CFrame | |
| 331 | v.BrickColor=BrickColor.new(CV) | |
| 332 | v.Transparency=1 | |
| 333 | text.TextColor3 = BrickColor.new("Bright red").Color
| |
| 334 | v.Shape="Block" | |
| 335 | text.Text = tostring(Dealt).. "!" | |
| 336 | local tick = Instance.new("Sound",c)
| |
| 337 | tick.SoundId = "rbxassetid://553325070" | |
| 338 | tick.Volume = 1.25 | |
| 339 | tick.Pitch = 0.75 | |
| 340 | tick:Play() | |
| 341 | c.formFactor="Plate" | |
| 342 | c.Transparency = 0.99 | |
| 343 | c.Size=Vector3.new(1,.4,1) | |
| 344 | ms=Instance.new("CylinderMesh")
| |
| 345 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 346 | if CRIT==true then | |
| 347 | ms.Scale=Vector3.new(1,1.25,1) | |
| 348 | end | |
| 349 | ms.Parent=c | |
| 350 | c.Reflectance=0 | |
| 351 | Instance.new("BodyGyro").Parent=c
| |
| 352 | c.Parent=m | |
| 353 | if Char:findFirstChild("Head")~=nil then
| |
| 354 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 355 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 356 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 357 | end | |
| 358 | f=Instance.new("BodyPosition")
| |
| 359 | f.P=2000 | |
| 360 | f.D=100 | |
| 361 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 362 | f.position=c.Position+Vector3.new(0,3,0) | |
| 363 | f.Parent=c | |
| 364 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 365 | c.CanCollide=false | |
| 366 | m.Parent=workspace | |
| 367 | c.CanCollide=false | |
| 368 | end | |
| 369 | ||
| 370 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
| 371 | local gui = it(GuiType) | |
| 372 | gui.Parent = parent | |
| 373 | gui.Text = text | |
| 374 | gui.BackgroundTransparency = backtrans | |
| 375 | gui.BackgroundColor3 = backcol | |
| 376 | gui.SizeConstraint = "RelativeXY" | |
| 377 | gui.TextXAlignment = "Center" | |
| 378 | gui.TextYAlignment = "Center" | |
| 379 | gui.Position = pos | |
| 380 | gui.Size = size | |
| 381 | gui.Font = "SourceSans" | |
| 382 | gui.FontSize = "Size14" | |
| 383 | gui.TextWrapped = false | |
| 384 | gui.TextStrokeTransparency = 0 | |
| 385 | gui.TextColor = BrickColor.new("White")
| |
| 386 | return gui | |
| 387 | end | |
| 388 | ||
| 389 | local basgui = it("GuiMain")
| |
| 390 | basgui.Parent = Player.PlayerGui | |
| 391 | basgui.Name = "CooldownsGUI" | |
| 392 | local basframe = it("Frame")
| |
| 393 | basframe.Parent = basgui | |
| 394 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 395 | basframe.BackgroundTransparency = 1 | |
| 396 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
| 397 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
| 398 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
| 399 | local healthgui = gui("TextLabel", basframe, "Energy: ", 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, -0.5, 0))
| |
| 400 | healthgui.TextSize = 24 | |
| 401 | healthgui.ZIndex = 2 | |
| 402 | ||
| 403 | local tick = Instance.new("Sound",tors)
| |
| 404 | tick.SoundId = "rbxassetid://313108061" | |
| 405 | tick.Volume = 2.5 | |
| 406 | tick.Looped = true | |
| 407 | tick.Pitch = 0.85 | |
| 408 | ||
| 409 | local tick2 = Instance.new("Sound",tors)
| |
| 410 | tick2.SoundId = "rbxassetid://272207079" | |
| 411 | tick2.Volume = 2.5 | |
| 412 | tick2.Looped = true | |
| 413 | tick2.Pitch = 0.85 | |
| 414 | ||
| 415 | local orb = Instance.new("Part")
| |
| 416 | orb.Parent = char | |
| 417 | orb.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 418 | orb.Archivable = true | |
| 419 | orb.Transparency = 1 | |
| 420 | orb.Material = "Neon" | |
| 421 | orb.CanCollide = false | |
| 422 | local weld1 = Instance.new("Weld")
| |
| 423 | weld1.Parent = tors | |
| 424 | weld1.Part0 = tors | |
| 425 | weld1.Part1 = orb | |
| 426 | weld1.C1 = CFrame.new(0, 0.01, 0) | |
| 427 | local pt1 = NumberSequenceKeypoint.new(0,5,0) | |
| 428 | local pt1a = NumberSequenceKeypoint.new(0,1,0) | |
| 429 | local pt2a = NumberSequenceKeypoint.new(1,1,1) | |
| 430 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
| 431 | local effecto = Instance.new("ParticleEmitter",orb)
| |
| 432 | effecto.LightEmission = 1 | |
| 433 | effecto.Texture = "rbxassetid://296874871" | |
| 434 | effecto.Color = ColorSequence.new(maincolor) | |
| 435 | effecto.Rate = 0 | |
| 436 | effecto.Acceleration = Vector3.new(0,25,0) | |
| 437 | effecto.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 438 | effecto.Lifetime = NumberRange.new(0.75) | |
| 439 | effecto.Size = NumberSequence.new({pt1,pt2})
| |
| 440 | effecto.Speed = NumberRange.new(12.5) | |
| 441 | effecto.VelocitySpread = 100000000 | |
| 442 | effecto.RotSpeed = NumberRange.new(-300,300) | |
| 443 | ||
| 444 | function Fireball() | |
| 445 | local touched = false | |
| 446 | local delay = false | |
| 447 | local spart = Instance.new("Part",char)
| |
| 448 | local tick = Instance.new("Sound",spart)
| |
| 449 | tick.SoundId = "rbxassetid://304448425" | |
| 450 | tick.Volume = 1.5 | |
| 451 | tick.Pitch = 1.5 | |
| 452 | tick:Play() | |
| 453 | spart.Size = vt(1,1,1) | |
| 454 | spart.BrickColor = BrickColor.new("Deep orange")
| |
| 455 | spart.Transparency = 1 | |
| 456 | spart.CanCollide = false | |
| 457 | spart.Material = "Neon" | |
| 458 | spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0) | |
| 459 | local msh = Instance.new("SpecialMesh",spart)
| |
| 460 | msh.MeshType = "Sphere" | |
| 461 | msh.Scale = vt(3,3,3) | |
| 462 | local pt1e = NumberSequenceKeypoint.new(0,5,0) | |
| 463 | local pt2e = NumberSequenceKeypoint.new(1,0,0) | |
| 464 | local effecto = Instance.new("ParticleEmitter",spart)
| |
| 465 | effecto.Texture = "rbxassetid://296874871" | |
| 466 | effecto.LightEmission = 1 | |
| 467 | effecto.Color = ColorSequence.new(maincolor) | |
| 468 | effecto.Rate = 10000 | |
| 469 | effecto.Lifetime = NumberRange.new(0.5) | |
| 470 | effecto.Size = NumberSequence.new({pt1e,pt2e})
| |
| 471 | effecto.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 472 | effecto.Speed = NumberRange.new(0,0) | |
| 473 | effecto.RotSpeed = NumberRange.new(-500,500) | |
| 474 | local bv = Instance.new("BodyVelocity")
| |
| 475 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 476 | bv.velocity = mouse.Hit.lookVector * 100 | |
| 477 | bv.Parent = spart | |
| 478 | wait(0.05) | |
| 479 | spart.Touched:connect(function(hit) | |
| 480 | if touched == false then | |
| 481 | touched = true | |
| 482 | if hit.Name == "Water" then | |
| 483 | local pt1er = NumberSequenceKeypoint.new(0,5,0) | |
| 484 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 485 | local smokecolor = Color3.new(0.5,0.5,0.5) | |
| 486 | local tick = Instance.new("Sound",spart)
| |
| 487 | tick.SoundId = "rbxassetid://629468689" | |
| 488 | tick.Volume = 1.5 | |
| 489 | tick.Pitch = 1 | |
| 490 | tick:Play() | |
| 491 | effecto.Rate = 0 | |
| 492 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 493 | effectoz.Texture = "rbxassetid://296874871" | |
| 494 | effectoz.LightEmission = 0.75 | |
| 495 | effectoz.Color = ColorSequence.new(smokecolor) | |
| 496 | effectoz.Lifetime = NumberRange.new(3) | |
| 497 | effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 498 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 499 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 500 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 501 | effectoz.Speed = NumberRange.new(10) | |
| 502 | effectoz.VelocitySpread = 25 | |
| 503 | effectoz.Rate = 1000000000000 | |
| 504 | spart.Anchored = true | |
| 505 | wait(1) | |
| 506 | effectoz.Rate = 0 | |
| 507 | wait(2.5) | |
| 508 | spart:Destroy() | |
| 509 | end | |
| 510 | if hit.Name ~= "Water" then | |
| 511 | local saveposition = spart.CFrame | |
| 512 | spart.Anchored = true | |
| 513 | local tick = Instance.new("Sound",spart)
| |
| 514 | tick.SoundId = "rbxassetid://304529688" | |
| 515 | tick.Volume = 1.5 | |
| 516 | tick.Pitch = 1.25 | |
| 517 | tick:Play() | |
| 518 | effecto:Destroy() | |
| 519 | local pt1er = NumberSequenceKeypoint.new(0,10,0) | |
| 520 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 521 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 522 | effectoz.Texture = "rbxassetid://296874871" | |
| 523 | effectoz.LightEmission = 1 | |
| 524 | effectoz.Color = ColorSequence.new(maincolor) | |
| 525 | effectoz.Lifetime = NumberRange.new(0.5) | |
| 526 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 527 | effectoz.Speed = NumberRange.new(0,0) | |
| 528 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 529 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 530 | effectoz.Speed = NumberRange.new(75) | |
| 531 | effectoz.VelocitySpread = 10000000 | |
| 532 | effectoz.Rate = 1000000000000 | |
| 533 | spart.Size = vt(1,1,1) | |
| 534 | spart.Transparency = 1 | |
| 535 | spart.CFrame = saveposition | |
| 536 | Damagefunc(hit,10,15,-20,"Normal",root,.2,1) | |
| 537 | wait(0.5) | |
| 538 | effectoz.Rate = 0 | |
| 539 | for i = 0, 10 do | |
| 540 | spart.Size = spart.Size + vt(0.5,0.5,0.5) | |
| 541 | spart.CFrame = saveposition | |
| 542 | wait() | |
| 543 | end | |
| 544 | spart:Destroy() | |
| 545 | end | |
| 546 | end | |
| 547 | end) | |
| 548 | end | |
| 549 | ||
| 550 | function Firestorm() | |
| 551 | local shur = Instance.new("Part",char)
| |
| 552 | local gahd = Instance.new("Sound",char)
| |
| 553 | char.Humanoid.WalkSpeed = 0 | |
| 554 | gahd.SoundId = "rbxassetid://313945165" | |
| 555 | gahd.Volume = 4.5 | |
| 556 | gahd.Pitch = 0.595 | |
| 557 | gahd:Play() | |
| 558 | shur.Transparency = 1 | |
| 559 | shur.Material = "Neon" | |
| 560 | shur.BrickColor = bc("Bright red")
| |
| 561 | shur.Anchored = true | |
| 562 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 563 | shur.Size = vt(1,0.2,1) | |
| 564 | shur.CanCollide = false | |
| 565 | local dec = Instance.new("Decal",shur)
| |
| 566 | dec.Texture = symbolimg | |
| 567 | dec.Face = "Top" | |
| 568 | local dec2 = dec:Clone() | |
| 569 | dec2.Parent = shur | |
| 570 | dec2.Face = "Bottom" | |
| 571 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 572 | Meshshur.Scale = vt(0,1,0) | |
| 573 | for i = 0, 25 do | |
| 574 | shur.CFrame = tors.CFrame + vt(0,-2.95,0) | |
| 575 | Meshshur.Scale = Meshshur.Scale + vt(2.5,0,2.5) | |
| 576 | wait(0) | |
| 577 | end | |
| 578 | for i = 0, 10 do | |
| 579 | larm.Transparency = larm.Transparency + 0.1 | |
| 580 | rarm.Transparency = rarm.Transparency + 0.1 | |
| 581 | lleg.Transparency = lleg.Transparency + 0.1 | |
| 582 | rleg.Transparency = rleg.Transparency + 0.1 | |
| 583 | tors.Transparency = tors.Transparency + 0.1 | |
| 584 | hed.Transparency = hed.Transparency + 0.1 | |
| 585 | wait() | |
| 586 | end | |
| 587 | local pt1mass = NumberSequenceKeypoint.new(0,15,0) | |
| 588 | local effecton = Instance.new("ParticleEmitter",root)
| |
| 589 | effecton.LightEmission = 1 | |
| 590 | effecton.Texture = "rbxassetid://296874871" | |
| 591 | effecton.Color = ColorSequence.new(maincolor) | |
| 592 | effecton.Rate = 1000 | |
| 593 | effecton.Lifetime = NumberRange.new(0.75) | |
| 594 | effecton.Size = NumberSequence.new({pt1mass,pt2})
| |
| 595 | effecton.Speed = NumberRange.new(5) | |
| 596 | effecton.VelocitySpread = 100000000 | |
| 597 | effecton.RotSpeed = NumberRange.new(-300,300) | |
| 598 | local ash = Instance.new("Sound",root)
| |
| 599 | ash.SoundId = "rbxassetid://181004943" | |
| 600 | ash.Volume = 4 | |
| 601 | ash.Pitch = 0.25 | |
| 602 | ash:Play() | |
| 603 | local sbs = Instance.new("BodyPosition", root)
| |
| 604 | sbs.P = 3000 | |
| 605 | sbs.D = 1000 | |
| 606 | sbs.maxForce = Vector3.new(500000, 500000000, 500000) | |
| 607 | sbs.position = root.CFrame.p + Vector3.new(0, 175, 0) | |
| 608 | wait(2.5) | |
| 609 | for i = 0, 25 do | |
| 610 | local touched = false | |
| 611 | local delay = false | |
| 612 | local spart = Instance.new("Part",char)
| |
| 613 | local tick = Instance.new("Sound",spart)
| |
| 614 | tick.SoundId = "rbxassetid://304448425" | |
| 615 | tick.Volume = 1.5 | |
| 616 | tick.Pitch = 0.85 | |
| 617 | tick:Play() | |
| 618 | spart.Size = vt(2,2,2) | |
| 619 | spart.BrickColor = BrickColor.new("Deep orange")
| |
| 620 | spart.Transparency = 1 | |
| 621 | spart.CanCollide = false | |
| 622 | spart.Material = "Neon" | |
| 623 | spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0) | |
| 624 | local pt1e = NumberSequenceKeypoint.new(0,15,0) | |
| 625 | local pt2e = NumberSequenceKeypoint.new(1,0,0) | |
| 626 | local effecto = Instance.new("ParticleEmitter",spart)
| |
| 627 | effecto.Texture = "rbxassetid://296874871" | |
| 628 | effecto.LightEmission = 1 | |
| 629 | effecto.Color = ColorSequence.new(maincolor) | |
| 630 | effecto.Rate = 10000 | |
| 631 | effecto.Lifetime = NumberRange.new(0.5) | |
| 632 | effecto.Size = NumberSequence.new({pt1e,pt2e})
| |
| 633 | effecto.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 634 | effecto.Speed = NumberRange.new(0,0) | |
| 635 | effecto.RotSpeed = NumberRange.new(-500,500) | |
| 636 | local bv = Instance.new("BodyVelocity")
| |
| 637 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 638 | bv.velocity = mouse.Hit.lookVector * 150 | |
| 639 | bv.Parent = spart | |
| 640 | wait(0.05) | |
| 641 | spart.Touched:connect(function(hit) | |
| 642 | if touched == false then | |
| 643 | touched = true | |
| 644 | if hit.Name == "Water" then | |
| 645 | local pt1er = NumberSequenceKeypoint.new(0,15,0) | |
| 646 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 647 | local smokecolor = Color3.new(0.5,0.5,0.5) | |
| 648 | local tick = Instance.new("Sound",spart)
| |
| 649 | tick.SoundId = "rbxassetid://629468689" | |
| 650 | tick.Volume = 1.5 | |
| 651 | tick.Pitch = 1 | |
| 652 | tick:Play() | |
| 653 | effecto.Rate = 0 | |
| 654 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 655 | effectoz.Texture = "rbxassetid://296874871" | |
| 656 | effectoz.LightEmission = 0.75 | |
| 657 | effectoz.Color = ColorSequence.new(smokecolor) | |
| 658 | effectoz.Lifetime = NumberRange.new(3) | |
| 659 | effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 660 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 661 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 662 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 663 | effectoz.Speed = NumberRange.new(10) | |
| 664 | effectoz.VelocitySpread = 75 | |
| 665 | effectoz.Rate = 1000000000000 | |
| 666 | spart.Anchored = true | |
| 667 | wait(3) | |
| 668 | effectoz.Rate = 0 | |
| 669 | wait(2.5) | |
| 670 | spart:Destroy() | |
| 671 | end | |
| 672 | if hit.Name ~= "Water" then | |
| 673 | local saveposition = spart.CFrame | |
| 674 | spart.Anchored = true | |
| 675 | local tick = Instance.new("Sound",spart)
| |
| 676 | tick.SoundId = "rbxassetid://304529688" | |
| 677 | tick.Volume = 1.5 | |
| 678 | tick.Pitch = 0.85 | |
| 679 | tick:Play() | |
| 680 | local tickn = Instance.new("Sound",spart)
| |
| 681 | tickn.SoundId = "rbxassetid://138186576" | |
| 682 | tickn.Volume = 1.5 | |
| 683 | tickn.Pitch = 1 | |
| 684 | tickn:Play() | |
| 685 | local tick2e = Instance.new("Sound",spart)
| |
| 686 | tick2e.SoundId = "rbxassetid://272207079" | |
| 687 | tick2e.Volume = 2.5 | |
| 688 | tick2e.Looped = true | |
| 689 | tick2e.Pitch = 0.85 | |
| 690 | tick2e:Play() | |
| 691 | effecto:Destroy() | |
| 692 | local pt1er = NumberSequenceKeypoint.new(0,15,0) | |
| 693 | local pt1er2 = NumberSequenceKeypoint.new(0,25,0) | |
| 694 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 695 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 696 | effectoz.Texture = "rbxassetid://296874871" | |
| 697 | effectoz.LightEmission = 1 | |
| 698 | effectoz.Color = ColorSequence.new(maincolor) | |
| 699 | effectoz.Lifetime = NumberRange.new(2.5) | |
| 700 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 701 | effectoz.Speed = NumberRange.new(0,0) | |
| 702 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 703 | effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 704 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 705 | effectoz.Speed = NumberRange.new(10) | |
| 706 | effectoz.VelocitySpread = 10000000 | |
| 707 | effectoz.Rate = 1000000000000 | |
| 708 | local effectoz2 = Instance.new("ParticleEmitter",spart)
| |
| 709 | effectoz2.Texture = "rbxassetid://296874871" | |
| 710 | effectoz2.LightEmission = 1 | |
| 711 | effectoz2.Color = ColorSequence.new(maincolor) | |
| 712 | effectoz2.Lifetime = NumberRange.new(0.5) | |
| 713 | effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
| |
| 714 | effectoz2.Speed = NumberRange.new(0,0) | |
| 715 | effectoz2.Rotation = NumberRange.new(-300,300) | |
| 716 | effectoz2.RotSpeed = NumberRange.new(-500,500) | |
| 717 | effectoz2.Speed = NumberRange.new(250) | |
| 718 | effectoz2.VelocitySpread = 10000000 | |
| 719 | effectoz2.Rate = 1000000000000 | |
| 720 | spart.Size = vt(25,25,25) | |
| 721 | spart.Transparency = 1 | |
| 722 | spart.CFrame = saveposition | |
| 723 | wait(0.5) | |
| 724 | Damagefunc(hit,50,60,-20,"Normal",root,.2,1) | |
| 725 | effectoz2.Rate = 0 | |
| 726 | wait(5) | |
| 727 | effectoz.Rate = 0 | |
| 728 | tick2e:Stop() | |
| 729 | wait(2.5) | |
| 730 | spart:Destroy() | |
| 731 | end | |
| 732 | end | |
| 733 | end) | |
| 734 | wait(0.215) | |
| 735 | end | |
| 736 | wait(1) | |
| 737 | effecton.Rate = 0 | |
| 738 | for i = 0, 10 do | |
| 739 | larm.Transparency = larm.Transparency - 0.1 | |
| 740 | rarm.Transparency = rarm.Transparency - 0.1 | |
| 741 | lleg.Transparency = lleg.Transparency - 0.1 | |
| 742 | rleg.Transparency = rleg.Transparency - 0.1 | |
| 743 | tors.Transparency = tors.Transparency - 0.1 | |
| 744 | hed.Transparency = hed.Transparency - 0.1 | |
| 745 | wait() | |
| 746 | end | |
| 747 | sbs:Destroy() | |
| 748 | char.Humanoid.WalkSpeed = 16 | |
| 749 | for i = 0, 25 do | |
| 750 | shur.CFrame = tors.CFrame + vt(0,-2.95,0) | |
| 751 | Meshshur.Scale = Meshshur.Scale - vt(2.5,0,2.5) | |
| 752 | wait(0) | |
| 753 | end | |
| 754 | effecton:Destroy() | |
| 755 | shur:Destroy() | |
| 756 | end | |
| 757 | ||
| 758 | ||
| 759 | function SplashFire() | |
| 760 | local shur = Instance.new("Part",char)
| |
| 761 | local gahd = Instance.new("Sound",char)
| |
| 762 | char.Humanoid.WalkSpeed = 0 | |
| 763 | gahd.SoundId = "rbxassetid://313945165" | |
| 764 | gahd.Volume = 2.5 | |
| 765 | gahd.Pitch = 0.625 | |
| 766 | gahd:Play() | |
| 767 | shur.Transparency = 1 | |
| 768 | shur.Material = "Neon" | |
| 769 | shur.BrickColor = bc("Bright red")
| |
| 770 | shur.Anchored = true | |
| 771 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 772 | shur.Size = vt(1,0.2,1) | |
| 773 | shur.CanCollide = false | |
| 774 | local dec = Instance.new("Decal",shur)
| |
| 775 | dec.Texture = symbolimg | |
| 776 | dec.Face = "Top" | |
| 777 | local dec2 = dec:Clone() | |
| 778 | dec2.Parent = shur | |
| 779 | dec2.Face = "Bottom" | |
| 780 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 781 | Meshshur.Scale = vt(0,1,0) | |
| 782 | for i = 0, 25 do | |
| 783 | shur.CFrame = tors.CFrame + vt(0,-2.95,0) | |
| 784 | Meshshur.Scale = Meshshur.Scale + vt(1,0,1) | |
| 785 | wait(0) | |
| 786 | end | |
| 787 | for i = 0, 10 do | |
| 788 | larm.Transparency = larm.Transparency + 0.1 | |
| 789 | rarm.Transparency = rarm.Transparency + 0.1 | |
| 790 | lleg.Transparency = lleg.Transparency + 0.1 | |
| 791 | rleg.Transparency = rleg.Transparency + 0.1 | |
| 792 | tors.Transparency = tors.Transparency + 0.1 | |
| 793 | hed.Transparency = hed.Transparency + 0.1 | |
| 794 | wait() | |
| 795 | end | |
| 796 | local pt1mass = NumberSequenceKeypoint.new(0,15,0) | |
| 797 | local effecton = Instance.new("ParticleEmitter",root)
| |
| 798 | effecton.LightEmission = 1 | |
| 799 | effecton.Texture = "rbxassetid://296874871" | |
| 800 | effecton.Color = ColorSequence.new(maincolor) | |
| 801 | effecton.Rate = 1000 | |
| 802 | effecton.Lifetime = NumberRange.new(0.75) | |
| 803 | effecton.Size = NumberSequence.new({pt1mass,pt2})
| |
| 804 | effecton.Speed = NumberRange.new(5) | |
| 805 | effecton.VelocitySpread = 100000000 | |
| 806 | effecton.RotSpeed = NumberRange.new(-300,300) | |
| 807 | local ash = Instance.new("Sound",root)
| |
| 808 | ash.SoundId = "rbxassetid://181004943" | |
| 809 | ash.Volume = 4 | |
| 810 | ash.Pitch = 0.5 | |
| 811 | ash:Play() | |
| 812 | local sbs = Instance.new("BodyPosition", root)
| |
| 813 | sbs.P = 3000 | |
| 814 | sbs.D = 1000 | |
| 815 | sbs.maxForce = Vector3.new(500000, 500000000, 500000) | |
| 816 | sbs.position = root.CFrame.p + Vector3.new(0, 200, 0) | |
| 817 | wait(1) | |
| 818 | sbs.position = root.CFrame.p - Vector3.new(0, 500, 0) | |
| 819 | wait(0.1) | |
| 820 | sbs:Destroy() | |
| 821 | wait(0.15) | |
| 822 | effecton.Rate = 0 | |
| 823 | local spart = Instance.new("Part",char)
| |
| 824 | spart.Size = vt(2,2,2) | |
| 825 | spart.BrickColor = BrickColor.new("Deep orange")
| |
| 826 | spart.Transparency = 1 | |
| 827 | spart.CanCollide = false | |
| 828 | spart.Material = "Neon" | |
| 829 | spart.Anchored = true | |
| 830 | spart.CFrame = root.CFrame + Vector3.new(0,0.1,0) | |
| 831 | local tick = Instance.new("Sound",spart)
| |
| 832 | tick.SoundId = "rbxassetid://304529688" | |
| 833 | tick.Volume = 1.5 | |
| 834 | tick.Pitch = 0.85 | |
| 835 | tick:Play() | |
| 836 | local tickn = Instance.new("Sound",spart)
| |
| 837 | tickn.SoundId = "rbxassetid://138186576" | |
| 838 | tickn.Volume = 1.5 | |
| 839 | tickn.Pitch = 1 | |
| 840 | tickn:Play() | |
| 841 | local tick2e = Instance.new("Sound",spart)
| |
| 842 | tick2e.SoundId = "rbxassetid://272207079" | |
| 843 | tick2e.Volume = 2.5 | |
| 844 | tick2e.Looped = true | |
| 845 | tick2e.Pitch = 0.85 | |
| 846 | tick2e:Play() | |
| 847 | local pt1er = NumberSequenceKeypoint.new(0,10,0) | |
| 848 | local pt1er2 = NumberSequenceKeypoint.new(0,20,0) | |
| 849 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 850 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 851 | effectoz.Texture = "rbxassetid://296874871" | |
| 852 | effectoz.LightEmission = 1 | |
| 853 | effectoz.Color = ColorSequence.new(maincolor) | |
| 854 | effectoz.Lifetime = NumberRange.new(2.5) | |
| 855 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 856 | effectoz.Speed = NumberRange.new(0,0) | |
| 857 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 858 | effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 859 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 860 | effectoz.Speed = NumberRange.new(5) | |
| 861 | effectoz.VelocitySpread = 10000000 | |
| 862 | effectoz.Rate = 1000000000000 | |
| 863 | local effectoz2 = Instance.new("ParticleEmitter",spart)
| |
| 864 | effectoz2.Texture = "rbxassetid://296874871" | |
| 865 | effectoz2.LightEmission = 1 | |
| 866 | effectoz2.Color = ColorSequence.new(maincolor) | |
| 867 | effectoz2.Lifetime = NumberRange.new(0.5) | |
| 868 | effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
| |
| 869 | effectoz2.Speed = NumberRange.new(0,0) | |
| 870 | effectoz2.Rotation = NumberRange.new(-300,300) | |
| 871 | effectoz2.RotSpeed = NumberRange.new(-500,500) | |
| 872 | effectoz2.Speed = NumberRange.new(100) | |
| 873 | effectoz2.VelocitySpread = 10000000 | |
| 874 | effectoz2.Rate = 1000000000000 | |
| 875 | spart.Size = vt(35,5,35) | |
| 876 | spart.Transparency = 1 | |
| 877 | spart.CFrame = root.CFrame | |
| 878 | wait(0.5) | |
| 879 | spart.Touched:connect(function(hit) | |
| 880 | Damagefunc(hit,25,30,-20,"Normal",root,.2,1) | |
| 881 | end) | |
| 882 | ash:Destroy() | |
| 883 | effectoz2.Rate = 0 | |
| 884 | wait(5) | |
| 885 | effecton:Destroy() | |
| 886 | effectoz.Rate = 0 | |
| 887 | tick2e:Stop() | |
| 888 | wait(2.5) | |
| 889 | spart:Destroy() | |
| 890 | wait(1) | |
| 891 | for i = 0, 10 do | |
| 892 | larm.Transparency = larm.Transparency - 0.1 | |
| 893 | rarm.Transparency = rarm.Transparency - 0.1 | |
| 894 | lleg.Transparency = lleg.Transparency - 0.1 | |
| 895 | rleg.Transparency = rleg.Transparency - 0.1 | |
| 896 | tors.Transparency = tors.Transparency - 0.1 | |
| 897 | hed.Transparency = hed.Transparency - 0.1 | |
| 898 | wait() | |
| 899 | end | |
| 900 | sbs:Destroy() | |
| 901 | char.Humanoid.WalkSpeed = 16 | |
| 902 | for i = 0, 25 do | |
| 903 | shur.CFrame = tors.CFrame + vt(0,-2.95,0) | |
| 904 | Meshshur.Scale = Meshshur.Scale - vt(1,0,1) | |
| 905 | wait(0) | |
| 906 | end | |
| 907 | shur:Destroy() | |
| 908 | end | |
| 909 | ||
| 910 | function MassiveFireBall() | |
| 911 | local shur = Instance.new("Part",char)
| |
| 912 | local gahd = Instance.new("Sound",char)
| |
| 913 | char.Humanoid.WalkSpeed = 0 | |
| 914 | gahd.SoundId = "rbxassetid://313945165" | |
| 915 | gahd.Volume = 2.5 | |
| 916 | gahd.Pitch = 0.6 | |
| 917 | gahd:Play() | |
| 918 | shur.Transparency = 1 | |
| 919 | shur.Material = "Neon" | |
| 920 | shur.BrickColor = bc("Bright red")
| |
| 921 | shur.Anchored = true | |
| 922 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 923 | shur.Size = vt(1,0.2,1) | |
| 924 | shur.CanCollide = false | |
| 925 | local dec = Instance.new("Decal",shur)
| |
| 926 | dec.Texture = symbolimg | |
| 927 | dec.Face = "Top" | |
| 928 | local dec2 = dec:Clone() | |
| 929 | dec2.Parent = shur | |
| 930 | dec2.Face = "Bottom" | |
| 931 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 932 | Meshshur.Scale = vt(0,1,0) | |
| 933 | for i = 0, 25 do | |
| 934 | shur.CFrame = tors.CFrame + vt(0,-2.95,0) | |
| 935 | Meshshur.Scale = Meshshur.Scale + vt(1.25,0,1.25) | |
| 936 | wait(0) | |
| 937 | end | |
| 938 | local touched = false | |
| 939 | local delay = false | |
| 940 | local spart = Instance.new("Part",char)
| |
| 941 | local tick = Instance.new("Sound",spart)
| |
| 942 | tick.SoundId = "rbxassetid://304448425" | |
| 943 | tick.Volume = 1.5 | |
| 944 | tick.Pitch = 0.85 | |
| 945 | tick:Play() | |
| 946 | spart.Size = vt(2,2,2) | |
| 947 | spart.BrickColor = BrickColor.new("Deep orange")
| |
| 948 | spart.Transparency = 1 | |
| 949 | spart.CanCollide = false | |
| 950 | spart.Material = "Neon" | |
| 951 | spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0) | |
| 952 | local pt1e = NumberSequenceKeypoint.new(0,15,0) | |
| 953 | local pt2e = NumberSequenceKeypoint.new(1,0,0) | |
| 954 | local effecto = Instance.new("ParticleEmitter",spart)
| |
| 955 | effecto.Texture = "rbxassetid://296874871" | |
| 956 | effecto.LightEmission = 1 | |
| 957 | effecto.Color = ColorSequence.new(maincolor) | |
| 958 | effecto.Rate = 10000 | |
| 959 | effecto.Lifetime = NumberRange.new(0.5) | |
| 960 | effecto.Size = NumberSequence.new({pt1e,pt2e})
| |
| 961 | effecto.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 962 | effecto.Speed = NumberRange.new(0,0) | |
| 963 | effecto.RotSpeed = NumberRange.new(-500,500) | |
| 964 | local bv = Instance.new("BodyVelocity")
| |
| 965 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 966 | bv.velocity = mouse.Hit.lookVector * 150 | |
| 967 | bv.Parent = spart | |
| 968 | wait(0.05) | |
| 969 | spart.Touched:connect(function(hit) | |
| 970 | if touched == false then | |
| 971 | touched = true | |
| 972 | if hit.Name == "Water" then | |
| 973 | local pt1er = NumberSequenceKeypoint.new(0,15,0) | |
| 974 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 975 | local smokecolor = Color3.new(0.5,0.5,0.5) | |
| 976 | local tick = Instance.new("Sound",spart)
| |
| 977 | tick.SoundId = "rbxassetid://629468689" | |
| 978 | tick.Volume = 1.5 | |
| 979 | tick.Pitch = 1 | |
| 980 | tick:Play() | |
| 981 | effecto.Rate = 0 | |
| 982 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 983 | effectoz.Texture = "rbxassetid://296874871" | |
| 984 | effectoz.LightEmission = 0.75 | |
| 985 | effectoz.Color = ColorSequence.new(smokecolor) | |
| 986 | effectoz.Lifetime = NumberRange.new(3) | |
| 987 | effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 988 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 989 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 990 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 991 | effectoz.Speed = NumberRange.new(10) | |
| 992 | effectoz.VelocitySpread = 75 | |
| 993 | effectoz.Rate = 1000000000000 | |
| 994 | spart.Anchored = true | |
| 995 | wait(3) | |
| 996 | effectoz.Rate = 0 | |
| 997 | wait(2.5) | |
| 998 | spart:Destroy() | |
| 999 | end | |
| 1000 | if hit.Name ~= "Water" then | |
| 1001 | local saveposition = spart.CFrame | |
| 1002 | spart.Anchored = true | |
| 1003 | local tick = Instance.new("Sound",spart)
| |
| 1004 | tick.SoundId = "rbxassetid://304529688" | |
| 1005 | tick.Volume = 1.5 | |
| 1006 | tick.Pitch = 0.85 | |
| 1007 | tick:Play() | |
| 1008 | local tickn = Instance.new("Sound",spart)
| |
| 1009 | tickn.SoundId = "rbxassetid://138186576" | |
| 1010 | tickn.Volume = 1.5 | |
| 1011 | tickn.Pitch = 1 | |
| 1012 | tickn:Play() | |
| 1013 | local tick2e = Instance.new("Sound",spart)
| |
| 1014 | tick2e.SoundId = "rbxassetid://272207079" | |
| 1015 | tick2e.Volume = 2.5 | |
| 1016 | tick2e.Looped = true | |
| 1017 | tick2e.Pitch = 0.85 | |
| 1018 | tick2e:Play() | |
| 1019 | effecto:Destroy() | |
| 1020 | local pt1er = NumberSequenceKeypoint.new(0,15,0) | |
| 1021 | local pt1er2 = NumberSequenceKeypoint.new(0,25,0) | |
| 1022 | local pt2er = NumberSequenceKeypoint.new(1,0,0) | |
| 1023 | local effectoz = Instance.new("ParticleEmitter",spart)
| |
| 1024 | effectoz.Texture = "rbxassetid://296874871" | |
| 1025 | effectoz.LightEmission = 1 | |
| 1026 | effectoz.Color = ColorSequence.new(maincolor) | |
| 1027 | effectoz.Lifetime = NumberRange.new(2.5) | |
| 1028 | effectoz.Size = NumberSequence.new({pt1er,pt2er})
| |
| 1029 | effectoz.Speed = NumberRange.new(0,0) | |
| 1030 | effectoz.Rotation = NumberRange.new(-300,300) | |
| 1031 | effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
| |
| 1032 | effectoz.RotSpeed = NumberRange.new(-500,500) | |
| 1033 | effectoz.Speed = NumberRange.new(10) | |
| 1034 | effectoz.VelocitySpread = 10000000 | |
| 1035 | effectoz.Rate = 1000000000000 | |
| 1036 | local effectoz2 = Instance.new("ParticleEmitter",spart)
| |
| 1037 | effectoz2.Texture = "rbxassetid://296874871" | |
| 1038 | effectoz2.LightEmission = 1 | |
| 1039 | effectoz2.Color = ColorSequence.new(maincolor) | |
| 1040 | effectoz2.Lifetime = NumberRange.new(0.5) | |
| 1041 | effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
| |
| 1042 | effectoz2.Speed = NumberRange.new(0,0) | |
| 1043 | effectoz2.Rotation = NumberRange.new(-300,300) | |
| 1044 | effectoz2.RotSpeed = NumberRange.new(-500,500) | |
| 1045 | effectoz2.Speed = NumberRange.new(250) | |
| 1046 | effectoz2.VelocitySpread = 10000000 | |
| 1047 | effectoz2.Rate = 1000000000000 | |
| 1048 | spart.Size = vt(25,25,25) | |
| 1049 | spart.Transparency = 1 | |
| 1050 | spart.CFrame = saveposition | |
| 1051 | wait(0.5) | |
| 1052 | Damagefunc(hit,50,60,-20,"Normal",root,.2,1) | |
| 1053 | effectoz2.Rate = 0 | |
| 1054 | wait(5) | |
| 1055 | effectoz.Rate = 0 | |
| 1056 | tick2e:Stop() | |
| 1057 | wait(2.5) | |
| 1058 | spart:Destroy() | |
| 1059 | end | |
| 1060 | end | |
| 1061 | end) | |
| 1062 | char.Humanoid.WalkSpeed = 16 | |
| 1063 | wait(1) | |
| 1064 | for i = 0, 25 do | |
| 1065 | shur.CFrame = tors.CFrame + vt(0,-2.95,0) | |
| 1066 | Meshshur.Scale = Meshshur.Scale - vt(1.25,0,1.25) | |
| 1067 | wait(0) | |
| 1068 | end | |
| 1069 | shur:Destroy() | |
| 1070 | end | |
| 1071 | ||
| 1072 | ||
| 1073 | mouse.KeyDown:connect(function(k) | |
| 1074 | ||
| 1075 | k = k:lower() | |
| 1076 | if k == "q" and attacking == false then | |
| 1077 | if energy >= 10 then | |
| 1078 | energy = energy - 10 | |
| 1079 | attacking = true | |
| 1080 | Fireball() | |
| 1081 | attacking = false | |
| 1082 | end | |
| 1083 | end | |
| 1084 | if k == "r" and attacking == false then | |
| 1085 | if energy >= 50 then | |
| 1086 | energy = energy - 50 | |
| 1087 | attacking = true | |
| 1088 | MassiveFireBall() | |
| 1089 | attacking = false | |
| 1090 | end | |
| 1091 | end | |
| 1092 | if k == "f" and attacking == false then | |
| 1093 | if energy >= 100 then | |
| 1094 | energy = energy - 100 | |
| 1095 | attacking = true | |
| 1096 | Firestorm() | |
| 1097 | attacking = false | |
| 1098 | end | |
| 1099 | end | |
| 1100 | if k == "e" and attacking == false then | |
| 1101 | if energy >= 25 then | |
| 1102 | energy = energy - 25 | |
| 1103 | attacking = true | |
| 1104 | SplashFire() | |
| 1105 | attacking = false | |
| 1106 | end | |
| 1107 | end | |
| 1108 | if k == "0" and attacking == false then | |
| 1109 | if charge == false then | |
| 1110 | tick:Resume() | |
| 1111 | tick2:Resume() | |
| 1112 | charge = true | |
| 1113 | attacking = true | |
| 1114 | if charge == true then | |
| 1115 | effecto.Rate = 10000 | |
| 1116 | end | |
| 1117 | end | |
| 1118 | end | |
| 1119 | end) | |
| 1120 | mouse.KeyUp:connect(function(k) | |
| 1121 | ||
| 1122 | k = k:lower() | |
| 1123 | if k == "0" then | |
| 1124 | charge = false | |
| 1125 | tick:Pause() | |
| 1126 | tick2:Pause() | |
| 1127 | attacking = false | |
| 1128 | effecto.Rate = 0 | |
| 1129 | end | |
| 1130 | end) | |
| 1131 | ||
| 1132 | while wait() do | |
| 1133 | healthgui.Text = "Energy: " ..math.floor(energy).. "/1000" | |
| 1134 | if charge == true then | |
| 1135 | while true do | |
| 1136 | healthgui.Text = "Energy: " ..math.floor(energy).. "/1000" | |
| 1137 | energy = energy + 0.75 | |
| 1138 | wait() | |
| 1139 | if energy > 1000 then | |
| 1140 | energy = 1000 | |
| 1141 | end | |
| 1142 | if charge == false then | |
| 1143 | break | |
| 1144 | end | |
| 1145 | end | |
| 1146 | end | |
| 1147 | ||
| 1148 | if energy > 1000 then | |
| 1149 | energy = 1000 | |
| 1150 | end | |
| 1151 | end |