Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(Player,io)
- if Player~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=mouse.Hit,Target=mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=mouse.Hit or t~=mouse.Target then
- h,t=mouse.Hit,mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --==//==--
- local Player = owner
- local Char = Player.Character
- local mouse = Player:GetMouse()
- local Humanoid = Char:findFirstChild("Humanoid")
- local Torso = Char:findFirstChild("Torso")
- ----------------------------------------------------------
- ------------------------
- local Head = Char.Head
- local ra = Char:findFirstChild("Right Arm")
- local la = Char:findFirstChild("Left Arm")
- local rl = Char:findFirstChild("Right Leg")
- local ll = Char:findFirstChild("Left Leg")
- local rs = Torso:findFirstChild("Right Shoulder")
- local ls = Torso:findFirstChild("Left Shoulder")
- local rh = Torso:findFirstChild("Right Hip")
- local lh = Torso:findFirstChild("Left Hip")
- local neck = Torso:findFirstChild("Neck")
- local rp = Char:findFirstChild("HumanoidRootPart")
- rp.Archivable = true
- local rj = rp:findFirstChild("RootJoint")
- rj.Archivable = true
- local animate = Char:findFirstChild("Animate")
- local rootpart = Char:findFirstChild("HumanoidRootPart")
- local Camera = workspace.CurrentCamera
- local CF = CFrame.new
- local components = CF().components
- local magicclrs = {"Really blue", "Really black", "Institutional white"}
- rootpart.CanCollide = false
- Humanoid:findFirstChild("Animator"):Destroy()
- Humanoid.CameraOffset = Vector3.new(0, 2, 0)
- Humanoid.JumpPower = 60
- game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
- if jump == "Jump" then
- Humanoid.Jump = false
- end
- end)
- local tors = owner.Character.Torso
- local arm = owner.Character:findFirstChild("Left Arm")
- local brm = owner.Character:findFirstChild("Right Arm")
- local Humaniod = owner.Character:findFirstChild("Humanoid")
- local human = Humaniod
- local player = owner
- local Char = owner.Character
- local mouse = player:GetMouse()
- human.MaxHealth = math.huge
- human.Health = math.huge
- local sparkle = Instance.new("Sparkles")
- sparkle.SparkleColor = Color3.new(0, 255, 75);
- sparkle.Parent = script;
- sparkle.Enabled = false;
- function CreatePart1(parent,transparency,reflectance,material,brickcolor)
- local p = Instance.new("Part")
- p.Parent = parent
- p.Size = Vector3.new(1,1,1)
- p.Transparency = transparency
- p.Reflectance = reflectance
- p.CanCollide = false
- p.Locked = true
- p.BrickColor = brickcolor
- p.Material = material
- return p
- end
- snd = Instance.new("Sound")
- snd.SoundId = "http://www.roblox.com/asset/?id=2233908"
- snd.Volume = 1
- snd.Name = "Boom"
- snd.Parent = tors
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=11998770"
- UnsheathSound.Name = "Go"
- UnsheathSound.Volume = 0.5
- UnsheathSound.Parent = tors
- local Wing1 = Instance.new("Part",Char)
- Wing1.FormFactor = Enum.FormFactor.Custom
- Wing1.Size = Vector3.new(.2, .2, .2)
- Wing1.Name = "WIng_1"
- local fire = Instance.new("ParticleEmitter", Wing1)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(1)
- fire.Acceleration = Vector3.new(0, 0, 0)
- fire.RotSpeed = NumberRange.new(150)
- fire.Rate = 500
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = false
- fire.Texture = "rbxassetid://296874871"
- fire.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 3)})
- fire.Enabled = false
- function go()
- Wing1.Fire.Enabled = true
- end
- Wld = function(a,b,cf)
- local Weld = Instance.new('Weld',a)
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C1 = cf
- return Weld
- end
- local wld = Wld(tors,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
- Player = owner
- Character = Char
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",Char)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Char.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Antique"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(55/255,0/255,255/255)
- tecks2.TextStrokeColor3 = Color3.new(22/255,255/255,22/255)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- local tecks3 = Instance.new("TextLabel",naeeym2)
- tecks3.BackgroundTransparency = 1
- tecks3.BorderSizePixel = 0
- tecks3.Text = ""
- tecks3.Font = "Antique"
- tecks3.TextSize = 30
- tecks3.TextStrokeTransparency = 0
- tecks3.TextColor3 = Color3.new(22/255,255/255,22/255)
- tecks3.TextStrokeColor3 = Color3.new(55/255,0/255,255/255)
- tecks3.Size = UDim2.new(1,0,0.5,0)
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- tecks3.Text = string.sub(text,1,i)
- wait(0.01)
- end
- wait(2)
- for i = 1, 50 do
- wait()
- tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
- tecks2.Rotation = tecks2.Rotation - .8
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
- tecks3.Rotation = tecks2.Rotation + .8
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- function onChatted(msg)
- chatfunc(msg)
- end
- Player.Chatted:connect(onChatted)
- function nigga(part)
- local eff1 = Instance.new("ParticleEmitter",part)
- eff1.Size = NumberSequence.new(.1)
- eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
- eff1.LightEmission = 1
- eff1.Lifetime = NumberRange.new(1)
- eff1.Speed = NumberRange.new(0)
- eff1.Rate = 100
- eff1.Texture = "rbxassetid://284205403"
- eff1.Acceleration = Vector3.new(0,10,0)
- eff1.Color = ColorSequence.new(Color3.new(0,255,0))
- local eff2 = Instance.new("ParticleEmitter",part)
- eff2.Size = NumberSequence.new(.1)
- eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
- eff2.LightEmission = 1
- eff2.Lifetime = NumberRange.new(1)
- eff2.Speed = NumberRange.new(0)
- eff2.Rate = 100
- eff2.Texture = "rbxassetid://347504259"
- eff2.Acceleration = Vector3.new(0,10,0)
- eff2.Color = ColorSequence.new(Color3.new(0,255,0))
- local eff3 = Instance.new("ParticleEmitter",part)
- eff3.Size = NumberSequence.new(1)
- eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
- eff3.LightEmission = 1
- eff3.Lifetime = NumberRange.new(1)
- eff3.Speed = NumberRange.new(0)
- eff3.Rate = 100
- eff3.Texture = "rbxassetid://284205403"
- eff3.Acceleration = Vector3.new(0,10,0)
- eff3.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
- end
- local eff4 = Instance.new("ParticleEmitter",tors)
- eff4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15),NumberSequenceKeypoint.new(1,0)})
- eff4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,0)})
- eff4.LightEmission = 1
- eff4.Lifetime = NumberRange.new(10)
- eff4.Speed = NumberRange.new(200)
- eff4.Rate = 0
- eff4.SpreadAngle = Vector2.new(-360,360)
- eff4.Texture = "rbxassetid://284205403"
- eff4.Acceleration = Vector3.new(0,0,0)
- eff4.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
- eff4.Rate = 1000
- chatfunc("I hope you're ready... Cause its about time..")
- wait(3)
- for i = 1, 5 do
- local eff3 = Instance.new("Part", tors.Parent)
- eff3.Size = Vector3.new(1, 1, 1)
- eff3.Transparency = 0
- eff3.Material = "Neon"
- eff3.Anchored = true
- eff3.CanCollide = false
- eff3.Shape = "Ball"
- eff3.CFrame = tors.CFrame
- for i = 1, 10 do
- eff3.Size = eff3.Size + Vector3.new(4, 4, 4)
- eff3.Transparency = eff3.Transparency + 0.1
- eff3.CFrame = tors.CFrame * CFrame.Angles(math.random(), math.random(), math.random())
- eff3.BrickColor = BrickColor.new("Dark green")
- wait()
- end
- end
- chatfunc("THAT YOU GOT THE KARMA YOU DESERVE!")
- wait()
- go()
- nigga(brm)
- nigga(arm)
- nigga(tors)
- wait(2)
- eff4.Rate = 0
- wait(2)
- eff4:Remove()
- Head = Char.Head
- char = Char
- CV="Toothpaste"
- p = owner
- char = p.Character
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char .Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 14, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Antique"
- text.TextStrokeColor3 = Color3.new(22/255,255/255,22/255)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(55/255,0/255,255/255)
- v.Shape="Block"
- text.Text = "||``Aurora Borealis``||"
- function boom(part)
- wait();
- if part == nil then return end;
- if part.Anchored then return end;
- if part.Name == "WIng_1" then return end;
- if part.Parent.ClassName == "Accessory" then return end;
- if part.Parent.Name == owner.Name then return end
- tors.Go:Play()
- wait(0.5)
- if part.Name == "Torso" or part.Name == "Head" then
- local fire = Instance.new("ParticleEmitter", part)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(1)
- fire.Acceleration = Vector3.new(0, 0, 0)
- fire.RotSpeed = NumberRange.new(150)
- fire.Rate = 500
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = false
- fire.Texture = "rbxassetid://296874871"
- fire.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 3)})
- fire.Enabled = true
- end
- if part.Name == "Torso" then
- local eff3 = Instance.new("Part", tors)
- eff3.Size = Vector3.new(1, 1, 1)
- eff3.Transparency = 0
- eff3.Material = "Neon"
- eff3.Anchored = true
- eff3.CanCollide = false
- eff3.Shape = "Ball"
- eff3.CFrame = part.CFrame
- for i = 1, 10 do
- eff3.Size = eff3.Size + Vector3.new(4, 4, 4)
- eff3.Transparency = eff3.Transparency + 0.1
- eff3.CFrame = part.CFrame * CFrame.Angles(math.random(), math.random(), math.random())
- eff3.BrickColor = BrickColor.new("Dark green")
- wait()
- end
- end
- part:BreakJoints();
- part.Velocity = Vector3.new(part.Velocity.X+ math.random(10, 20), part.Velocity.Y + math.random(100, 200), part.Velocity.Z+ math.random(10, 20));
- game.Debris:AddItem(part, 10);
- end
- local load = true
- Lerp = function(a,b,c)
- return a+(b-a)*c
- end
- function phaseclone()
- Char.Archivable = true
- local Clone1 = Char:Clone()
- Clone1.Parent = game.Workspace
- for i,v in pairs (Clone1:GetChildren()) do
- if v.ClassName == "BodyColors" then
- B = "Really black"
- v.HeadColor = BrickColor.new(B)
- v.LeftArmColor = BrickColor.new(B)
- v.RightArmColor = BrickColor.new(B)
- v.TorsoColor = BrickColor.new(B)
- v.LeftLegColor = BrickColor.new(B)
- v.RightLegColor = BrickColor.new(B)
- elseif not v:IsA("Part") then
- v:Destroy()
- end
- if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
- v:Destroy()
- end
- if v:IsA("Part") then
- v.Transparency = 0.5
- v.TopSurface = "Smooth"
- v.BottomSurface = "Smooth"
- v.LeftSurface = "Smooth"
- v.RightSurface = "Smooth"
- Bl = "Really black"
- v.BrickColor = BrickColor.new(Bl)
- v.Anchored = true
- v.CanCollide = false
- end
- end
- for i,v in pairs (Clone1:GetChildren()) do
- if v:FindFirstChild("roblox") then
- v.roblox:Destroy()
- end
- if v:FindFirstChild("face") then
- v.face:Destroy()
- end
- if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
- v:Remove()
- end
- end
- wait(0.3)
- for i = 1,5 do
- for _,v in pairs(Clone1:GetChildren()) do
- if v:IsA("Part") then
- v.Transparency = 0.5+i/5
- wait()
- end
- end
- end
- Clone1:Destroy()
- end
- function ctlerp(c1,c2,al)
- local com1 = {c1:components()}
- local com2 = {c2:components()}
- for i,v in pairs(com1) do
- com1[i] = Lerp(v,com2[i],al)
- end
- return CF(unpack(com1))
- end
- do
- local function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- local function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- end
- --==/BASE/DEFAULT WELDS/==--
- rm = Instance.new("Weld", Torso)
- rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
- rm.C1 = CFrame.new(0, 0.5, 0)
- rm.Part0 = Torso
- rm.Part1 = ra
- lm = Instance.new("Weld", Torso)
- lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
- lm.C1 = CFrame.new(0, 0.5, 0)
- lm.Part0 = Torso
- lm.Part1 = la
- rlegm = Instance.new("Weld", Torso)
- rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
- rlegm.C1 = CFrame.new(0, 1, 0)
- rlegm.Part0 = Torso
- rlegm.Part1 = rl
- llegm = Instance.new("Weld", Torso)
- llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
- llegm.C1 = CFrame.new(0, 1, 0)
- llegm.Part0 = Torso
- llegm.Part1 = ll
- neck.C0 = CFrame.new(0,1,0)
- neck.C1 = CFrame.new(0,-0.5,0)
- --==/Mage's gauntlet/==--
- gauntlet = Instance.new("Model", Char)
- gauntParts = Instance.new("Model", gauntlet)
- local rrng = Instance.new("Part", gauntParts)
- rrng.Anchored = false
- rrng.CanCollide = false
- rrng.FormFactor = "Custom"
- rrng.TopSurface = "Smooth"
- rrng.BottomSurface = "Smooth"
- rrng.BrickColor = BrickColor.new("Really black")
- rrng.Transparency = 0
- local rrngM = Instance.new("FileMesh", rrng)
- rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
- local rrngW = Instance.new("Weld", rrng)
- rrngW.Part1 = rrng
- rrngW.Part0 = ra
- rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
- local rbg = Instance.new("Part", gauntParts)
- rbg.Anchored, rbg.CanCollide = false, false
- rbg.FormFactor = "Custom"
- rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
- rbg.Color = Color3.new(0/255,255/255,100/255)
- rbg.Transparency = 0
- local rbgM = Instance.new("SpecialMesh", rbg)
- rbgM.MeshType = "Cylinder"
- rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
- local rbgW = Instance.new("Weld", rbg)
- rbgW.Part1 = rbg
- rbgW.Part0 = rrng
- rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
- local chak = Instance.new("Part", gauntParts)
- chak.Anchored, chak.CanCollide = false, false
- chak.FormFactor = "Custom"
- chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
- chak.Color = Color3.new(255/154, 255/96, 255/255)
- chak.Transparency = 0
- local chakM = Instance.new("FileMesh", chak)
- chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
- chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
- local chakW = Instance.new("Motor", chak)
- chakW.DesiredAngle = 100000000000
- chakW.MaxVelocity = 0.1
- chakW.Part1 = chak
- chakW.Part0 = rrng
- chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
- --=/Spikes for Gauntlet [top]/=--
- local cone = Instance.new("Part", gauntParts)
- cone.Anchored, cone.CanCollide = false, false
- cone.FormFactor = "Custom"
- cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
- cone.Color = Color3.new(0/255,255/255,100/255)
- cone.Transparency = 0
- local coneM = Instance.new("FileMesh", cone)
- coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
- coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
- local coneW = Instance.new("Motor", cone)
- coneW.Part1 = cone
- coneW.Part0 = rrng
- coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
- local cone2 = Instance.new("Part", gauntParts)
- cone2.Anchored, cone2.CanCollide = false, false
- cone2.FormFactor = "Custom"
- cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
- cone2.Color = Color3.new(0/255,255/255,100/255)
- cone2.Transparency = 0
- local cone2M = Instance.new("FileMesh", cone2)
- cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
- cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
- local cone2W = Instance.new("Motor", cone2)
- cone2W.Part1 = cone2
- cone2W.Part0 = rrng
- cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
- local cone3 = Instance.new("Part", gauntParts)
- cone3.Anchored, cone3.CanCollide = false, false
- cone3.FormFactor = "Custom"
- cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
- cone3.Color = Color3.new(0/255,255/255,100/255)
- cone3.Transparency = 0
- local cone3M = Instance.new("FileMesh", cone3)
- cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
- cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
- local cone3W = Instance.new("Motor", cone3)
- cone3W.Part1 = cone3
- cone3W.Part0 = rrng
- cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
- --=/Spikes for Gauntlet [bottom]/=--
- local cone4 = Instance.new("Part", gauntParts)
- cone4.Anchored, cone4.CanCollide = false, false
- cone4.FormFactor = "Custom"
- cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
- cone4.Color = Color3.new(0/255,255/255,100/255)
- cone4.Transparency = 0
- local cone4M = Instance.new("FileMesh", cone4)
- cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
- cone4M.Scale = Vector3.new(0.1, 1, 0.06)
- local cone4W = Instance.new("Motor", cone4)
- cone4W.Part1 = cone4
- cone4W.Part0 = rrng
- cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
- local cone5 = Instance.new("Part", gauntParts)
- cone5.Anchored, cone5.CanCollide = false, false
- cone5.FormFactor = "Custom"
- cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
- cone5.Color = Color3.new(0/255,255/255,100/255)
- cone5.Transparency = 0
- local cone5M = Instance.new("FileMesh", cone5)
- cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
- cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
- local cone5W = Instance.new("Motor", cone5)
- cone5W.Part1 = cone5
- cone5W.Part0 = rrng
- cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
- local cone6 = Instance.new("Part", gauntParts)
- cone6.Anchored, cone6.CanCollide = false, false
- cone6.FormFactor = "Custom"
- cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
- cone6.Color = Color3.new(0/255,255/255,100/255)
- cone6.Transparency = 0
- local cone6M = Instance.new("FileMesh", cone6)
- cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
- cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
- local cone6W = Instance.new("Motor", cone6)
- cone6W.Part1 = cone6
- cone6W.Part0 = rrng
- cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
- --=/Armband/=--
- local armbnd = Instance.new("Part", gauntParts)
- armbnd.Anchored, armbnd.CanCollide = false, false
- armbnd.FormFactor = "Custom"
- armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
- armbnd.Color = Color3.new(0/255,255/255,100/255)
- armbnd.Transparency = 0
- armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
- local armbndW = Instance.new("Motor", armbnd)
- armbndW.Part1 = armbnd
- armbndW.Part0 = ra
- armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- local armbnd2 = Instance.new("Part", gauntParts)
- armbnd2.Anchored, armbnd2.CanCollide = false, false
- armbnd2.FormFactor = "Custom"
- armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
- armbnd2.Color = Color3.new(0/255,255/255,100/255)
- armbnd2.Transparency = 0
- armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
- local armbnd2W = Instance.new("Motor", armbnd2)
- armbnd2W.Part1 = armbnd2
- armbnd2W.Part0 = armbnd
- armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
- local armbnd3 = Instance.new("Part", gauntParts)
- armbnd3.Anchored, armbnd3.CanCollide = false, false
- armbnd3.FormFactor = "Custom"
- armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
- armbnd3.Color = Color3.new(0/255,255/255,100/255)
- armbnd3.Transparency = 0
- armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
- local armbnd3W = Instance.new("Motor", armbnd3)
- armbnd3W.Part1 = armbnd3
- armbnd3W.Part0 = armbnd
- armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
- --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
- --==/BASE VARIABLES/==--
- sine = 1
- angle = 0
- anglespeed = 1
- local anim = false
- local walking = false
- local sprinting = false
- local magix = false
- local debounce = false
- local magixball = false
- mouse.Button1Down:connect(function()
- magixball = true
- if debounce == false and magix == true then
- debounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.3)
- debounce = false
- end))
- local PorplBall = Instance.new("Part", Char)
- PorplBall.Archivable = true
- PorplBall.TopSurface = 10
- PorplBall.BottomSurface = 10
- PorplBall.CFrame = rrng.CFrame
- PorplBall.Anchored = false
- PorplBall.CanCollide = false
- PorplBall.Size = Vector3.new(1, 1, 1)
- PorplBall.BrickColor = BrickColor.new("Really black")
- PorplBall.Transparency = 0
- local PorplBallM = Instance.new("SpecialMesh", PorplBall)
- PorplBallM.MeshType = "Sphere"
- PorplBallM.Scale = Vector3.new(1, 1, 1)
- local function explode()
- wait()
- PorplBall:Destroy()
- end
- coroutine.resume(coroutine.create(function()
- for i = 1, 125 do wait(0.000000000000001)
- local pmagic = Instance.new("Part", PorplBall)
- pmagic.FormFactor = "Custom"
- pmagic.Anchored = true
- pmagic.CanCollide = false
- pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
- pmagic.TopSurface = 10
- pmagic.BottomSurface = 10
- pmagic.LeftSurface = 10
- pmagic.RightSurface = 10
- pmagic.FrontSurface = 10
- pmagic.BackSurface = 10
- pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
- pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
- local lt = Instance.new("PointLight", pmagic)
- lt.Brightness = 100
- lt.Range = 5
- lt.Color = Color3.new(0, 0, 65/100)
- local pmagicM = Instance.new("BlockMesh", pmagic)
- game:GetService("Debris"):AddItem(pmagic, 0.5)
- coroutine.wrap(function()
- for i = 1, 10 do
- pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
- pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
- wait()
- end
- end)()
- end
- end))
- local Velocity = Instance.new("BodyVelocity", PorplBall)
- Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
- Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
- local ready = false
- PorplBall.Touched:connect(function(part)
- if not part:IsDescendantOf(Char) and ready == false then
- ready = true
- local found = false
- for i,v in pairs (part.Parent:GetChildren()) do
- if v:IsA("Humanoid") or v == Torso or v == Head then
- found = true
- v.MaxHealth = v.MaxHealth - math.huge
- v.Health = v.Health - math.huge
- end
- end
- Velocity:Destroy()
- PorplBall.Anchored = true
- for i = 0, 1, 0.06 do
- local start = 1
- local stop = 7
- PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
- PorplBall.Transparency = i
- wait()
- end
- explode()
- end
- end)
- wait(6.5)
- explode()
- end
- end)
- coroutine.resume(coroutine.create(function()
- while wait(0.0000000001) do if magix == true then
- --[[ --==/Lightning Magic/==--
- lastCF = Torso.Position
- x1 = Instance.new("Part", workspace)
- x1.Size = Vector3.new(1, 1, 1)
- x1.CanCollide = false
- x1.Anchored = true
- x1.Transparency = 1
- spawn(function()
- while true do
- wait(-1)
- x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
- end
- end)
- for i = 1, math.huge do
- local dist2 = (lastCF-x1.Position).magnitude
- x2 = Instance.new("Part", workspace)
- x2.Size = Vector3.new(1, 1, 1)
- x2.Material = "Neon"
- x2.BrickColor = BrickColor.new("Really black")
- x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
- x2.CanCollide = false
- x2.Anchored = true
- local m = Instance.new("BlockMesh", x2)
- m.Scale = Vector3.new(0.5, 0.5, dist2)
- lastCF = x1.Position
- spawn(function()
- for i = 1, 100 do
- x = m.Scale.x/10
- y = m.Scale.x/10
- m.Scale = m.Scale-Vector3.new(x, y, 0)
- wait()
- end
- end)
- game.Debris:AddItem(x2, 0.35)
- wait()
- end
- x1:Destroy()
- ]]--
- --=/Right Arm Magic/=--
- local ramagic = Instance.new("Part", Char)
- ramagic.FormFactor = "Custom"
- ramagic.Anchored = true
- ramagic.CanCollide = false
- ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
- ramagic.TopSurface = 10
- ramagic.BottomSurface = 10
- ramagic.LeftSurface = 10
- ramagic.RightSurface = 10
- ramagic.FrontSurface=10
- ramagic.BackSurface=10
- ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
- ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
- local lt = Instance.new("PointLight", ramagic)
- lt.Brightness = 100
- lt.Range = 5
- lt.Color = Color3.new(0, 0, 65/100)
- local ramagicM = Instance.new("BlockMesh", ramagic)
- --=/Left Arm Magic/=--
- local lamagic = Instance.new("Part", Char)
- lamagic.FormFactor = "Custom"
- lamagic.Anchored = true
- lamagic.CanCollide = false
- lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
- lamagic.TopSurface = 10
- lamagic.BottomSurface = 10
- lamagic.LeftSurface = 10
- lamagic.RightSurface = 10
- lamagic.FrontSurface=10
- lamagic.BackSurface=10
- lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
- lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
- local lt2 = Instance.new("PointLight", lamagic)
- lt2.Brightness = 100
- lt2.Range = 6
- lt2.Color = Color3.new(0, 0, 65/100)
- local lamagicM = Instance.new("BlockMesh", lamagic)
- --[[optional
- --=/Right Leg Magic/=--
- local rlmagic = Instance.new("Part", Char)
- rlmagic.FormFactor = "Custom"
- rlmagic.Anchored = true
- rlmagic.CanCollide = false
- rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
- rlmagic.TopSurface = 10
- rlmagic.BottomSurface = 10
- rlmagic.LeftSurface = 10
- rlmagic.RightSurface = 10
- rlmagic.FrontSurface=10
- rlmagic.BackSurface=10
- rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
- rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
- local lt3 = Instance.new("PointLight", rlmagic)
- lt3.Brightness = 123123
- lt3.Range = 6
- lt3.Color = Color3.new(1, 0, 1)
- local rlmagicM = Instance.new("BlockMesh", rlmagic)
- --=/Left Leg Magic/=--
- local llmagic = Instance.new("Part", Char)
- llmagic.FormFactor = "Custom"
- llmagic.Anchored = true
- llmagic.CanCollide = false
- llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
- llmagic.TopSurface = 10
- llmagic.BottomSurface = 10
- llmagic.LeftSurface = 10
- llmagic.RightSurface = 10
- llmagic.FrontSurface=10
- llmagic.BackSurface=10
- llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
- llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
- local lt4 = Instance.new("PointLight", llmagic)
- lt4.Brightness = 123123
- lt4.Range = 6
- lt4.Color = Color3.new(1, 0, 1)
- local llmagicM = Instance.new("BlockMesh", llmagic)
- ]]
- game:GetService("Debris"):AddItem(lamagic, 0.85)
- game:GetService("Debris"):AddItem(ramagic, 0.85)
- --[[
- game:GetService("Debris"):AddItem(rlmagic, 0.85)
- game:GetService("Debris"):AddItem(llmagic, 0.85)
- ]]--
- coroutine.wrap(function()
- for i = 1, 10 do
- ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
- ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
- lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
- lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
- --[[
- rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
- rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
- llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
- llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
- ]]--
- wait()
- end
- end)()
- end
- end
- end))
- --[[local bodyg = Instance.new("BodyGyro", Torso)
- bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
- while true do game:GetService("RunService").RenderStepped:wait()
- bodyg.CFrame = Camera.CoordinateFrame
- end]]--
- mouse.KeyUp:connect(function(key)
- if key == "q" and sprinting == true then
- sprinting = false
- Humanoid.WalkSpeed = 20
- elseif key == "q" and sprinting == false then
- sprinting = true
- Humanoid.WalkSpeed = 120
- elseif key == "p" then
- if (load) then
- chatfunc("ENOUGH! IM RIDING THIS WORLD OF ABUSERS ONCE AND FOR ALL!")
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- load = false
- tors.Boom:Play();
- local eff3 = Instance.new("Part", tors.Parent)
- eff3.Size = Vector3.new(1, 1, 1)
- eff3.Transparency = 0
- eff3.Material = "Neon"
- eff3.Anchored = true
- eff3.CanCollide = false
- eff3.Shape = "Ball"
- eff3.CFrame = tors.CFrame
- for i = 1, 10 do
- eff3.Size = eff3.Size + Vector3.new(4, 4, 4)
- eff3.Transparency = eff3.Transparency + 0.1
- eff3.CFrame = tors.CFrame * CFrame.Angles(math.random(), math.random(), math.random())
- eff3.BrickColor = BrickColor.new("Royal purple")
- wait()
- end
- local e = Instance.new("Explosion");
- e.Hit:connect(boom);
- e.Position = tors.Position;
- e.BlastPressure = 0;
- e.Visible = false;
- e.DestroyJointRadiusPercent = 0;
- e.ExplosionType = "NoCraters";
- e.BlastRadius = 10000;
- e.Parent = game.Workspace;
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- load = true
- end
- end
- end)
- paly = owner
- p = owner
- char = paly.Character
- local symbolimg = "573917407"
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- local mouse = paly:GetMouse()
- local charge = false
- local energy = 100000
- vt = Vector3.new
- torso = char.Torso
- neck = char.Torso.Neck
- hum = char.Humanoid
- Player = game:GetService("Players").LocalPlayer
- local mouse = Player:GetMouse()
- Character = Player.Character
- tors = Character.Torso
- lleg = Character["Left Leg"]
- root = Character.HumanoidRootPart
- hed = Character.Head
- rleg = Character["Right Leg"]
- rarm = Character["Right Arm"]
- larm = Character["Left Arm"]
- local Effects = {}
- attack = false
- local attacking = false
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- matr = math.random
- local maincolor = ColorSequence.new(Color3.new(0/255,255/255,100/255))
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,TorsoColor)
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,10,0)
- bodyVelocity.P=1000
- bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- swait(5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
- local gui = it(GuiType)
- gui.Parent = parent
- gui.Text = text
- gui.BackgroundTransparency = backtrans
- gui.BackgroundColor3 = backcol
- gui.SizeConstraint = "RelativeXY"
- gui.TextXAlignment = "Center"
- gui.TextYAlignment = "Center"
- gui.Position = pos
- gui.Size = size
- gui.Font = "SourceSans"
- gui.FontSize = "Size14"
- gui.TextWrapped = false
- gui.TextStrokeTransparency = 0
- gui.TextColor = BrickColor.new("White")
- return gui
- end
- local tick1 = Instance.new("Sound",tors)
- tick1.SoundId = "rbxassetid://313108061"
- tick1.Volume = 2.5
- tick1.Looped = true
- tick1.Pitch = 0.85
- local tick2 = Instance.new("Sound",tors)
- tick2.SoundId = "rbxassetid://272207079"
- tick2.Volume = 2.5
- tick2.Looped = true
- tick2.Pitch = 0.85
- local orb = Instance.new("Part")
- orb.Parent = char
- orb.Size = Vector3.new(0.2, 0.2, 0.2)
- orb.Archivable = true
- orb.Transparency = 1
- orb.Material = "Neon"
- orb.CanCollide = false
- local weld1 = Instance.new("Weld")
- weld1.Parent = tors
- weld1.Part0 = tors
- weld1.Part1 = orb
- weld1.C1 = CFrame.new(0, 0.01, 0)
- local pt1 = NumberSequenceKeypoint.new(0,5,0)
- local pt1a = NumberSequenceKeypoint.new(0,1,0)
- local pt2a = NumberSequenceKeypoint.new(1,1,1)
- local pt2 = NumberSequenceKeypoint.new(1,0,0)
- local effecto = Instance.new("ParticleEmitter",orb)
- effecto.LightEmission = 1
- effecto.Texture = "rbxassetid://296874871"
- effecto.Color = maincolor
- effecto.Rate = 0
- effecto.Acceleration = Vector3.new(0,25,0)
- effecto.Transparency = NumberSequence.new({pt1a,pt2a})
- effecto.Lifetime = NumberRange.new(0.75)
- effecto.Size = NumberSequence.new({pt1,pt2})
- effecto.Speed = NumberRange.new(12.5)
- effecto.VelocitySpread = 100000000
- effecto.RotSpeed = NumberRange.new(-300,300)
- function Fireball()
- local touched = false
- local delay = false
- local spart = Instance.new("Part",char)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304448425"
- tick1.Volume = 1.5
- tick1.Pitch = 1.5
- tick1:Play()
- spart.Size = vt(1,1,1)
- spart.BrickColor = BrickColor.new("Deep orange")
- spart.Transparency = 1
- spart.CanCollide = false
- spart.Material = "Neon"
- spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
- local msh = Instance.new("SpecialMesh",spart)
- msh.MeshType = "Sphere"
- msh.Scale = vt(3,3,3)
- local pt1e = NumberSequenceKeypoint.new(0,5,0)
- local pt2e = NumberSequenceKeypoint.new(1,0,0)
- local effecto = Instance.new("ParticleEmitter",spart)
- effecto.Texture = "rbxassetid://296874871"
- effecto.LightEmission = 1
- effecto.Color = maincolor
- effecto.Rate = 10000
- effecto.Lifetime = NumberRange.new(0.5)
- effecto.Size = NumberSequence.new({pt1e,pt2e})
- effecto.Transparency = NumberSequence.new({pt1a,pt2a})
- effecto.Speed = NumberRange.new(0,0)
- effecto.RotSpeed = NumberRange.new(-500,500)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector * 100
- bv.Parent = spart
- wait(0.05)
- spart.Touched:connect(function(hit)
- if touched == false then
- touched = true
- if hit.Name == "Water" then
- local pt1er = NumberSequenceKeypoint.new(0,5,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local smokecolor = Color3.new(0.5,0.5,0.5)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://629468689"
- tick1.Volume = 1.5
- tick1.Pitch = 1
- tick1:Play()
- effecto.Rate = 0
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 0.75
- effectoz.Color = ColorSequence.new(smokecolor)
- effectoz.Lifetime = NumberRange.new(3)
- effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(10)
- effectoz.VelocitySpread = 25
- effectoz.Rate = 1000000000000
- spart.Anchored = true
- wait(1)
- effectoz.Rate = 0
- wait(2.5)
- spart:Destroy()
- end
- if hit.Name ~= "Water" then
- local saveposition = spart.CFrame
- spart.Anchored = true
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304529688"
- tick1.Volume = 1.5
- tick1.Pitch = 1.25
- tick1:Play()
- effecto:Destroy()
- local pt1er = NumberSequenceKeypoint.new(0,10,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 1
- effectoz.Color = maincolor
- effectoz.Lifetime = NumberRange.new(0.5)
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Speed = NumberRange.new(0,0)
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(75)
- effectoz.VelocitySpread = 10000000
- effectoz.Rate = 1000000000000
- spart.Size = vt(1,1,1)
- spart.Transparency = 1
- spart.CFrame = saveposition
- Damagefunc(hit,10,15,-20,"Normal",root,.2,1)
- wait(0.5)
- effectoz.Rate = 0
- for i = 0, 10 do
- spart.Size = spart.Size + vt(0.5,0.5,0.5)
- spart.CFrame = saveposition
- wait()
- end
- spart:Destroy()
- end
- end
- end)
- end
- function Firestorm()
- local shur = Instance.new("Part",char)
- local gahd = Instance.new("Sound",char)
- char.Humanoid.WalkSpeed = 0
- gahd.SoundId = "rbxassetid://313945165"
- gahd.Volume = 4.5
- gahd.Pitch = 0.595
- gahd:Play()
- shur.Transparency = 1
- shur.Material = "Neon"
- shur.BrickColor = bc("Dark green")
- shur.Anchored = true
- shur.CFrame = tors.CFrame + vt(0,-2.5,0)
- shur.Size = vt(1,0.2,1)
- shur.CanCollide = false
- local dec = Instance.new("Decal",shur)
- dec.Texture = symbolimg
- dec.Face = "Top"
- local dec2 = dec:Clone()
- dec2.Parent = shur
- dec2.Face = "Bottom"
- local Meshshur = Instance.new("CylinderMesh",shur)
- Meshshur.Scale = vt(0,1,0)
- for i = 0, 25 do
- shur.CFrame = tors.CFrame + vt(0,-2.95,0)
- Meshshur.Scale = Meshshur.Scale + vt(2.5,0,2.5)
- wait(0)
- end
- for i = 0, 10 do
- larm.Transparency = larm.Transparency + 0.1
- rarm.Transparency = rarm.Transparency + 0.1
- lleg.Transparency = lleg.Transparency + 0.1
- rleg.Transparency = rleg.Transparency + 0.1
- tors.Transparency = tors.Transparency + 0.1
- hed.Transparency = hed.Transparency + 0.1
- wait()
- end
- local pt1mass = NumberSequenceKeypoint.new(0,15,0)
- local effecton = Instance.new("ParticleEmitter",root)
- effecton.LightEmission = 1
- effecton.Texture = "rbxassetid://296874871"
- effecton.Color = maincolor
- effecton.Rate = 1000
- effecton.Lifetime = NumberRange.new(0.75)
- effecton.Size = NumberSequence.new({pt1mass,pt2})
- effecton.Speed = NumberRange.new(5)
- effecton.VelocitySpread = 100000000
- effecton.RotSpeed = NumberRange.new(-300,300)
- local ash = Instance.new("Sound",root)
- ash.SoundId = "rbxassetid://181004943"
- ash.Volume = 4
- ash.Pitch = 0.25
- ash:Play()
- local sbs = Instance.new("BodyPosition", root)
- sbs.P = 3000
- sbs.D = 1000
- sbs.maxForce = Vector3.new(500000, 500000000, 500000)
- sbs.position = root.CFrame.p + Vector3.new(0, 175, 0)
- wait(2.5)
- for i = 0, 25 do
- local touched = false
- local delay = false
- local spart = Instance.new("Part",char)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304448425"
- tick1.Volume = 1.5
- tick1.Pitch = 0.85
- tick1:Play()
- spart.Size = vt(2,2,2)
- spart.BrickColor = BrickColor.new("Deep orange")
- spart.Transparency = 1
- spart.CanCollide = false
- spart.Material = "Neon"
- spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
- local pt1e = NumberSequenceKeypoint.new(0,15,0)
- local pt2e = NumberSequenceKeypoint.new(1,0,0)
- local effecto = Instance.new("ParticleEmitter",spart)
- effecto.Texture = "rbxassetid://296874871"
- effecto.LightEmission = 1
- effecto.Color = maincolor
- effecto.Rate = 10000
- effecto.Lifetime = NumberRange.new(0.5)
- effecto.Size = NumberSequence.new({pt1e,pt2e})
- effecto.Transparency = NumberSequence.new({pt1a,pt2a})
- effecto.Speed = NumberRange.new(0,0)
- effecto.RotSpeed = NumberRange.new(-500,500)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector * 150
- bv.Parent = spart
- wait(0.05)
- spart.Touched:connect(function(hit)
- if touched == false then
- touched = true
- if hit.Name == "Water" then
- local pt1er = NumberSequenceKeypoint.new(0,15,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local smokecolor = Color3.new(0.5,0.5,0.5)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://629468689"
- tick1.Volume = 1.5
- tick1.Pitch = 1
- tick1:Play()
- effecto.Rate = 0
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 0.75
- effectoz.Color = ColorSequence.new(smokecolor)
- effectoz.Lifetime = NumberRange.new(3)
- effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(10)
- effectoz.VelocitySpread = 75
- effectoz.Rate = 1000000000000
- spart.Anchored = true
- wait(3)
- effectoz.Rate = 0
- wait(2.5)
- spart:Destroy()
- end
- if hit.Name ~= "Water" then
- local saveposition = spart.CFrame
- spart.Anchored = true
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304529688"
- tick1.Volume = 1.5
- tick1.Pitch = 0.85
- tick1:Play()
- local tickn = Instance.new("Sound",spart)
- tickn.SoundId = "rbxassetid://138186576"
- tickn.Volume = 1.5
- tickn.Pitch = 1
- tickn:Play()
- local tick2e = Instance.new("Sound",spart)
- tick2e.SoundId = "rbxassetid://272207079"
- tick2e.Volume = 2.5
- tick2e.Looped = true
- tick2e.Pitch = 0.85
- tick2e:Play()
- effecto:Destroy()
- local pt1er = NumberSequenceKeypoint.new(0,15,0)
- local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 1
- effectoz.Color = maincolor
- effectoz.Lifetime = NumberRange.new(2.5)
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Speed = NumberRange.new(0,0)
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(10)
- effectoz.VelocitySpread = 10000000
- effectoz.Rate = 1000000000000
- local effectoz2 = Instance.new("ParticleEmitter",spart)
- effectoz2.Texture = "rbxassetid://296874871"
- effectoz2.LightEmission = 1
- effectoz2.Color = maincolor
- effectoz2.Lifetime = NumberRange.new(0.5)
- effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
- effectoz2.Speed = NumberRange.new(0,0)
- effectoz2.Rotation = NumberRange.new(-300,300)
- effectoz2.RotSpeed = NumberRange.new(-500,500)
- effectoz2.Speed = NumberRange.new(250)
- effectoz2.VelocitySpread = 10000000
- effectoz2.Rate = 1000000000000
- spart.Size = vt(25,25,25)
- spart.Transparency = 1
- spart.CFrame = saveposition
- wait(0.5)
- Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
- effectoz2.Rate = 0
- wait(5)
- effectoz.Rate = 0
- tick2e:Stop()
- wait(2.5)
- spart:Destroy()
- end
- end
- end)
- wait(0.215)
- end
- wait(1)
- effecton.Rate = 0
- for i = 0, 10 do
- larm.Transparency = larm.Transparency - 0.1
- rarm.Transparency = rarm.Transparency - 0.1
- lleg.Transparency = lleg.Transparency - 0.1
- rleg.Transparency = rleg.Transparency - 0.1
- tors.Transparency = tors.Transparency - 0.1
- hed.Transparency = hed.Transparency - 0.1
- wait()
- end
- sbs:Destroy()
- char.Humanoid.WalkSpeed = 16
- for i = 0, 25 do
- shur.CFrame = tors.CFrame + vt(0,-2.95,0)
- Meshshur.Scale = Meshshur.Scale - vt(2.5,0,2.5)
- wait(0)
- end
- effecton:Destroy()
- shur:Destroy()
- end
- function SplashFire()
- local shur = Instance.new("Part",char)
- local gahd = Instance.new("Sound",char)
- char.Humanoid.WalkSpeed = 0
- gahd.SoundId = "rbxassetid://313945165"
- gahd.Volume = 2.5
- gahd.Pitch = 0.625
- gahd:Play()
- shur.Transparency = 1
- shur.Material = "Neon"
- shur.BrickColor = bc("Dark green")
- shur.Anchored = true
- shur.CFrame = tors.CFrame + vt(0,-2.5,0)
- shur.Size = vt(1,0.2,1)
- shur.CanCollide = false
- local dec = Instance.new("Decal",shur)
- dec.Texture = symbolimg
- dec.Face = "Top"
- local dec2 = dec:Clone()
- dec2.Parent = shur
- dec2.Face = "Bottom"
- local Meshshur = Instance.new("CylinderMesh",shur)
- Meshshur.Scale = vt(0,1,0)
- for i = 0, 25 do
- shur.CFrame = tors.CFrame + vt(0,-2.95,0)
- Meshshur.Scale = Meshshur.Scale + vt(1,0,1)
- wait(0)
- end
- for i = 0, 10 do
- larm.Transparency = larm.Transparency + 0.1
- rarm.Transparency = rarm.Transparency + 0.1
- lleg.Transparency = lleg.Transparency + 0.1
- rleg.Transparency = rleg.Transparency + 0.1
- tors.Transparency = tors.Transparency + 0.1
- hed.Transparency = hed.Transparency + 0.1
- wait()
- end
- local pt1mass = NumberSequenceKeypoint.new(0,15,0)
- local effecton = Instance.new("ParticleEmitter",root)
- effecton.LightEmission = 1
- effecton.Texture = "rbxassetid://296874871"
- effecton.Color = maincolor
- effecton.Rate = 1000
- effecton.Lifetime = NumberRange.new(0.75)
- effecton.Size = NumberSequence.new({pt1mass,pt2})
- effecton.Speed = NumberRange.new(5)
- effecton.VelocitySpread = 100000000
- effecton.RotSpeed = NumberRange.new(-300,300)
- local ash = Instance.new("Sound",root)
- ash.SoundId = "rbxassetid://181004943"
- ash.Volume = 4
- ash.Pitch = 0.5
- ash:Play()
- local sbs = Instance.new("BodyPosition", root)
- sbs.P = 3000
- sbs.D = 1000
- sbs.maxForce = Vector3.new(500000, 500000000, 500000)
- sbs.position = root.CFrame.p + Vector3.new(0, 200, 0)
- wait(1)
- sbs.position = root.CFrame.p - Vector3.new(0, 500, 0)
- wait(0.1)
- sbs:Destroy()
- wait(0.15)
- effecton.Rate = 0
- local spart = Instance.new("Part",char)
- spart.Size = vt(2,2,2)
- spart.BrickColor = BrickColor.new("Royal purple")
- spart.Transparency = 1
- spart.CanCollide = false
- spart.Material = "Neon"
- spart.Anchored = true
- spart.CFrame = root.CFrame + Vector3.new(0,0.1,0)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304529688"
- tick1.Volume = 1.5
- tick1.Pitch = 0.85
- tick1:Play()
- local tickn = Instance.new("Sound",spart)
- tickn.SoundId = "rbxassetid://138186576"
- tickn.Volume = 1.5
- tickn.Pitch = 1
- tickn:Play()
- local tick2e = Instance.new("Sound",spart)
- tick2e.SoundId = "rbxassetid://272207079"
- tick2e.Volume = 2.5
- tick2e.Looped = true
- tick2e.Pitch = 0.85
- tick2e:Play()
- local pt1er = NumberSequenceKeypoint.new(0,10,0)
- local pt1er2 = NumberSequenceKeypoint.new(0,20,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 1
- effectoz.Color = maincolor
- effectoz.Lifetime = NumberRange.new(2.5)
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Speed = NumberRange.new(0,0)
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(5)
- effectoz.VelocitySpread = 10000000
- effectoz.Rate = 1000000000000
- local effectoz2 = Instance.new("ParticleEmitter",spart)
- effectoz2.Texture = "rbxassetid://296874871"
- effectoz2.LightEmission = 1
- effectoz2.Color = maincolor
- effectoz2.Lifetime = NumberRange.new(0.5)
- effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
- effectoz2.Speed = NumberRange.new(0,0)
- effectoz2.Rotation = NumberRange.new(-300,300)
- effectoz2.RotSpeed = NumberRange.new(-500,500)
- effectoz2.Speed = NumberRange.new(100)
- effectoz2.VelocitySpread = 10000000
- effectoz2.Rate = 1000000000000
- spart.Size = vt(35,5,35)
- spart.Transparency = 1
- spart.CFrame = root.CFrame
- wait(0.5)
- spart.Touched:connect(function(hit)
- Damagefunc(hit,25,30,-20,"Normal",root,.2,1)
- end)
- ash:Destroy()
- effectoz2.Rate = 0
- wait(5)
- effecton:Destroy()
- effectoz.Rate = 0
- tick2e:Stop()
- wait(2.5)
- spart:Destroy()
- wait(1)
- for i = 0, 10 do
- larm.Transparency = larm.Transparency - 0.1
- rarm.Transparency = rarm.Transparency - 0.1
- lleg.Transparency = lleg.Transparency - 0.1
- rleg.Transparency = rleg.Transparency - 0.1
- tors.Transparency = tors.Transparency - 0.1
- hed.Transparency = hed.Transparency - 0.1
- wait()
- end
- sbs:Destroy()
- char.Humanoid.WalkSpeed = 16
- for i = 0, 25 do
- shur.CFrame = tors.CFrame + vt(0,-2.95,0)
- Meshshur.Scale = Meshshur.Scale - vt(1,0,1)
- wait(0)
- end
- shur:Destroy()
- end
- function MassiveFireBall()
- local shur = Instance.new("Part",char)
- local gahd = Instance.new("Sound",char)
- char.Humanoid.WalkSpeed = 0
- gahd.SoundId = "rbxassetid://313945165"
- gahd.Volume = 2.5
- gahd.Pitch = 0.6
- gahd:Play()
- shur.Transparency = 1
- shur.Material = "Neon"
- shur.BrickColor = bc("Dark green")
- shur.Anchored = true
- shur.CFrame = tors.CFrame + vt(0,-2.5,0)
- shur.Size = vt(1,0.2,1)
- shur.CanCollide = false
- local dec = Instance.new("Decal",shur)
- dec.Texture = symbolimg
- dec.Face = "Top"
- local dec2 = dec:Clone()
- dec2.Parent = shur
- dec2.Face = "Bottom"
- local Meshshur = Instance.new("CylinderMesh",shur)
- Meshshur.Scale = vt(0,1,0)
- for i = 0, 25 do
- shur.CFrame = tors.CFrame + vt(0,-2.95,0)
- Meshshur.Scale = Meshshur.Scale + vt(1.25,0,1.25)
- wait(0)
- end
- local touched = false
- local delay = false
- local spart = Instance.new("Part",char)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304448425"
- tick1.Volume = 1.5
- tick1.Pitch = 0.85
- tick1:Play()
- spart.Size = vt(2,2,2)
- spart.BrickColor = BrickColor.new("Royal purple")
- spart.Transparency = 1
- spart.CanCollide = false
- spart.Material = "Neon"
- spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
- local pt1e = NumberSequenceKeypoint.new(0,15,0)
- local pt2e = NumberSequenceKeypoint.new(1,0,0)
- local effecto = Instance.new("ParticleEmitter",spart)
- effecto.Texture = "rbxassetid://296874871"
- effecto.LightEmission = 1
- effecto.Color = maincolor
- effecto.Rate = 10000
- effecto.Lifetime = NumberRange.new(0.5)
- effecto.Size = NumberSequence.new({pt1e,pt2e})
- effecto.Transparency = NumberSequence.new({pt1a,pt2a})
- effecto.Speed = NumberRange.new(0,0)
- effecto.RotSpeed = NumberRange.new(-500,500)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector * 150
- bv.Parent = spart
- wait(0.05)
- spart.Touched:connect(function(hit)
- if touched == false then
- touched = true
- if hit.Name == "Water" then
- local pt1er = NumberSequenceKeypoint.new(0,15,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local smokecolor = Color3.new(0.5,0.5,0.5)
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://629468689"
- tick1.Volume = 1.5
- tick1.Pitch = 1
- tick1:Play()
- effecto.Rate = 0
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 0.75
- effectoz.Color = ColorSequence.new(smokecolor)
- effectoz.Lifetime = NumberRange.new(3)
- effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(10)
- effectoz.VelocitySpread = 75
- effectoz.Rate = 1000000000000
- spart.Anchored = true
- wait(3)
- effectoz.Rate = 0
- wait(2.5)
- spart:Destroy()
- end
- if hit.Name ~= "Water" then
- local saveposition = spart.CFrame
- spart.Anchored = true
- local tick1 = Instance.new("Sound",spart)
- tick1.SoundId = "rbxassetid://304529688"
- tick1.Volume = 1.5
- tick1.Pitch = 0.85
- tick1:Play()
- local tickn = Instance.new("Sound",spart)
- tickn.SoundId = "rbxassetid://138186576"
- tickn.Volume = 1.5
- tickn.Pitch = 1
- tickn:Play()
- local tick2e = Instance.new("Sound",spart)
- tick2e.SoundId = "rbxassetid://272207079"
- tick2e.Volume = 2.5
- tick2e.Looped = true
- tick2e.Pitch = 0.85
- tick2e:Play()
- effecto:Destroy()
- local pt1er = NumberSequenceKeypoint.new(0,15,0)
- local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
- local pt2er = NumberSequenceKeypoint.new(1,0,0)
- local effectoz = Instance.new("ParticleEmitter",spart)
- effectoz.Texture = "rbxassetid://296874871"
- effectoz.LightEmission = 1
- effectoz.Color = maincolor
- effectoz.Lifetime = NumberRange.new(2.5)
- effectoz.Size = NumberSequence.new({pt1er,pt2er})
- effectoz.Speed = NumberRange.new(0,0)
- effectoz.Rotation = NumberRange.new(-300,300)
- effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
- effectoz.RotSpeed = NumberRange.new(-500,500)
- effectoz.Speed = NumberRange.new(10)
- effectoz.VelocitySpread = 10000000
- effectoz.Rate = 1000000000000
- local effectoz2 = Instance.new("ParticleEmitter",spart)
- effectoz2.Texture = "rbxassetid://296874871"
- effectoz2.LightEmission = 1
- effectoz2.Color = maincolor
- effectoz2.Lifetime = NumberRange.new(0.5)
- effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
- effectoz2.Speed = NumberRange.new(0,0)
- effectoz2.Rotation = NumberRange.new(-300,300)
- effectoz2.RotSpeed = NumberRange.new(-500,500)
- effectoz2.Speed = NumberRange.new(250)
- effectoz2.VelocitySpread = 10000000
- effectoz2.Rate = 1000000000000
- spart.Size = vt(25,25,25)
- spart.Transparency = 1
- spart.CFrame = saveposition
- wait(0.5)
- Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
- effectoz2.Rate = 0
- wait(5)
- effectoz.Rate = 0
- tick2e:Stop()
- wait(2.5)
- spart:Destroy()
- end
- end
- end)
- char.Humanoid.WalkSpeed = 16
- wait(1)
- for i = 0, 25 do
- shur.CFrame = tors.CFrame + vt(0,-2.95,0)
- Meshshur.Scale = Meshshur.Scale - vt(1.25,0,1.25)
- wait(0)
- end
- shur:Destroy()
- end
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "z" and attacking == false then
- if energy >= 10 then
- energy = energy - 10
- attacking = true
- Fireball()
- attacking = false
- end
- end
- if k == "x" and attacking == false then
- if energy >= 50 then
- energy = energy - 50
- attacking = true
- MassiveFireBall()
- attacking = false
- end
- end
- if k == "c" and attacking == false then
- if energy >= 100 then
- energy = energy - 100
- attacking = true
- Firestorm()
- attacking = false
- end
- end
- if k == "v" and attacking == false then
- if energy >= 25 then
- energy = energy - 25
- attacking = true
- SplashFire()
- attacking = false
- end
- end
- if k == "b" and attacking == false then
- if charge == false then
- tick1:Resume()
- tick2:Resume()
- charge = true
- attacking = true
- if charge == true then
- effecto.Rate = 10000
- end
- end
- end
- end)
- mouse.KeyUp:connect(function(k)
- k = k:lower()
- if k == "b" then
- charge = false
- tick1:Pause()
- tick2:Pause()
- attacking = false
- effecto.Rate = 0
- end
- end)
- --==/GAMEPAD CONTROLS/==--
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.UserInputType == Enum.UserInputType.Gamepad1 then
- if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
- magix = true
- elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
- magix = false
- elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
- sprinting = true
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.UserInputType == Enum.UserInputType.Gamepad1 then
- if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
- sprinting = false
- end
- end
- end)
- game:GetService("RunService").Stepped:connect(function()
- angle = (angle % 100) + anglespeed/10
- rootpart.CanCollide = false
- local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
- if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
- animpose = "Jump"
- elseif speed < 2 then -- idle
- animpose = "Idle"
- elseif sprinting == true then -- sprinting
- animpose = "Sprinting"
- elseif speed > 2 and sprinting ~= true then -- walking
- walking = true
- animpose = "Moving"
- end
- --==/ANIMATION FUNCTIONS/==--
- if animpose == "Idle" and anim == false then -- idle
- anglespeed = 0.5
- rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
- lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
- rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
- llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
- neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1)
- rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1)
- elseif animpose == "Moving" and anim == false and walking == true then -- walk
- anglespeed = 0.5
- rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
- lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
- rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
- llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
- neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
- rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
- Humanoid.WalkSpeed = 6
- elseif animpose == "Sprinting" and anim == false then -- sprint
- anglespeed = 0.5
- rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
- lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
- rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
- llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
- neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
- rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
- Humanoid.WalkSpeed = 40
- end
- end)
- wait(1)
- ----------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------
- local Character = owner.Character
- -------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------
- local Color2 = 98/255, 37/255, 209/255
- local Num = 0.5
- local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
- local Size = 0.8
- local Rate = 300
- -------------------------------------------------------------------------------------
- local Player = owner
- local Character = Player.Character
- Torso = Character:WaitForChild'Torso'
- local Wing1 = Instance.new("Part",Character)
- Wing1.FormFactor = Enum.FormFactor.Custom
- Wing1.Size = Vector3.new(.2, .2, .2)
- Wing1.Name = "WIng_1"
- local fire = Instance.new("ParticleEmitter", Wing1)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(2)
- fire.Acceleration = Vector3.new(0, 2, 2)
- fire.RotSpeed = NumberRange.new(10)
- fire.Rate = Rate
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = true
- fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
- fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
- local Wing2 = Wing1:Clone()
- Wing2.Parent = Torso
- local x,y,z = 0,-1,-6
- Wld = function(a,b,cf)
- local Weld = Instance.new('Weld',a)
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C1 = cf
- return Weld
- end
- local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
- local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
- game:service'RunService'.Stepped:connect(function()
- --z = 6+math.sin(tick()*2)
- y = -1+math.sin(tick()*Num)*Num2
- Wing1.Fire.Acceleration = Vector3.new(x,y,z)
- Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
- end)
- ------------------------------------------------------------------------------------------------
- local Player = owner
- local Character = Player.Character
- Torso = Character:WaitForChild'Torso'
- local Wing1 = Instance.new("Part",Character)
- Wing1.FormFactor = Enum.FormFactor.Custom
- Wing1.Size = Vector3.new(.2, .2, .2)
- Wing1.Name = "WIng_1"
- local fire = Instance.new("ParticleEmitter", Wing1)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(2.5)
- fire.Acceleration = Vector3.new(0, 4, 4)
- fire.RotSpeed = NumberRange.new(10)
- fire.Rate = Rate
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = true
- fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
- fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
- local Wing2 = Wing1:Clone()
- Wing2.Parent = Torso
- local x,y,z = 0,-1,-6
- Wld = function(a,b,cf)
- local Weld = Instance.new('Weld',a)
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C1 = cf
- return Weld
- end
- local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
- local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
- print'Loaded'
- game:service'RunService'.Stepped:connect(function()
- --z = 6+math.sin(tick()*2)
- y = -1+math.sin(tick()*Num)*Num2
- Wing1.Fire.Acceleration = Vector3.new(x,y,z)
- Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
- end)
- ------------------------------------------------------------------------------------------------
- local Player = owner
- local Character = Player.Character
- Torso = Character:WaitForChild'Torso'
- local Wing1 = Instance.new("Part",Character)
- Wing1.FormFactor = Enum.FormFactor.Custom
- Wing1.Size = Vector3.new(.2, .2, .2)
- Wing1.Name = "WIng_1"
- local fire = Instance.new("ParticleEmitter", Wing1)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(2.8)
- fire.Acceleration = Vector3.new(0, 4, 4)
- fire.RotSpeed = NumberRange.new(10)
- fire.Rate = Rate
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = true
- fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
- fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
- local Wing2 = Wing1:Clone()
- Wing2.Parent = Torso
- local x,y,z = 0,-1,-6
- Wld = function(a,b,cf)
- local Weld = Instance.new('Weld',a)
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C1 = cf
- return Weld
- end
- local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
- local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
- print'Loaded'
- game:service'RunService'.Stepped:connect(function()
- --z = 6+math.sin(tick()*2)
- y = -1+math.sin(tick()*Num)*Num2
- Wing1.Fire.Acceleration = Vector3.new(x,y,z)
- Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
- end)
- ------------------------------------------------------------------------------------------------
- local Player = owner
- local Character = Player.Character
- Torso = Character:WaitForChild'Torso'
- local Wing1 = Instance.new("Part",Character)
- Wing1.FormFactor = Enum.FormFactor.Custom
- Wing1.Size = Vector3.new(.2, .2, .2)
- Wing1.Name = "WIng_1"
- local fire = Instance.new("ParticleEmitter", Wing1)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(3)
- fire.Acceleration = Vector3.new(0, 4, 4)
- fire.RotSpeed = NumberRange.new(10)
- fire.Rate = Rate
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = true
- fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
- fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
- local Wing2 = Wing1:Clone()
- Wing2.Parent = Torso
- local x,y,z = 0,-1,-6
- Wld = function(a,b,cf)
- local Weld = Instance.new('Weld',a)
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C1 = cf
- return Weld
- end
- local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
- local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
- print'Loaded'
- game:service'RunService'.Stepped:connect(function()
- --z = 6+math.sin(tick()*2)
- y = -1+math.sin(tick()*Num)*Num2
- Wing1.Fire.Acceleration = Vector3.new(x,y,z)
- Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
- end)
- ------------------------------------------------------------------------------------------------
- local Player = owner
- local Character = Player.Character
- Torso = Character:WaitForChild'Torso'
- local Wing1 = Instance.new("Part",Character)
- Wing1.FormFactor = Enum.FormFactor.Custom
- Wing1.Size = Vector3.new(.2, .2, .2)
- Wing1.Name = "WIng_1"
- local fire = Instance.new("ParticleEmitter", Wing1)
- fire.VelocitySpread = 0
- fire.Lifetime = NumberRange.new(3.1)
- fire.Acceleration = Vector3.new(0, 4, 4)
- fire.RotSpeed = NumberRange.new(10)
- fire.Rate = Rate
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 1
- fire.LockedToPart = true
- fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
- fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
- local Wing2 = Wing1:Clone()
- Wing2.Parent = Torso
- local x,y,z = 0,-1,-6
- Wld = function(a,b,cf)
- local Weld = Instance.new('Weld',a)
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C1 = cf
- return Weld
- end
- local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
- local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
- print'Loaded'
- game:service'RunService'.Stepped:connect(function()
- --z = 6+math.sin(tick()*2)
- y = -1+math.sin(tick()*Num)*Num2
- Wing1.Fire.Acceleration = Vector3.new(x,y,z)
- Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement