SHOW:
|
|
- or go back to the newest paste.
| 1 | - | print([[ |
| 1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
| 2 | - | ___________________________________ |
| 2 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 3 | - | |
| 3 | + | local Player,game,owner = owner,game |
| 4 | - | Kyutatsuki13's アマツミカ·スタライト script |
| 4 | + | local RealPlayer = Player |
| 5 | - | Build 0003 |
| 5 | + | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
|
| 6 | - | Amatsumika Starlight the Kami of Stars |
| 6 | + | |
| 7 | ||
| 8 | - | ___________________________________ |
| 8 | + | --//====================================================\\-- |
| 9 | - | ]]) |
| 9 | + | --|| CREATED BY SHACKLUSTER |
| 10 | --\\====================================================//-- | |
| 11 | - | function checkfriendlist(model) |
| 11 | + | |
| 12 | - | local friend = false |
| 12 | + | |
| 13 | - | local target = nil |
| 13 | + | |
| 14 | - | if model.ClassName == "Player" then |
| 14 | + | Player = game:GetService("Players").LocalPlayer
|
| 15 | - | target = model |
| 15 | + | PlayerGui = Player.PlayerGui |
| 16 | - | else |
| 16 | + | Cam = workspace.CurrentCamera |
| 17 | - | target = game:GetService("Players"):GetPlayerFromCharacter(model)
|
| 17 | + | Backpack = Player.Backpack |
| 18 | Character = Player.Character | |
| 19 | - | if target ~= nil then |
| 19 | + | Humanoid = Character.Humanoid |
| 20 | - | if target:IsFriendsWith(40229938) then friend = true end |
| 20 | + | Mouse = Player:GetMouse() |
| 21 | RootPart = Character["HumanoidRootPart"] | |
| 22 | - | return friend |
| 22 | + | Torso = Character["Torso"] |
| 23 | Head = Character["Head"] | |
| 24 | RightArm = Character["Right Arm"] | |
| 25 | - | if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Whitelist") then
|
| 25 | + | LeftArm = Character["Left Arm"] |
| 26 | - | warn("You're not whitelisted h0h but since i released it")
|
| 26 | + | RightLeg = Character["Right Leg"] |
| 27 | - | --wait(1) |
| 27 | + | LeftLeg = Character["Left Leg"] |
| 28 | - | --error("Script has been stopped.")
|
| 28 | + | RootJoint = RootPart["RootJoint"] |
| 29 | Neck = Torso["Neck"] | |
| 30 | RightShoulder = Torso["Right Shoulder"] | |
| 31 | - | warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
|
| 31 | + | LeftShoulder = Torso["Left Shoulder"] |
| 32 | RightHip = Torso["Right Hip"] | |
| 33 | - | local p = game:GetService("Players").LocalPlayer
|
| 33 | + | LeftHip = Torso["Left Hip"] |
| 34 | - | local plr = game:GetService("Players").LocalPlayer
|
| 34 | + | local sick = Instance.new("Sound",Character)
|
| 35 | - | local player = game:GetService("Players").LocalPlayer
|
| 35 | + | |
| 36 | - | local char = p.Character |
| 36 | + | IT = Instance.new |
| 37 | - | local mouse = p:GetMouse() |
| 37 | + | CF = CFrame.new |
| 38 | - | local larm = char:WaitForChild("Left Arm")
|
| 38 | + | VT = Vector3.new |
| 39 | - | local rarm = char:WaitForChild("Right Arm")
|
| 39 | + | RAD = math.rad |
| 40 | - | local lleg = char:WaitForChild("Left Leg")
|
| 40 | + | C3 = Color3.new |
| 41 | - | local rleg = char:WaitForChild("Right Leg")
|
| 41 | + | UD2 = UDim2.new |
| 42 | - | local hed = char:WaitForChild("Head")
|
| 42 | + | BRICKC = BrickColor.new |
| 43 | - | local torso = char:WaitForChild("Torso")
|
| 43 | + | ANGLES = CFrame.Angles |
| 44 | - | local root = char:WaitForChild("HumanoidRootPart")
|
| 44 | + | EULER = CFrame.fromEulerAnglesXYZ |
| 45 | - | local hum = char:FindFirstChildOfClass("Humanoid")
|
| 45 | + | COS = math.cos |
| 46 | - | local debris = game:GetService("Debris")
|
| 46 | + | ACOS = math.acos |
| 47 | - | local run = game:GetService("RunService")
|
| 47 | + | SIN = math.sin |
| 48 | - | local rs = run.RenderStepped |
| 48 | + | ASIN = math.asin |
| 49 | - | local cam = workspace.CurrentCamera |
| 49 | + | ABS = math.abs |
| 50 | - | local movement = 4 |
| 50 | + | MRANDOM = math.random |
| 51 | - | local change = 0.4 |
| 51 | + | FLOOR = math.floor |
| 52 | - | local DebrisModel = Instance.new("Model",char)
|
| 52 | + | |
| 53 | - | local stealth = false |
| 53 | + | --//=================================\\ |
| 54 | - | local debounce = false |
| 54 | + | --|| USEFUL VALUES |
| 55 | - | hum.MaxHealth = 50000 |
| 55 | + | --\\=================================// |
| 56 | - | hum.Health = hum.MaxHealth |
| 56 | + | |
| 57 | - | themeid = 556122490 |
| 57 | + | Animation_Speed = 3 |
| 58 | - | themepitch = 1 |
| 58 | + | local Walkspeed = 16 |
| 59 | - | main = {r = 0;g = 100;b = 255;v = 1}
|
| 59 | + | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
| 60 | - | if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
|
| 60 | + | local Speed = 16 |
| 61 | - | if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
|
| 61 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 62 | - | if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
|
| 62 | + | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 63 | - | if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
|
| 63 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
| 64 | - | if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
|
| 64 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
| 65 | - | if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
|
| 65 | + | local DAMAGEMULTIPLIER = 1 |
| 66 | - | pr = p:FindFirstChild("rcolor")
|
| 66 | + | local ANIM = "Idle" |
| 67 | - | pg = p:FindFirstChild("gcolor")
|
| 67 | + | local ATTACK = false |
| 68 | - | pb = p:FindFirstChild("bcolor")
|
| 68 | + | local EQUIPPED = false |
| 69 | - | pv = p:FindFirstChild("vcolor")
|
| 69 | + | local HOLD = false |
| 70 | - | idth = p:FindFirstChild("idtheme")
|
| 70 | + | local COMBO = 1 |
| 71 | - | pith = p:FindFirstChild("pitchtheme")
|
| 71 | + | local Rooted = false |
| 72 | - | main_color = Color3.fromRGB(main.r,main.g,main.b) |
| 72 | + | local SINE = 0 |
| 73 | - | explosionid = {262562442,144699494,539294959,1388740053}
|
| 73 | + | local KEYHOLD = false |
| 74 | - | --919941001 |
| 74 | + | local CHANGE = 2 / Animation_Speed |
| 75 | - | Prefix = "/" |
| 75 | + | local WALKINGANIM = false |
| 76 | - | p.Chatted:connect(function(msg) |
| 76 | + | local VALUE1 = false |
| 77 | local VALUE2 = false | |
| 78 | - | if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then |
| 78 | + | local ROBLOXIDLEANIMATION = IT("Animation")
|
| 79 | - | local v = tonumber(msg:sub(#Prefix+#'color r '+1)) |
| 79 | + | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
| 80 | - | main.r = v |
| 80 | + | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
| 81 | - | elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then |
| 81 | + | --ROBLOXIDLEANIMATION.Parent = Humanoid |
| 82 | - | local v = tonumber(msg:sub(#Prefix+#'color g '+1)) |
| 82 | + | local WEAPONGUI = IT("ScreenGui", PlayerGui)
|
| 83 | - | main.g = v |
| 83 | + | WEAPONGUI.Name = "Weapon GUI" |
| 84 | - | elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then |
| 84 | + | local Effects = IT("Folder", Character)
|
| 85 | - | local v = tonumber(msg:sub(#Prefix+#'color b '+1)) |
| 85 | + | Effects.Name = "Effects" |
| 86 | - | main.b = v |
| 86 | + | local ANIMATOR = Humanoid.Animator |
| 87 | - | elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then |
| 87 | + | local ANIMATE = Character.Animate |
| 88 | - | local v = tonumber(msg:sub(#Prefix+#'color v '+1)) |
| 88 | + | local UNANCHOR = true |
| 89 | - | if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end |
| 89 | + | local SHOCKSOUND = 1544280726 |
| 90 | local RINGSOUND = 340505360 | |
| 91 | - | elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then |
| 91 | + | local ULTHIT = 412831137 |
| 92 | - | local v = tonumber(msg:sub(#Prefix+#'theme '+1)) |
| 92 | + | |
| 93 | - | themeid = v |
| 93 | + | --//=================================\\ |
| 94 | - | music(themeid,themepitch) |
| 94 | + | --\\=================================// |
| 95 | ||
| 96 | - | elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then |
| 96 | + | |
| 97 | - | local v = tonumber(msg:sub(#Prefix+#'pitch '+1)) |
| 97 | + | --//=================================\\ |
| 98 | - | themepitch = v |
| 98 | + | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
| 99 | - | music(themeid,themepitch) |
| 99 | + | --\\=================================// |
| 100 | ||
| 101 | - | elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then |
| 101 | + | ArtificialHB = Instance.new("BindableEvent", script)
|
| 102 | - | local v = msg:sub(#Prefix+#'prefix '+1) |
| 102 | + | ArtificialHB.Name = "ArtificialHB" |
| 103 | - | Prefix = v |
| 103 | + | |
| 104 | script:WaitForChild("ArtificialHB")
| |
| 105 | - | elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then |
| 105 | + | |
| 106 | - | main.r = 0 |
| 106 | + | frame = Frame_Speed |
| 107 | - | main.g = 100 |
| 107 | + | tf = 0 |
| 108 | - | main.b = 255 |
| 108 | + | allowframeloss = false |
| 109 | - | main.v = 1 |
| 109 | + | tossremainder = false |
| 110 | - | themeid = 556122490 |
| 110 | + | lastframe = tick() |
| 111 | - | themepitch = 1 |
| 111 | + | script.ArtificialHB:Fire() |
| 112 | - | music(themeid,themepitch) |
| 112 | + | |
| 113 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 114 | tf = tf + s | |
| 115 | if tf >= frame then | |
| 116 | if allowframeloss then | |
| 117 | - | ---------------------------------------------------------------------------- |
| 117 | + | script.ArtificialHB:Fire() |
| 118 | - | no_anim = false |
| 118 | + | lastframe = tick() |
| 119 | - | attack = false |
| 119 | + | |
| 120 | - | attacking = false |
| 120 | + | for i = 1, math.floor(tf / frame) do |
| 121 | - | canjump = true |
| 121 | + | script.ArtificialHB:Fire() |
| 122 | - | aiming_anim = false |
| 122 | + | |
| 123 | - | animid = math.random(0,1) |
| 123 | + | lastframe = tick() |
| 124 | - | timer = 0 |
| 124 | + | |
| 125 | - | bg = Instance.new("BodyGyro",root)
|
| 125 | + | if tossremainder then |
| 126 | - | bg.P = 100000 |
| 126 | + | tf = 0 |
| 127 | - | bg.D = 100 |
| 127 | + | |
| 128 | - | ---------------------------------------------------------------------------- |
| 128 | + | tf = tf - frame * math.floor(tf / frame) |
| 129 | end | |
| 130 | - | function rswait(value) |
| 130 | + | |
| 131 | - | if value ~= nil and value ~= 0 then |
| 131 | + | |
| 132 | - | for i=1,value do |
| 132 | + | |
| 133 | - | rs:wait() |
| 133 | + | --//=================================\\ |
| 134 | --\\=================================// | |
| 135 | - | else |
| 135 | + | |
| 136 | - | rs:wait() |
| 136 | + | --//=================================\\ |
| 137 | - | end |
| 137 | + | --|| SOME FUNCTIONS |
| 138 | --\\=================================// | |
| 139 | ||
| 140 | - | ---------------------------------------------------------------------------- |
| 140 | + | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
| 141 | - | max = 0 |
| 141 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
| 142 | - | function music(id,pitch) |
| 142 | + | |
| 143 | - | max = 0 |
| 143 | + | |
| 144 | - | if id == "Stop" then |
| 144 | + | function PositiveAngle(NUMBER) |
| 145 | - | if not torso:FindFirstChild("MusicRuin") then
|
| 145 | + | if NUMBER >= 0 then |
| 146 | - | soundz = Instance.new("Sound",torso)
|
| 146 | + | NUMBER = 0 |
| 147 | end | |
| 148 | - | soundz:Stop() |
| 148 | + | return NUMBER |
| 149 | - | else |
| 149 | + | |
| 150 | - | if not torso:FindFirstChild("MusicRuin") then
|
| 150 | + | |
| 151 | - | soundz = Instance.new("Sound",torso)
|
| 151 | + | function NegativeAngle(NUMBER) |
| 152 | if NUMBER <= 0 then | |
| 153 | - | soundz.MaxDistance = 150*5 |
| 153 | + | NUMBER = 0 |
| 154 | - | soundz.EmitterSize = 150/5 |
| 154 | + | |
| 155 | - | soundz.Volume = 10 |
| 155 | + | return NUMBER |
| 156 | - | soundz.Name = "MusicRuin" |
| 156 | + | |
| 157 | - | soundz.Looped = true |
| 157 | + | |
| 158 | - | soundz.PlaybackSpeed = pitch |
| 158 | + | function Swait(NUMBER) |
| 159 | - | soundz.SoundId = "rbxassetid://"..id |
| 159 | + | if NUMBER == 0 or NUMBER == nil then |
| 160 | - | soundz:Stop() |
| 160 | + | ArtificialHB.Event:wait() |
| 161 | - | soundz:Play() |
| 161 | + | else |
| 162 | for i = 1, NUMBER do | |
| 163 | ArtificialHB.Event:wait() | |
| 164 | end | |
| 165 | - | ---------------------------------------------------------------------------- |
| 165 | + | |
| 166 | end | |
| 167 | - | function lerp(a, b, t) |
| 167 | + | |
| 168 | - | return a + (b - a)*t |
| 168 | + | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
| 169 | local NEWMESH = IT(MESH) | |
| 170 | if MESH == "SpecialMesh" then | |
| 171 | - | ---------------------------------------------------------------------------- |
| 171 | + | NEWMESH.MeshType = MESHTYPE |
| 172 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 173 | - | function Lerp(c1,c2,al) |
| 173 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
| 174 | - | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
|
| 174 | + | |
| 175 | - | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
|
| 175 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
| 176 | - | for i,v in pairs(com1) do |
| 176 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
| 177 | - | com1[i] = v+(com2[i]-v)*al |
| 177 | + | |
| 178 | - | end |
| 178 | + | |
| 179 | - | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) |
| 179 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
| 180 | NEWMESH.Scale = SCALE | |
| 181 | NEWMESH.Parent = PARENT | |
| 182 | - | ---------------------------------------------------------------------------- |
| 182 | + | return NEWMESH |
| 183 | end | |
| 184 | - | function slerp(a, b, t) |
| 184 | + | |
| 185 | - | dot = a:Dot(b) |
| 185 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
| 186 | - | if dot > 0.99999 or dot < -0.99999 then |
| 186 | + | local NEWPART = IT("Part")
|
| 187 | - | return t <= 0.5 and a or b |
| 187 | + | NEWPART.formFactor = FORMFACTOR |
| 188 | - | else |
| 188 | + | NEWPART.Reflectance = REFLECTANCE |
| 189 | - | r = math.acos(dot) |
| 189 | + | NEWPART.Transparency = TRANSPARENCY |
| 190 | - | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) |
| 190 | + | NEWPART.CanCollide = false |
| 191 | - | end |
| 191 | + | NEWPART.Locked = true |
| 192 | NEWPART.Anchored = true | |
| 193 | if ANCHOR == false then | |
| 194 | - | ---------------------------------------------------------------------------- |
| 194 | + | NEWPART.Anchored = false |
| 195 | end | |
| 196 | - | function clerp(c1,c2,al) |
| 196 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
| 197 | NEWPART.Name = NAME | |
| 198 | - | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
|
| 198 | + | NEWPART.Size = SIZE |
| 199 | NEWPART.Position = Torso.Position | |
| 200 | - | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
|
| 200 | + | NEWPART.Material = MATERIAL |
| 201 | NEWPART:BreakJoints() | |
| 202 | - | for i,v in pairs(com1) do |
| 202 | + | NEWPART.Parent = PARENT |
| 203 | return NEWPART | |
| 204 | - | com1[i] = lerp(v,com2[i],al) |
| 204 | + | |
| 205 | ||
| 206 | - | end |
| 206 | + | local function weldBetween(a, b) |
| 207 | local weldd = Instance.new("ManualWeld")
| |
| 208 | - | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) |
| 208 | + | weldd.Part0 = a |
| 209 | weldd.Part1 = b | |
| 210 | weldd.C0 = CFrame.new() | |
| 211 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 212 | - | ---------------------------------------------------------------------------- |
| 212 | + | weldd.Parent = a |
| 213 | return weldd | |
| 214 | - | function findAllNearestTorso(pos,dist) |
| 214 | + | |
| 215 | - | local list = game.Workspace:children() |
| 215 | + | |
| 216 | - | local torso = {}
|
| 216 | + | |
| 217 | - | local temp = nil |
| 217 | + | function QuaternionFromCFrame(cf) |
| 218 | - | local human = nil |
| 218 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
| 219 | - | local temp2 = nil |
| 219 | + | local trace = m00 + m11 + m22 |
| 220 | - | for x = 1, #list do |
| 220 | + | if trace > 0 then |
| 221 | - | temp2 = list[x] |
| 221 | + | local s = math.sqrt(1 + trace) |
| 222 | - | if (temp2.className == "Model") and (temp2 ~= char) then |
| 222 | + | local recip = 0.5 / s |
| 223 | - | local nayem = "Torso" |
| 223 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
| 224 | - | if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
|
| 224 | + | else |
| 225 | - | temp = temp2:findFirstChild(nayem) |
| 225 | + | local i = 0 |
| 226 | - | human = temp2:findFirstChildOfClass("Humanoid")
|
| 226 | + | if m11 > m00 then |
| 227 | - | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then |
| 227 | + | i = 1 |
| 228 | - | if (temp.Position - pos).magnitude < dist then |
| 228 | + | |
| 229 | - | table.insert(torso,temp) |
| 229 | + | if m22 > (i == 0 and m00 or m11) then |
| 230 | - | dist = (temp.Position - pos).magnitude |
| 230 | + | i = 2 |
| 231 | end | |
| 232 | if i == 0 then | |
| 233 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 234 | local recip = 0.5 / s | |
| 235 | - | return torso |
| 235 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
| 236 | elseif i == 1 then | |
| 237 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 238 | - | ---------------------------------------------------------------------------- |
| 238 | + | local recip = 0.5 / s |
| 239 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 240 | - | local isAPlayer |
| 240 | + | elseif i == 2 then |
| 241 | - | function checkIfNotPlayer(model) |
| 241 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
| 242 | - | coroutine.resume(coroutine.create(function() |
| 242 | + | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
| 243 | - | if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then |
| 243 | + | |
| 244 | - | isAPlayer = true |
| 244 | + | |
| 245 | - | else |
| 245 | + | |
| 246 | - | isAPlayer = false |
| 246 | + | |
| 247 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 248 | - | end)) |
| 248 | + | local xs, ys, zs = x + x, y + y, z + z |
| 249 | - | return isAPlayer |
| 249 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
| 250 | local xx = x * xs | |
| 251 | local xy = x * ys | |
| 252 | - | ---------------------------------------------------------------------------- |
| 252 | + | local xz = x * zs |
| 253 | local yy = y * ys | |
| 254 | - | function computeDirection(vec) |
| 254 | + | local yz = y * zs |
| 255 | - | local lenSquared = vec.magnitude * vec.magnitude |
| 255 | + | local zz = z * zs |
| 256 | - | local invSqrt = 1 / math.sqrt(lenSquared) |
| 256 | + | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
| 257 | - | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) |
| 257 | + | |
| 258 | ||
| 259 | function QuaternionSlerp(a, b, t) | |
| 260 | - | ---------------------------------------------------------------------------- |
| 260 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
| 261 | local startInterp, finishInterp; | |
| 262 | - | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) |
| 262 | + | if cosTheta >= 0.0001 then |
| 263 | if (1 - cosTheta) > 0.0001 then | |
| 264 | - | local wld = Instance.new("Weld", wp1)
|
| 264 | + | local theta = ACOS(cosTheta) |
| 265 | local invSinTheta = 1 / SIN(theta) | |
| 266 | - | wld.Part0 = wp0 |
| 266 | + | startInterp = SIN((1 - t) * theta) * invSinTheta |
| 267 | finishInterp = SIN(t * theta) * invSinTheta | |
| 268 | - | wld.Part1 = wp1 |
| 268 | + | |
| 269 | startInterp = 1 - t | |
| 270 | - | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) |
| 270 | + | finishInterp = t |
| 271 | end | |
| 272 | - | return wld |
| 272 | + | else |
| 273 | if (1 + cosTheta) > 0.0001 then | |
| 274 | local theta = ACOS(-cosTheta) | |
| 275 | local invSinTheta = 1 / SIN(theta) | |
| 276 | - | ---------------------------------------------------------------------------- |
| 276 | + | startInterp = SIN((t - 1) * theta) * invSinTheta |
| 277 | finishInterp = SIN(t * theta) * invSinTheta | |
| 278 | - | function weld(model) |
| 278 | + | |
| 279 | - | local parts,last = {}
|
| 279 | + | startInterp = t - 1 |
| 280 | - | local function scan(parent) |
| 280 | + | finishInterp = t |
| 281 | - | for _,v in pairs(parent:GetChildren()) do |
| 281 | + | |
| 282 | - | if (v:IsA("BasePart")) then
|
| 282 | + | |
| 283 | - | if (last) then |
| 283 | + | 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 |
| 284 | - | local w = Instance.new("Weld")
|
| 284 | + | |
| 285 | - | w.Name = ("%s_Weld"):format(v.Name)
|
| 285 | + | |
| 286 | - | w.Part0,w.Part1 = last,v |
| 286 | + | function Clerp(a, b, t) |
| 287 | - | w.C0 = last.CFrame:inverse() |
| 287 | + | local qa = {QuaternionFromCFrame(a)}
|
| 288 | - | w.C1 = v.CFrame:inverse() |
| 288 | + | local qb = {QuaternionFromCFrame(b)}
|
| 289 | - | w.Parent = last |
| 289 | + | local ax, ay, az = a.x, a.y, a.z |
| 290 | - | end |
| 290 | + | local bx, by, bz = b.x, b.y, b.z |
| 291 | - | last = v |
| 291 | + | local _t = 1 - t |
| 292 | - | table.insert(parts,v) |
| 292 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
| 293 | - | end |
| 293 | + | |
| 294 | - | scan(v) |
| 294 | + | |
| 295 | - | end |
| 295 | + | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
| 296 | - | end |
| 296 | + | local frame = IT("Frame")
|
| 297 | - | scan(model) |
| 297 | + | frame.BackgroundTransparency = TRANSPARENCY |
| 298 | - | for _,v in pairs(parts) do |
| 298 | + | frame.BorderSizePixel = BORDERSIZEPIXEL |
| 299 | - | v.Anchored = false |
| 299 | + | frame.Position = POSITION |
| 300 | - | v.Locked = true |
| 300 | + | frame.Size = SIZE |
| 301 | - | end |
| 301 | + | frame.BackgroundColor3 = COLOR |
| 302 | frame.BorderColor3 = BORDERCOLOR | |
| 303 | frame.Name = NAME | |
| 304 | - | ---------------------------------------------------------------------------- |
| 304 | + | frame.Parent = PARENT |
| 305 | return frame | |
| 306 | - | function sound(id,position,vol,pitch,dist,start,finish) |
| 306 | + | |
| 307 | - | coroutine.resume(coroutine.create(function() |
| 307 | + | |
| 308 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 309 | - | local part = Instance.new("Part",DebrisModel)
|
| 309 | + | local label = IT("TextLabel")
|
| 310 | - | part.Anchored = true |
| 310 | + | label.BackgroundTransparency = 1 |
| 311 | - | part.Position = position |
| 311 | + | label.Size = UD2(1, 0, 1, 0) |
| 312 | - | part.Size = Vector3.new(0,0,0) |
| 312 | + | label.Position = UD2(0, 0, 0, 0) |
| 313 | - | part.CanCollide = false |
| 313 | + | label.TextColor3 = TEXTCOLOR |
| 314 | - | part.Transparency = 1 |
| 314 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
| 315 | label.TextTransparency = TRANSPARENCY | |
| 316 | - | soundasd = Instance.new("Sound",part)
|
| 316 | + | label.FontSize = TEXTFONTSIZE |
| 317 | - | |
| 317 | + | label.Font = TEXTFONT |
| 318 | - | soundasd.SoundId = "rbxassetid://"..id |
| 318 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
| 319 | - | |
| 319 | + | label.TextScaled = false |
| 320 | - | if vol ~= nil then |
| 320 | + | label.Text = TEXT |
| 321 | - | soundasd.Volume = vol |
| 321 | + | label.Name = NAME |
| 322 | - | end |
| 322 | + | label.Parent = PARENT |
| 323 | return label | |
| 324 | - | if pitch ~= nil then |
| 324 | + | |
| 325 | - | soundasd.PlaybackSpeed = pitch |
| 325 | + | |
| 326 | - | end |
| 326 | + | function NoOutlines(PART) |
| 327 | - | |
| 327 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
| 328 | - | if dist ~= nil then |
| 328 | + | |
| 329 | - | soundasd.MaxDistance = dist*5 |
| 329 | + | |
| 330 | - | soundasd.EmitterSize = dist/5 |
| 330 | + | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
| 331 | - | end |
| 331 | + | local NEWWELD = IT(TYPE) |
| 332 | NEWWELD.Part0 = PART0 | |
| 333 | - | delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end) |
| 333 | + | NEWWELD.Part1 = PART1 |
| 334 | - | |
| 334 | + | NEWWELD.C0 = C0 |
| 335 | - | soundasd:Play() |
| 335 | + | NEWWELD.C1 = C1 |
| 336 | - | |
| 336 | + | NEWWELD.Parent = PARENT |
| 337 | - | end)) |
| 337 | + | return NEWWELD |
| 338 | - | return soundasd |
| 338 | + | |
| 339 | ||
| 340 | local S = IT("Sound")
| |
| 341 | - | function createsound(id,parent) |
| 341 | + | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
| 342 | local NEWSOUND = nil | |
| 343 | - | local soundz = Instance.new("Sound",parent)
|
| 343 | + | coroutine.resume(coroutine.create(function() |
| 344 | NEWSOUND = S:Clone() | |
| 345 | - | soundz.SoundId = "rbxassetid://"..id |
| 345 | + | NEWSOUND.Parent = PARENT |
| 346 | NEWSOUND.Volume = VOLUME | |
| 347 | - | return soundz |
| 347 | + | NEWSOUND.Pitch = PITCH |
| 348 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 349 | NEWSOUND:play() | |
| 350 | if DOESLOOP == true then | |
| 351 | - | function playsound(sond,vol,pitch,start) |
| 351 | + | NEWSOUND.Looped = true |
| 352 | - | |
| 352 | + | |
| 353 | - | if vol ~= nil then |
| 353 | + | repeat wait(1) until NEWSOUND.Playing == false |
| 354 | - | sond.Volume = vol |
| 354 | + | NEWSOUND:remove() |
| 355 | - | end |
| 355 | + | |
| 356 | end)) | |
| 357 | - | if pitch ~= nil then |
| 357 | + | return NEWSOUND |
| 358 | - | sond.PlaybackSpeed = pitch |
| 358 | + | |
| 359 | - | end |
| 359 | + | |
| 360 | function CFrameFromTopBack(at, top, back) | |
| 361 | - | if start ~= nil then |
| 361 | + | local right = top:Cross(back) |
| 362 | - | sond.TimePosition = start |
| 362 | + | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
| 363 | - | end |
| 363 | + | |
| 364 | ||
| 365 | - | sond:Play() |
| 365 | + | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 366 | - | |
| 366 | + | function WACKYEFFECT(Table) |
| 367 | local TYPE = (Table.EffectType or "Sphere") | |
| 368 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 369 | - | ---------------------------------------------------------------------------- |
| 369 | + | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
| 370 | - | eColors={"Really red","Really black"}
|
| 370 | + | local TRANSPARENCY = (Table.Transparency or 0) |
| 371 | - | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) |
| 371 | + | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
| 372 | - | local magz = (Part0 - Part1).magnitude |
| 372 | + | local CFRAME = (Table.CFrame or Torso.CFrame) |
| 373 | - | local curpos = Part0 |
| 373 | + | local MOVEDIRECTION = (Table.MoveToPos or nil) |
| 374 | - | local trz = {-Offset,Offset}
|
| 374 | + | local ROTATION1 = (Table.RotationX or 0) |
| 375 | - | for i=1,Times do |
| 375 | + | local ROTATION2 = (Table.RotationY or 0) |
| 376 | - | local li = Instance.new("Part", DebrisModel)
|
| 376 | + | local ROTATION3 = (Table.RotationZ or 0) |
| 377 | - | li.TopSurface =0 |
| 377 | + | local MATERIAL = (Table.Material or "Neon") |
| 378 | - | li.Material = Enum.Material.Neon |
| 378 | + | local COLOR = (Table.Color or C3(1,1,1)) |
| 379 | - | li.BottomSurface = 0 |
| 379 | + | local TIME = (Table.Time or 45) |
| 380 | - | li.Anchored = true |
| 380 | + | local SOUNDID = (Table.SoundID or nil) |
| 381 | - | li.Locked = true |
| 381 | + | local SOUNDPITCH = (Table.SoundPitch or nil) |
| 382 | - | li.Transparency = Trans or 0.4 |
| 382 | + | local SOUNDVOLUME = (Table.SoundVolume or nil) |
| 383 | - | li.BrickColor = BrickColor.new(Color) |
| 383 | + | coroutine.resume(coroutine.create(function() |
| 384 | - | li.formFactor = "Custom" |
| 384 | + | local PLAYSSOUND = false |
| 385 | - | li.CanCollide = false |
| 385 | + | local SOUND = nil |
| 386 | - | li.Size = Vector3.new(Thickness,Thickness,magz/Times) |
| 386 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
|
| 387 | - | local lim = Instance.new("BlockMesh",li)
|
| 387 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
| 388 | - | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) |
| 388 | + | PLAYSSOUND = true |
| 389 | - | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet |
| 389 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
| 390 | - | if Times == i then |
| 390 | + | |
| 391 | - | local magz2 = (curpos - Part1).magnitude |
| 391 | + | EFFECT.Color = COLOR |
| 392 | - | li.Size = Vector3.new(Thickness,Thickness,magz2) |
| 392 | + | local MSH = nil |
| 393 | - | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) |
| 393 | + | if TYPE == "Sphere" then |
| 394 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 395 | - | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) |
| 395 | + | elseif TYPE == "Block" then |
| 396 | MSH = IT("BlockMesh",EFFECT)
| |
| 397 | - | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p |
| 397 | + | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
| 398 | - | li.Name = "LIGHTNING" |
| 398 | + | elseif TYPE == "Wave" then |
| 399 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 400 | elseif TYPE == "Ring" then | |
| 401 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 402 | - | ---------------------------------------------------------------------------- |
| 402 | + | elseif TYPE == "Slash" then |
| 403 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 404 | - | local HBill = Instance.new("BillboardGui",hed)
|
| 404 | + | elseif TYPE == "Round Slash" then |
| 405 | - | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
|
| 405 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
|
| 406 | - | local HName = Instance.new("TextLabel")
|
| 406 | + | elseif TYPE == "Swirl" then |
| 407 | - | HBill.Size = UDim2.new(15,0,2.2,0) |
| 407 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
|
| 408 | - | HBill.StudsOffset = Vector3.new(3.675,1.2,0) |
| 408 | + | elseif TYPE == "Skull" then |
| 409 | - | HBill.AlwaysOnTop = true |
| 409 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
|
| 410 | - | HBill.Enabled = true |
| 410 | + | elseif TYPE == "Crystal" then |
| 411 | - | HMain.BackgroundColor3 = Color3.new(0, 0, 0) |
| 411 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
|
| 412 | - | HMain.BackgroundTransparency = 1 |
| 412 | + | elseif TYPE == "Cloud" then |
| 413 | - | HMain.Size = UDim2.new(.5,0,.2,0) |
| 413 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
|
| 414 | - | HName.Parent = HMain |
| 414 | + | |
| 415 | - | HName.BackgroundTransparency = 1 |
| 415 | + | if MSH ~= nil then |
| 416 | - | HName.BackgroundColor3 = Color3.new(255,255,255) |
| 416 | + | local MOVESPEED = nil |
| 417 | - | HName.BorderColor3 = Color3.new(0,0,0) |
| 417 | + | if MOVEDIRECTION ~= nil then |
| 418 | - | HName.BorderSizePixel = 2 |
| 418 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
| 419 | - | HName.Size = UDim2.new(1,0,.75,0) |
| 419 | + | |
| 420 | - | HName.Font = "Code" |
| 420 | + | local GROWTH = SIZE - ENDSIZE |
| 421 | - | HName.Text = [[(Amatsumika Starlight)]] |
| 421 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
| 422 | - | HName.TextScaled = true |
| 422 | + | if TYPE == "Block" then |
| 423 | - | HName.TextColor3 = Color3.new(0.5,0.5,0.5) |
| 423 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
| 424 | - | HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1) |
| 424 | + | else |
| 425 | - | HName.TextStrokeTransparency = 0 |
| 425 | + | EFFECT.CFrame = CFRAME |
| 426 | - | HName.TextYAlignment = "Bottom" |
| 426 | + | |
| 427 | for LOOP = 1, TIME+1 do | |
| 428 | - | local HBill = Instance.new("BillboardGui",hed)
|
| 428 | + | Swait() |
| 429 | - | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
|
| 429 | + | MSH.Scale = MSH.Scale - GROWTH/TIME |
| 430 | - | local HName = Instance.new("TextLabel")
|
| 430 | + | if TYPE == "Wave" then |
| 431 | - | HBill.Size = UDim2.new(15,0,2.2,0) |
| 431 | + | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
| 432 | - | HBill.StudsOffset = Vector3.new(3.675,2,0) |
| 432 | + | |
| 433 | - | HBill.AlwaysOnTop = true |
| 433 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
| 434 | - | HBill.Enabled = true |
| 434 | + | if TYPE == "Block" then |
| 435 | - | HMain.BackgroundColor3 = Color3.new(0, 0, 0) |
| 435 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
| 436 | - | HMain.BackgroundTransparency = 1 |
| 436 | + | else |
| 437 | - | HMain.Size = UDim2.new(.5,0,.5,0) |
| 437 | + | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
| 438 | - | HName.Parent = HMain |
| 438 | + | |
| 439 | - | HName.BackgroundTransparency = 1 |
| 439 | + | if MOVEDIRECTION ~= nil then |
| 440 | - | HName.BackgroundColor3 = Color3.new(255,255,255) |
| 440 | + | local ORI = EFFECT.Orientation |
| 441 | - | HName.BorderColor3 = Color3.new(0,0,0) |
| 441 | + | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
| 442 | - | HName.BorderSizePixel = 2 |
| 442 | + | EFFECT.Orientation = ORI |
| 443 | - | HName.Size = UDim2.new(1,0,.75,0) |
| 443 | + | |
| 444 | - | HName.Font = "Code" |
| 444 | + | |
| 445 | - | HName.Text = [[「アマツミカ·スタライト」]] |
| 445 | + | if PLAYSSOUND == false then |
| 446 | - | HName.TextScaled = true |
| 446 | + | EFFECT:remove() |
| 447 | - | HName.TextColor3 = Color3.new(0,0,0) |
| 447 | + | else |
| 448 | - | HName.TextStrokeColor3 = Color3.new(255,255,255) |
| 448 | + | repeat Swait() until SOUND.Playing == false |
| 449 | - | HName.TextStrokeTransparency = 0 |
| 449 | + | EFFECT:remove() |
| 450 | - | HName.TextYAlignment = "Bottom" |
| 450 | + | |
| 451 | else | |
| 452 | - | function bigboomrektxd() |
| 452 | + | if PLAYSSOUND == false then |
| 453 | - | coroutine.resume(coroutine.create(function() |
| 453 | + | EFFECT:remove() |
| 454 | - | local magnitude = nil |
| 454 | + | else |
| 455 | - | local Position = nil |
| 455 | + | repeat Swait() until SOUND.Playing == false |
| 456 | - | if animid == 0 then |
| 456 | + | EFFECT:remove() |
| 457 | - | Position = larm.Position |
| 457 | + | |
| 458 | - | else |
| 458 | + | |
| 459 | - | Position = rarm.Position |
| 459 | + | end)) |
| 460 | end | |
| 461 | - | --sound(743499393,Position,10,math.random(6,8)/10) |
| 461 | + | |
| 462 | - | sound(440145223,Position,10,math.random(10,12)/10,50) |
| 462 | + | function MakeForm(PART,TYPE) |
| 463 | if TYPE == "Cyl" then | |
| 464 | - | local Part1 = Instance.new("Part")
|
| 464 | + | local MSH = IT("CylinderMesh",PART)
|
| 465 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 465 | + | elseif TYPE == "Ball" then |
| 466 | - | mesh2.MeshId = "rbxassetid://559831844" |
| 466 | + | local MSH = IT("SpecialMesh",PART)
|
| 467 | - | mesh2.Scale = Vector3.new(0,0,0.4) |
| 467 | + | MSH.MeshType = "Sphere" |
| 468 | - | Part1.Material = Enum.Material.Neon |
| 468 | + | elseif TYPE == "Wedge" then |
| 469 | - | Part1.CanCollide = false |
| 469 | + | local MSH = IT("SpecialMesh",PART)
|
| 470 | - | Part1.Color = Color3.fromHSV(0,0,main.v) |
| 470 | + | MSH.MeshType = "Wedge" |
| 471 | - | Part1.Parent = DebrisModel |
| 471 | + | |
| 472 | - | Part1.Size = Vector3.new(0,0,0) |
| 472 | + | |
| 473 | - | Part1.Anchored = true |
| 473 | + | |
| 474 | - | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) |
| 474 | + | Debris = game:GetService("Debris")
|
| 475 | - | Part1.Name = "EXPLOSION2" |
| 475 | + | |
| 476 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 477 | - | local Part0 = Instance.new("Part",DebrisModel)
|
| 477 | + | local DIRECTION = CF(StartPos,EndPos).lookVector |
| 478 | - | local PointLight2 = Instance.new("PointLight")
|
| 478 | + | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
| 479 | - | Part0.Name = "Bullet" |
| 479 | + | |
| 480 | - | Part0.Material = Enum.Material.Neon |
| 480 | + | |
| 481 | - | Part0.Color = Color3.fromHSV(0,0,main.v) |
| 481 | + | function turnto(position) |
| 482 | - | Part0.Anchored = false |
| 482 | + | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
| 483 | - | Part0.Size = Vector3.new(5, 5, 5) |
| 483 | + | |
| 484 | - | local mesh = Instance.new("SpecialMesh",Part0)
|
| 484 | + | |
| 485 | - | mesh.MeshType = Enum.MeshType.Sphere |
| 485 | + | --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
|
| 486 | - | local bforce = Instance.new("BodyForce",Part0)
|
| 486 | + | function Lightning(Table) |
| 487 | - | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) |
| 487 | + | local Color = Table.Color or C3(1,1,1) |
| 488 | - | Part0.CanCollide = false |
| 488 | + | local StartPos = Table.Start or Torso.Position |
| 489 | - | PointLight2.Parent = Part0 |
| 489 | + | local EndPos = Table.End or Mouse.Hit.p |
| 490 | - | PointLight2.Color = Part0.Color |
| 490 | + | local SegmentLength = Table.SegmentL or 2 |
| 491 | - | local Target = mouse.Hit.p |
| 491 | + | local Thickness = Table.Thickness or 0.1 |
| 492 | - | local direction = Target - Position |
| 492 | + | local Dissapear = Table.DoesFade or false |
| 493 | - | local direction = computeDirection(direction) |
| 493 | + | local Parent = Table.Ignore or Character |
| 494 | - | local pos = Position + (direction * 2) |
| 494 | + | local MaxDist = Table.MaxDist or 400 |
| 495 | - | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) |
| 495 | + | local Branches = Table.Branches or false |
| 496 | - | Part0.Velocity = direction * 60 |
| 496 | + | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) |
| 497 | - | local asd = nil |
| 497 | + | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) |
| 498 | - | local loop = nil |
| 498 | + | local LIGHTNINGMODEL = IT("Model",Effects)
|
| 499 | - | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) |
| 499 | + | LIGHTNINGMODEL.Name = "Lightning" |
| 500 | - | loop = rs:connect(function() |
| 500 | + | local LastBolt = nil |
| 501 | - | local asdf = math.random(500,1000)/1000 |
| 501 | + | for E = 1, DISTANCE do |
| 502 | - | local Part1 = Instance.new("Part")
|
| 502 | + | local ExtraSize = (DISTANCE-E)/25 |
| 503 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 503 | + | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
|
| 504 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 504 | + | PART.Color = Color |
| 505 | - | Part1.Material = Enum.Material.Neon |
| 505 | + | MakeForm(PART,"Cyl") |
| 506 | - | Part1.CanCollide = false |
| 506 | + | if LastBolt == nil then |
| 507 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 507 | + | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
| 508 | - | Part1.Parent = DebrisModel |
| 508 | + | |
| 509 | - | Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf) |
| 509 | + | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
| 510 | - | Part1.Anchored = true |
| 510 | + | |
| 511 | - | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) |
| 511 | + | LastBolt = PART |
| 512 | - | Part1.Name = "SMOKE" |
| 512 | + | if Branches == true then |
| 513 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
| 514 | - | asd = Part0.Touched:connect(function(ht) |
| 514 | + | if CHOICE == 1 then |
| 515 | - | local hit=ht.Parent |
| 515 | + | local LASTBRANCH = nil |
| 516 | - | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then |
| 516 | + | for i = 1, MRANDOM(2,5) do |
| 517 | - | asd:disconnect() |
| 517 | + | local ExtraSize2 = ((DISTANCE-E)/35)/i |
| 518 | - | loop:disconnect() |
| 518 | + | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
|
| 519 | - | Part0:Destroy() |
| 519 | + | PART.Color = Color |
| 520 | MakeForm(PART,"Cyl") | |
| 521 | - | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200) |
| 521 | + | if LASTBRANCH == nil then |
| 522 | - | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do |
| 522 | + | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
| 523 | - | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
|
| 523 | + | else |
| 524 | - | v:Destroy() |
| 524 | + | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
| 525 | - | else |
| 525 | + | end |
| 526 | - | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
|
| 526 | + | LASTBRANCH = PART |
| 527 | end | |
| 528 | - | local Position = Part0.Position |
| 528 | + | |
| 529 | - | local Target = v.Position |
| 529 | + | |
| 530 | - | local direction = Target - Position |
| 530 | + | |
| 531 | - | local direction = computeDirection(direction) |
| 531 | + | if Dissapear == true then |
| 532 | - | local bv = Instance.new("BodyVelocity",v)
|
| 532 | + | coroutine.resume(coroutine.create(function() |
| 533 | - | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) |
| 533 | + | for i = 1, 30 do |
| 534 | - | debris:AddItem(bv,1) |
| 534 | + | Swait() |
| 535 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
| 536 | - | for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end |
| 536 | + | if c.ClassName == "Part" then |
| 537 | - | for z=1,math.random(2,3) do |
| 537 | + | c.Transparency = i/30 |
| 538 | - | local asdf = math.random(-5,5)*10-(i/20)*8 |
| 538 | + | end |
| 539 | - | local Part1 = Instance.new("Part")
|
| 539 | + | |
| 540 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 540 | + | |
| 541 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 541 | + | LIGHTNINGMODEL:remove() |
| 542 | - | mesh2.Scale = Vector3.new(0,0,0) |
| 542 | + | end)) |
| 543 | - | Part1.Material = Enum.Material.Neon |
| 543 | + | elseif Dissapear == false then |
| 544 | - | Part1.CanCollide = false |
| 544 | + | Debris:AddItem(LIGHTNINGMODEL,0.1) |
| 545 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 545 | + | |
| 546 | - | Part1.Parent = DebrisModel |
| 546 | + | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
|
| 547 | - | Part1.Size = Vector3.new(asdf,asdf,asdf) |
| 547 | + | |
| 548 | - | Part1.Anchored = true |
| 548 | + | |
| 549 | - | local a = i*0.5 |
| 549 | + | local Particle = IT("ParticleEmitter",nil)
|
| 550 | - | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a)) |
| 550 | + | Particle.Enabled = false |
| 551 | - | Part1.Name = "EXPLOSION" |
| 551 | + | Particle.LightEmission = 1 |
| 552 | Particle.Rate = 150 | |
| 553 | Particle.ZOffset = 1 | |
| 554 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 555 | ||
| 556 | --ParticleEmitter({Speed = 5, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
| |
| 557 | - | end)) |
| 557 | + | function ParticleEmitter(Table) |
| 558 | local PRTCL = Particle:Clone() | |
| 559 | local Color1 = Table.Color1 or C3(1,1,1) | |
| 560 | - | holdclick=false |
| 560 | + | local Color2 = Table.Color2 or C3(1,1,1) |
| 561 | local Speed = Table.Speed or 5 | |
| 562 | - | mouse.Button1Down:connect(function() |
| 562 | + | local Drag = Table.Drag or 0 |
| 563 | - | if debounce == false then |
| 563 | + | local Size1 = Table.Size1 or 1 |
| 564 | - | if animid == 0 then |
| 564 | + | local Size2 = Table.Size2 or 5 |
| 565 | - | animid = 1 |
| 565 | + | local Lifetime1 = Table.Lifetime1 or 1 |
| 566 | - | else |
| 566 | + | local Lifetime2 = Table.Lifetime2 or 1.5 |
| 567 | - | animid = 0 |
| 567 | + | local Parent = Table.Parent or Torso |
| 568 | local Emit = Table.Emit or 100 | |
| 569 | - | debounce = true |
| 569 | + | local Offset = Table.Offset or 360 |
| 570 | - | holdclick = true |
| 570 | + | local Acel = Table.Acel or VT(0,0,0) |
| 571 | - | aiming_anim = true |
| 571 | + | local Enabled = Table.Enabled or false |
| 572 | local Texture = Table.Texture or "281983280" | |
| 573 | - | repeat |
| 573 | + | local RotS = Table.RotSpeed or NumberRange.new(-15, 15) |
| 574 | - | rs:wait() |
| 574 | + | local Trans1 = Table.Transparency1 or 0 |
| 575 | - | timer = 150 |
| 575 | + | local Trans2 = Table.Transparency2 or 0 |
| 576 | - | until holdclick == false |
| 576 | + | PRTCL.Parent = Parent |
| 577 | - | bigboomrektxd() |
| 577 | + | PRTCL.RotSpeed = RotS |
| 578 | PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
| |
| 579 | - | local Position = mouse.Hit.p |
| 579 | + | PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture |
| 580 | - | local Target = root.Position |
| 580 | + | PRTCL.Color = ColorSequence.new(Color1,Color2) |
| 581 | - | local direction = Target - Position |
| 581 | + | PRTCL.Size = NumberSequence.new(Size1,Size2) |
| 582 | - | local direction = computeDirection(direction) |
| 582 | + | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
| 583 | - | root.Velocity = direction * 150 |
| 583 | + | PRTCL.Speed = NumberRange.new(Speed) |
| 584 | PRTCL.VelocitySpread = Offset | |
| 585 | - | aiming_anim = false |
| 585 | + | PRTCL.Drag = Drag |
| 586 | - | delay(0.3,function() debounce = false end) |
| 586 | + | PRTCL.Acceleration = Acel |
| 587 | if Enabled == false then | |
| 588 | PRTCL:Emit(Emit) | |
| 589 | Debris:AddItem(PRTCL,Lifetime2) | |
| 590 | - | mouse.Button1Up:connect(function() |
| 590 | + | else |
| 591 | - | holdclick=false |
| 591 | + | PRTCL.Enabled = true |
| 592 | end | |
| 593 | return PRTCL | |
| 594 | - | function dashasdf() |
| 594 | + | |
| 595 | - | debounce = true |
| 595 | + | |
| 596 | --//=================================\\ | |
| 597 | - | canjump = false |
| 597 | + | --|| WEAPON CREATION |
| 598 | - | attack = true |
| 598 | + | --\\=================================// |
| 599 | ||
| 600 | - | for i,v in pairs(char:GetChildren()) do |
| 600 | + | local SKILLTEXTCOLOR = C3(1,1,1) |
| 601 | - | if v ~= root then |
| 601 | + | local SKILLFONT = "Fantasy" |
| 602 | - | if v:IsA("Part") then
|
| 602 | + | local SKILLTEXTSIZE = 5 |
| 603 | - | v.Transparency = 1 |
| 603 | + | local POWER = 250 |
| 604 | - | elseif v:IsA("Accoutrement") then
|
| 604 | + | local MAXPOWER = 500 |
| 605 | - | v:FindFirstChildOfClass("Part").Transparency = 1
|
| 605 | + | |
| 606 | Humanoid.Died:connect(function() | |
| 607 | ATTACK = true | |
| 608 | end) | |
| 609 | ||
| 610 | - | local tempattachment = Instance.new("Attachment",root)
|
| 610 | + | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.83, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") |
| 611 | - | tempattachment.Position = Vector3.new(0,0,-4) |
| 611 | + | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.012, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
| 612 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.03, 0, 0.73, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 613 | - | for i=1,20 do rs:wait() |
| 613 | + | local SHIFTFR = CreateFrame(WEAPONGUI, 1, 2, UD2(0.30, 0, 0.87, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Charging") |
| 614 | - | root.Velocity = Vector3.new(0,0,0) |
| 614 | + | |
| 615 | - | root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z)) |
| 615 | + | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Poison Bolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") |
| 616 | - | local asdf = math.random(500,1000)/100 |
| 616 | + | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Toxic Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") |
| 617 | - | local Part1 = Instance.new("Part")
|
| 617 | + | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Toxic Devastation", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") |
| 618 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 618 | + | local SHIFTX = CreateLabel(SHIFTFR, "[SHIFT] Charge", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "How2Shift") |
| 619 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 619 | + | |
| 620 | - | Part1.Material = Enum.Material.Neon |
| 620 | + | local MANABAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Mana Bar") |
| 621 | - | Part1.CanCollide = false |
| 621 | + | local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Dark indigo".Color, C3(0, 0, 0),"Mana Cover") |
| 622 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 622 | + | local MANATEXT = CreateLabel(MANABAR, POWER.."/"..MAXPOWER, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "MP") |
| 623 | - | Part1.Parent = DebrisModel |
| 623 | + | |
| 624 | - | Part1.Size = Vector3.new(asdf,asdf,asdf) |
| 624 | + | local A = IT("Attachment",Torso)
|
| 625 | - | Part1.Anchored = true |
| 625 | + | local TORSOTHUNDER = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
|
| 626 | - | Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500)) |
| 626 | + | TORSOTHUNDER.Enabled = false |
| 627 | - | Part1.Name = "SMOKE" |
| 627 | + | TORSOTHUNDER.Rate = 5 |
| 628 | local TORSOTHUNDER2 = ParticleEmitter({Texture = 281983242, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
| |
| 629 | TORSOTHUNDER2.Enabled = false | |
| 630 | - | tempattachment:Destroy() |
| 630 | + | TORSOTHUNDER2.Rate = 5 |
| 631 | local B = IT("Attachment",RootPart)
| |
| 632 | - | for i,v in pairs(char:GetChildren()) do |
| 632 | + | B.Position = VT(0,-3,0) |
| 633 | - | if v ~= root then |
| 633 | + | local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 301261210, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
|
| 634 | - | if v:IsA("Part") then
|
| 634 | + | CHARGE.ZOffset = 1.5 |
| 635 | - | v.Transparency = 0 |
| 635 | + | CHARGE.Enabled = false |
| 636 | - | elseif v:IsA("Accoutrement") then
|
| 636 | + | CHARGE.Rate = 999 |
| 637 | - | v:FindFirstChildOfClass("Part").Transparency = 0
|
| 637 | + | |
| 638 | local FF = IT("ForceField",Character)
| |
| 639 | FF.Visible = false | |
| 640 | Humanoid.MaxHealth = 1200 | |
| 641 | Humanoid.Health = 1200 | |
| 642 | - | canjump = true |
| 642 | + | local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.93, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar") |
| 643 | - | attack = false |
| 643 | + | local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover") |
| 644 | local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP") | |
| 645 | - | delay(0.1,function() debounce = false end) |
| 645 | + | Character.Health:remove() |
| 646 | ||
| 647 | --//=================================\\ | |
| 648 | - | function laz0r() |
| 648 | + | --|| DAMAGING |
| 649 | --\\=================================// | |
| 650 | - | local Position = nil |
| 650 | + | |
| 651 | - | if animid == 0 then |
| 651 | + | function ApplyDamage(Humanoid,Damage,TorsoPart) |
| 652 | - | Position = larm.Position |
| 652 | + | local defence = Instance.new("BoolValue",Humanoid.Parent)
|
| 653 | - | else |
| 653 | + | defence.Name = ("HitBy"..Player.Name)
|
| 654 | - | Position = rarm.Position |
| 654 | + | game:GetService("Debris"):AddItem(defence, 0.001)
|
| 655 | Damage = Damage * DAMAGEMULTIPLIER | |
| 656 | if Humanoid.Health ~= 0 then | |
| 657 | - | local Part1 = Instance.new("Part")
|
| 657 | + | local CritChance = MRANDOM(1,100) |
| 658 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 658 | + | if Damage > Humanoid.Health then |
| 659 | - | mesh2.MeshId = "rbxassetid://559831844" |
| 659 | + | Damage = math.ceil(Humanoid.Health) |
| 660 | - | mesh2.Scale = Vector3.new(0,0,0.4) |
| 660 | + | if Damage == 0 then |
| 661 | - | Part1.Material = Enum.Material.Neon |
| 661 | + | Damage = 0.1 |
| 662 | - | Part1.CanCollide = false |
| 662 | + | |
| 663 | - | Part1.Color = Color3.fromHSV(0,0,main.v) |
| 663 | + | |
| 664 | - | Part1.Parent = DebrisModel |
| 664 | + | Humanoid.Health = Humanoid.Health - Damage |
| 665 | - | Part1.Size = Vector3.new(0,0,0) |
| 665 | + | |
| 666 | - | Part1.Anchored = true |
| 666 | + | |
| 667 | - | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) |
| 667 | + | |
| 668 | - | Part1.Name = "EXPLOSION3" |
| 668 | + | function AfterZap(Humanoid,Times,Dmg) |
| 669 | coroutine.resume(coroutine.create(function() | |
| 670 | - | local Part0 = Instance.new("Part",DebrisModel)
|
| 670 | + | if Humanoid ~= nil then |
| 671 | - | Part0.Name = "Bullet" |
| 671 | + | local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
|
| 672 | - | Part0.Material = Enum.Material.Neon |
| 672 | + | ZAP.Rate = 75 |
| 673 | - | Part0.Color = Color3.fromHSV(0,0,main.v) |
| 673 | + | for i = 1, Times do |
| 674 | - | Part0.Anchored = true |
| 674 | + | wait(1) |
| 675 | - | local mesh = Instance.new("SpecialMesh",Part0)
|
| 675 | + | if Humanoid ~= nil and Humanoid.Health > 0 then |
| 676 | - | mesh.MeshType = Enum.MeshType.Sphere |
| 676 | + | Humanoid.Health = Humanoid.Health - Dmg |
| 677 | - | Part0.CanCollide = false |
| 677 | + | CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false) |
| 678 | - | local Target = mouse.Hit.p |
| 678 | + | else |
| 679 | - | local direction = Target - Position |
| 679 | + | break |
| 680 | - | local direction = computeDirection(direction) |
| 680 | + | |
| 681 | - | local ray = Ray.new(Position, (Target-Position).unit*1048) |
| 681 | + | |
| 682 | - | local part, endPoint = workspace:FindPartOnRay(ray, char) |
| 682 | + | ZAP.Enabled = false |
| 683 | - | Part0.Size = Vector3.new(5,1,5) |
| 683 | + | Debris:AddItem(ZAP,3) |
| 684 | - | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) |
| 684 | + | |
| 685 | - | local pos = Position + (direction * (mesh.Scale.Y/2)) |
| 685 | + | end)) |
| 686 | - | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) |
| 686 | + | |
| 687 | ||
| 688 | - | clashpart = Instance.new("Part",DebrisModel)
|
| 688 | + | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER) |
| 689 | - | clashpart.Size = Vector3.new(50,50,50) |
| 689 | + | local CHILDREN = workspace:GetDescendants() |
| 690 | - | clashpart.CanCollide = false |
| 690 | + | for index, CHILD in pairs(CHILDREN) do |
| 691 | - | clashpart.Anchored = true |
| 691 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
| 692 | - | clashpart.Transparency = 1 |
| 692 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
|
| 693 | - | clashpart.Color = main_color |
| 693 | + | if HUM then |
| 694 | - | clashpart.Name = "StarLightClash" |
| 694 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
|
| 695 | - | clashpart.CFrame = CFrame.new(endPoint, root.Position) |
| 695 | + | if TORSO then |
| 696 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 697 | - | sound(1177475476,Position,10,math.random(5,6)/10,300) |
| 697 | + | if DOESAFTERZAP == true then |
| 698 | AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7)) | |
| 699 | - | local z = 10 |
| 699 | + | end |
| 700 | - | for i = 1,100 do rs:wait() |
| 700 | + | local DMG = MRANDOM(MINDMG,MAXDMG) |
| 701 | - | if animid == 0 then |
| 701 | + | ApplyDamage(HUM,DMG,TORSO) |
| 702 | - | Position = larm.Position |
| 702 | + | if FLING > 0 then |
| 703 | - | else |
| 703 | + | for _, c in pairs(CHILD:GetChildren()) do |
| 704 | - | Position = rarm.Position |
| 704 | + | if c:IsA("BasePart") then
|
| 705 | local bv = Instance.new("BodyVelocity")
| |
| 706 | - | local Target = mouse.Hit.p |
| 706 | + | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
| 707 | - | local direction = Target - Position |
| 707 | + | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING |
| 708 | - | local direction = computeDirection(direction) |
| 708 | + | bv.Parent = c |
| 709 | - | local ray = Ray.new(Position, (Target-Position).unit*1048) |
| 709 | + | Debris:AddItem(bv,0.05) |
| 710 | - | local part, endPoint = workspace:FindPartOnRay(ray, char) |
| 710 | + | end |
| 711 | - | Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5)) |
| 711 | + | end |
| 712 | - | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) |
| 712 | + | end |
| 713 | - | mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0) |
| 713 | + | end |
| 714 | - | local pos = Position + (direction * (mesh.Scale.Y/2)) |
| 714 | + | |
| 715 | - | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) |
| 715 | + | |
| 716 | - | clashpart.CFrame = CFrame.new(endPoint, root.Position) |
| 716 | + | |
| 717 | end | |
| 718 | - | local Position = mouse.Hit.p |
| 718 | + | |
| 719 | - | local Target = root.Position |
| 719 | + | |
| 720 | - | local direction = Target - Position |
| 720 | + | --//=================================\\ |
| 721 | - | local direction = computeDirection(direction) |
| 721 | + | --|| ATTACK FUNCTIONS AND STUFF |
| 722 | - | root.Velocity = direction * 5 |
| 722 | + | --\\=================================// |
| 723 | ||
| 724 | - | if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end |
| 724 | + | local DECAL = IT("Decal",nil)
|
| 725 | ||
| 726 | - | Part1 = Part0:Clone() |
| 726 | + | function MagicRing(PART,CFRAME) |
| 727 | - | Part1.Parent = DebrisModel |
| 727 | + | local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),false) |
| 728 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 728 | + | local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
|
| 729 | - | Part1.Name = "SMOKE2" |
| 729 | + | local MESH = IT("BlockMesh",RING)
|
| 730 | local BOTTOMTEXTURE = DECAL:Clone() | |
| 731 | - | if part ~= nil then |
| 731 | + | BOTTOMTEXTURE.Parent = RING |
| 732 | - | if part.Name == "StarLightClash" then |
| 732 | + | BOTTOMTEXTURE.Face = "Bottom" |
| 733 | - | local asdf = math.random(0,5)*20 |
| 733 | + | BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563007449" |
| 734 | - | local Part1 = Instance.new("Part")
|
| 734 | + | BOTTOMTEXTURE.Name = "BottomTexture" |
| 735 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 735 | + | local TOPTEXTURE = DECAL:Clone() |
| 736 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 736 | + | TOPTEXTURE.Parent = RING |
| 737 | - | mesh2.Scale = Vector3.new(0,0,0) |
| 737 | + | TOPTEXTURE.Face = "Top" |
| 738 | - | Part1.Material = Enum.Material.Neon |
| 738 | + | TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563008191" |
| 739 | - | Part1.CanCollide = false |
| 739 | + | TOPTEXTURE.Name = "TopTexture" |
| 740 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v) |
| 740 | + | local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
|
| 741 | - | Part1.Parent = DebrisModel |
| 741 | + | T.LockedToPart = true |
| 742 | - | Part1.Size = Vector3.new(asdf,asdf,asdf) |
| 742 | + | return RING,WELD,MESH |
| 743 | - | Part1.Anchored = true |
| 743 | + | |
| 744 | - | local a = 1.5 |
| 744 | + | |
| 745 | - | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) |
| 745 | + | function Charge() |
| 746 | - | Part1.Name = "EXPLOSION" |
| 746 | + | ATTACK = true |
| 747 | - | else |
| 747 | + | Rooted = true |
| 748 | - | local asdf = math.random(0,5)*10 |
| 748 | + | TORSOTHUNDER.Enabled = true |
| 749 | - | local Part1 = Instance.new("Part")
|
| 749 | + | TORSOTHUNDER2.Enabled = true |
| 750 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 750 | + | CHARGE.Enabled = true |
| 751 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 751 | + | local LOOP = CreateSound(516142778,Torso,0,1,true) |
| 752 | - | mesh2.Scale = Vector3.new(0,0,0) |
| 752 | + | local LOOP2 = CreateSound(1393698948,Torso,0,2,true) |
| 753 | - | Part1.Material = Enum.Material.Neon |
| 753 | + | repeat |
| 754 | - | Part1.CanCollide = false |
| 754 | + | Swait() |
| 755 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 755 | + | if POWER < MAXPOWER then |
| 756 | - | Part1.Parent = DebrisModel |
| 756 | + | POWER = POWER + 1 |
| 757 | - | Part1.Size = Vector3.new(asdf,asdf,asdf) |
| 757 | + | elseif POWER > MAXPOWER then |
| 758 | - | Part1.Anchored = true |
| 758 | + | POWER = MAXPOWER |
| 759 | - | local a = 1.5 |
| 759 | + | |
| 760 | - | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) |
| 760 | + | if LOOP.Volume < 5 then |
| 761 | - | Part1.Name = "EXPLOSION" |
| 761 | + | LOOP.Volume = LOOP.Volume + 0.2 |
| 762 | end | |
| 763 | if LOOP2.Volume < 5 then | |
| 764 | LOOP2.Volume = LOOP2.Volume + 0.2 | |
| 765 | - | for i,v in pairs(findAllNearestTorso(endPoint,50)) do |
| 765 | + | |
| 766 | - | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
|
| 766 | + | TORSOTHUNDER.Rate = MRANDOM(15,45) |
| 767 | - | v:Destroy() |
| 767 | + | TORSOTHUNDER2.Rate = MRANDOM(15,45) |
| 768 | - | else |
| 768 | + | Humanoid.Health = Humanoid.Health + 1 |
| 769 | - | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
|
| 769 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 770 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 771 | - | local Position = mouse.Hit.p |
| 771 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 772 | - | local Target = v.Position |
| 772 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 773 | - | local direction = Target - Position |
| 773 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 774 | - | local direction = computeDirection(direction) |
| 774 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 775 | - | local bv = Instance.new("BodyVelocity",v)
|
| 775 | + | until KEYHOLD == false or POWER == MAXPOWER and Humanoid.Health == Humanoid.MaxHealth |
| 776 | - | bv.Velocity = direction * (10 - ((Position - Target).magnitude/2)) |
| 776 | + | CHARGE.Enabled = false |
| 777 | - | debris:AddItem(bv,1) |
| 777 | + | TORSOTHUNDER.Enabled = false |
| 778 | TORSOTHUNDER2.Enabled = false | |
| 779 | coroutine.resume(coroutine.create(function() | |
| 780 | repeat | |
| 781 | - | clashpart:Destroy() |
| 781 | + | Swait() |
| 782 | - | Part0:Destroy() |
| 782 | + | LOOP.Volume = LOOP.Volume - 0.2 |
| 783 | - | wait(0.3) |
| 783 | + | LOOP2.Volume = LOOP2.Volume - 0.2 |
| 784 | - | aiming_anim = false |
| 784 | + | until LOOP.Volume <= 0 |
| 785 | - | delay(0.3,function() debounce = false end) |
| 785 | + | LOOP:remove() |
| 786 | end)) | |
| 787 | ATTACK = false | |
| 788 | - | function nukewelpo() |
| 788 | + | Rooted = false |
| 789 | - | coroutine.resume(coroutine.create(function() |
| 789 | + | |
| 790 | - | local magnitude = nil |
| 790 | + | |
| 791 | - | local Position = nil |
| 791 | + | function PoisonBolt() |
| 792 | - | if animid == 0 then |
| 792 | + | ATTACK = true |
| 793 | - | Position = larm.Position |
| 793 | + | Rooted = true |
| 794 | - | else |
| 794 | + | local STRENGTH = 100 |
| 795 | - | Position = rarm.Position |
| 795 | + | local TIER = 1 |
| 796 | local GRAV = IT("BodyPosition",RootPart)
| |
| 797 | - | --sound(743499393,Position,10,math.random(6,8)/10) |
| 797 | + | GRAV.D = 250 |
| 798 | - | sound(440145223,Position,10,math.random(4,5)/10,100) |
| 798 | + | GRAV.P = 20000 |
| 799 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
| 800 | - | local Part1 = Instance.new("Part")
|
| 800 | + | GRAV.Position = RootPart.Position |
| 801 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 801 | + | local G = IT("BodyGyro",RootPart)
|
| 802 | - | mesh2.MeshId = "rbxassetid://559831844" |
| 802 | + | G.D = 250 |
| 803 | - | mesh2.Scale = Vector3.new(0,0,0.4) |
| 803 | + | G.P = 200000 |
| 804 | - | Part1.Material = Enum.Material.Neon |
| 804 | + | G.MaxTorque = VT(math.huge,math.huge,math.huge) |
| 805 | - | Part1.CanCollide = false |
| 805 | + | local RING,WELD,MESH = MagicRing(RightArm,CF(0,-1.2,0)) |
| 806 | - | Part1.Color = Color3.fromHSV(0,0,main.v) |
| 806 | + | CreateSound(RINGSOUND,RING,5,1,false) |
| 807 | - | Part1.Parent = DebrisModel |
| 807 | + | repeat |
| 808 | - | Part1.Size = Vector3.new(0,0,0) |
| 808 | + | Swait() |
| 809 | - | Part1.Anchored = true |
| 809 | + | STRENGTH = STRENGTH + 0.3 |
| 810 | - | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) |
| 810 | + | if STRENGTH > 200 then |
| 811 | - | Part1.Name = "EXPLOSION3" |
| 811 | + | STRENGTH = 200 |
| 812 | end | |
| 813 | - | local Part0 = Instance.new("Part",DebrisModel)
|
| 813 | + | if MESH.Scale.X < 120 then |
| 814 | - | local PointLight2 = Instance.new("PointLight")
|
| 814 | + | MESH.Scale = MESH.Scale + VT(3,0,3) |
| 815 | - | Part0.Name = "Bullet" |
| 815 | + | elseif MESH.Scale.X < 200 then |
| 816 | - | Part0.Material = Enum.Material.Neon |
| 816 | + | MESH.Scale = MESH.Scale + VT(0.3,0,0.3) |
| 817 | - | Part0.Color = Color3.fromHSV(0,0,main.v) |
| 817 | + | |
| 818 | - | Part0.Anchored = false |
| 818 | + | G.cframe = CF(RootPart.Position,Mouse.Hit.p) |
| 819 | - | Part0.Size = Vector3.new(5, 5, 5) |
| 819 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) |
| 820 | - | local mesh = Instance.new("SpecialMesh",Part0)
|
| 820 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) |
| 821 | - | mesh.MeshType = Enum.MeshType.Sphere |
| 821 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 822 | - | mesh.Scale = Vector3.new(3,3,3) |
| 822 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 823 | - | local bforce = Instance.new("BodyForce",Part0)
|
| 823 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 824 | - | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) |
| 824 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 825 | - | Part0.CanCollide = false |
| 825 | + | until KEYHOLD == false and MESH.Scale.X >= 120 |
| 826 | - | PointLight2.Parent = Part0 |
| 826 | + | if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 35 then |
| 827 | - | PointLight2.Color = Part0.Color |
| 827 | + | POWER = POWER - 35 |
| 828 | - | local Target = mouse.Hit.p |
| 828 | + | TIER = 2 |
| 829 | - | local direction = Target - Position |
| 829 | + | elseif STRENGTH == 200 and POWER >= 75 then |
| 830 | - | local direction = computeDirection(direction) |
| 830 | + | POWER = POWER - 75 |
| 831 | - | local pos = Position + (direction * 2) |
| 831 | + | TIER = 3 |
| 832 | - | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) |
| 832 | + | |
| 833 | - | Part0.Velocity = direction * 150 |
| 833 | + | --print("STRENGTH:"..STRENGTH.."/TIER:"..TIER)
|
| 834 | - | local asd = nil |
| 834 | + | if TIER == 1 then |
| 835 | - | local loop = nil |
| 835 | + | local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
|
| 836 | - | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) |
| 836 | + | if ZAP.End ~= nil then |
| 837 | - | loop = rs:connect(function() |
| 837 | + | ApplyAoE(ZAP.End,10,5,15,35,true,6) |
| 838 | - | local asdf = math.random(500,1000)/1000 |
| 838 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 6})
|
| 839 | - | local Part1 = Instance.new("Part")
|
| 839 | + | WACKYEFFECT({Time = 65, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
|
| 840 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 840 | + | |
| 841 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 841 | + | elseif TIER == 2 then |
| 842 | - | Part1.Material = Enum.Material.Neon |
| 842 | + | local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = false})
|
| 843 | - | Part1.CanCollide = false |
| 843 | + | if ZAP.End ~= nil then |
| 844 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 844 | + | ApplyAoE(ZAP.End,15,15,25,35,true,8) |
| 845 | - | Part1.Parent = DebrisModel |
| 845 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*4, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
|
| 846 | - | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) |
| 846 | + | WACKYEFFECT({Time = 75, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*2, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
|
| 847 | - | Part1.Anchored = true |
| 847 | + | |
| 848 | - | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750)) |
| 848 | + | elseif TIER == 3 then |
| 849 | - | Part1.Name = "SMOKE" |
| 849 | + | local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
|
| 850 | if ZAP.End ~= nil then | |
| 851 | - | asd = Part0.Touched:connect(function(ht) |
| 851 | + | ApplyAoE(ZAP.End,20,15,25,35,true,12) |
| 852 | - | local hit=ht.Parent |
| 852 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*8, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
|
| 853 | - | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then |
| 853 | + | WACKYEFFECT({Time = 125, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*4, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
|
| 854 | - | asd:disconnect() |
| 854 | + | for i = 1, 4 do |
| 855 | - | loop:disconnect() |
| 855 | + | Lightning({Color = BRICKC"Dark indigo".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = false})
|
| 856 | - | Part0:Destroy() |
| 856 | + | |
| 857 | end | |
| 858 | - | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500) |
| 858 | + | |
| 859 | - | for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do |
| 859 | + | wait(0.5) |
| 860 | - | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
|
| 860 | + | RING.Anchored = true |
| 861 | - | v:Destroy() |
| 861 | + | WELD:remove() |
| 862 | - | else |
| 862 | + | coroutine.resume(coroutine.create(function() |
| 863 | - | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
|
| 863 | + | for i = 1, 25 do |
| 864 | Swait() | |
| 865 | - | local Position = Part0.Position |
| 865 | + | RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25 |
| 866 | - | local Target = v.Position |
| 866 | + | RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25 |
| 867 | - | local direction = Target - Position |
| 867 | + | MESH.Scale = MESH.Scale - VT(3,0,3) |
| 868 | - | local direction = computeDirection(direction) |
| 868 | + | |
| 869 | - | local bv = Instance.new("BodyVelocity",v)
|
| 869 | + | RING:remove() |
| 870 | - | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) |
| 870 | + | end)) |
| 871 | - | debris:AddItem(bv,1) |
| 871 | + | ATTACK = false |
| 872 | Rooted = false | |
| 873 | - | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end |
| 873 | + | G:remove() |
| 874 | - | for z=1,math.random(2,3) do |
| 874 | + | GRAV:remove() |
| 875 | - | local asdf = math.random(-5,5)*10-(i/20)*12 |
| 875 | + | |
| 876 | - | local Part1 = Instance.new("Part")
|
| 876 | + | |
| 877 | - | local mesh2 = Instance.new("SpecialMesh",Part1)
|
| 877 | + | function ToxicStomp() |
| 878 | - | mesh2.MeshType = Enum.MeshType.Sphere |
| 878 | + | ATTACK = true |
| 879 | - | mesh2.Scale = Vector3.new(0,0,0) |
| 879 | + | Rooted = false |
| 880 | - | Part1.Material = Enum.Material.Neon |
| 880 | + | local GRAV = IT("BodyPosition",RootPart)
|
| 881 | - | Part1.CanCollide = false |
| 881 | + | GRAV.D = 250 |
| 882 | - | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) |
| 882 | + | GRAV.P = 20000 |
| 883 | - | Part1.Parent = DebrisModel |
| 883 | + | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) |
| 884 | - | Part1.Size = Vector3.new(asdf,asdf,asdf) |
| 884 | + | GRAV.Position = RootPart.Position |
| 885 | - | Part1.Anchored = true |
| 885 | + | local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0)) |
| 886 | - | local a = i*5 |
| 886 | + | CreateSound(RINGSOUND,RING,5,1,false) |
| 887 | - | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a)) |
| 887 | + | local STRENGTH = 100 |
| 888 | - | Part1.Name = "EXPLOSION4" |
| 888 | + | local TIER = 1 |
| 889 | repeat | |
| 890 | Swait() | |
| 891 | STRENGTH = STRENGTH + 0.3 | |
| 892 | if STRENGTH > 200 then | |
| 893 | STRENGTH = 200 | |
| 894 | - | end)) |
| 894 | + | |
| 895 | if MESH.Scale.X < 120 then | |
| 896 | MESH.Scale = MESH.Scale + VT(3,0,3) | |
| 897 | - | holdq = false |
| 897 | + | elseif MESH.Scale.X < 200 then |
| 898 | - | holdr = false |
| 898 | + | MESH.Scale = MESH.Scale + VT(0.3,0,0.3) |
| 899 | - | cooldownult = false |
| 899 | + | |
| 900 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 901 | - | mouse.KeyDown:connect(function(key) |
| 901 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 902 | - | if debounce == false then |
| 902 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 903 | - | if key == "e" then |
| 903 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 904 | - | dashasdf() |
| 904 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 905 | - | elseif key == "r" and cooldownult == false then |
| 905 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 906 | - | cooldownult = true |
| 906 | + | until KEYHOLD == false and MESH.Scale.X >= 120 |
| 907 | - | if animid == 0 then |
| 907 | + | if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then |
| 908 | - | animid = 1 |
| 908 | + | POWER = POWER - 45 |
| 909 | - | else |
| 909 | + | TIER = 2 |
| 910 | - | animid = 0 |
| 910 | + | elseif STRENGTH == 200 and POWER >= 100 then |
| 911 | POWER = POWER - 100 | |
| 912 | - | debounce = true |
| 912 | + | TIER = 3 |
| 913 | - | holdr = true |
| 913 | + | |
| 914 | - | aiming_anim = true |
| 914 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
| 915 | Swait() | |
| 916 | - | repeat |
| 916 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 917 | - | rs:wait() |
| 917 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 918 | - | timer = 150 |
| 918 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 919 | - | until holdr == false |
| 919 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 920 | - | nukewelpo() |
| 920 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 921 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 922 | - | local Position = mouse.Hit.p |
| 922 | + | |
| 923 | - | local Target = root.Position |
| 923 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
| 924 | - | local direction = Target - Position |
| 924 | + | Swait() |
| 925 | - | local direction = computeDirection(direction) |
| 925 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 926 | - | root.Velocity = direction * 300 |
| 926 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 927 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 928 | - | aiming_anim = false |
| 928 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 929 | - | delay(5,function() cooldownult = false end) |
| 929 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 930 | - | delay(1,function() debounce = false end) |
| 930 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 931 | end | |
| 932 | - | elseif key == "q" then |
| 932 | + | coroutine.resume(coroutine.create(function() |
| 933 | - | debounce = true |
| 933 | + | if TIER == 1 then |
| 934 | - | if animid == 0 then |
| 934 | + | local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(30,0,30)) |
| 935 | - | animid = 1 |
| 935 | + | AOE.CFrame = CF(RightLeg.Position-VT(0,1,0)) |
| 936 | - | else |
| 936 | + | local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
|
| 937 | - | animid = 0 |
| 937 | + | PARTCL.Rate = 999 |
| 938 | CreateSound(304999618,AOE,5,1,false) | |
| 939 | - | holdq = true |
| 939 | + | CreateSound(130972023,AOE,4,1,false) |
| 940 | - | attack = true |
| 940 | + | ApplyAoE(AOE.Position,15,15,25,35,true,5) |
| 941 | - | aiming_anim = true |
| 941 | + | WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
|
| 942 | - | repeat rs:wait() timer = 150 until holdq == false |
| 942 | + | wait(2) |
| 943 | - | laz0r() |
| 943 | + | PARTCL.Enabled = false |
| 944 | - | attack = false |
| 944 | + | Debris:AddItem(AOE,2) |
| 945 | elseif TIER == 2 then | |
| 946 | local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(40,0,40)) | |
| 947 | AOE.CFrame = CF(RightLeg.Position-VT(0,1,0)) | |
| 948 | local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
| |
| 949 | - | mouse.KeyUp:connect(function(key) |
| 949 | + | PARTCL.Rate = 999 |
| 950 | - | if key == "q" then |
| 950 | + | CreateSound(304999618,AOE,5,1,false) |
| 951 | - | holdq = false |
| 951 | + | CreateSound(130972023,AOE,4,1,false) |
| 952 | - | elseif key == "r" then |
| 952 | + | ApplyAoE(AOE.Position,20,25,35,35,true,6) |
| 953 | - | holdr = false |
| 953 | + | WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
|
| 954 | wait(2) | |
| 955 | PARTCL.Enabled = false | |
| 956 | Debris:AddItem(AOE,2) | |
| 957 | - | ---------------------------------------------------------------------------- |
| 957 | + | elseif TIER == 3 then |
| 958 | - | music(themeid,themepitch) |
| 958 | + | local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(50,0,50)) |
| 959 | - | velocityYFall=0 |
| 959 | + | AOE.CFrame = CF(RightLeg.Position-VT(0,1,0)) |
| 960 | - | velocityYFall2=0 |
| 960 | + | local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
|
| 961 | - | velocityYFall3=0 |
| 961 | + | PARTCL.Rate = 999 |
| 962 | - | velocityYFall4=0 |
| 962 | + | CreateSound(304999618,AOE,5,1,false) |
| 963 | - | neckrotY=0 |
| 963 | + | CreateSound(130972023,AOE,4,1,false) |
| 964 | - | neckrotY2=0 |
| 964 | + | for i = 1, 3 do |
| 965 | - | torsorotY=0 |
| 965 | + | ApplyAoE(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
|
| 966 | - | torsorotY2=0 |
| 966 | + | wait(0.5) |
| 967 | - | torsoY=0 |
| 967 | + | |
| 968 | - | torsoY2=0 |
| 968 | + | wait(1.5) |
| 969 | - | sine = 0 |
| 969 | + | PARTCL.Enabled = false |
| 970 | - | newWeld(torso, larm, -1.5, 0.5, 0) |
| 970 | + | Debris:AddItem(AOE,2) |
| 971 | - | larm.Weld.C1 = CFrame.new(0, 0.5, 0) |
| 971 | + | |
| 972 | - | newWeld(torso, rarm, 1.5, 0.5, 0) |
| 972 | + | end)) |
| 973 | - | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) |
| 973 | + | for i=0, 2, 0.1 / Animation_Speed do |
| 974 | - | newWeld(torso, hed, 0, 1.5, 0) |
| 974 | + | Swait() |
| 975 | - | newWeld(torso, lleg, -0.5, -1, 0) |
| 975 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 976 | - | lleg.Weld.C1 = CFrame.new(0, 1, 0) |
| 976 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 977 | - | newWeld(torso, rleg, 0.5, -1, 0) |
| 977 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 978 | - | rleg.Weld.C1 = CFrame.new(0, 1, 0) |
| 978 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 979 | - | newWeld(root, torso, 0, -1, 0) |
| 979 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 980 | - | torso.Weld.C1 = CFrame.new(0, -1, 0) |
| 980 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 981 | end | |
| 982 | - | rs:connect(function() |
| 982 | + | RING.Anchored = true |
| 983 | WELD:remove() | |
| 984 | - | bg.MaxTorque = Vector3.new(0,0,0) |
| 984 | + | coroutine.resume(coroutine.create(function() |
| 985 | for i = 1, 25 do | |
| 986 | - | for i,v in pairs(DebrisModel:GetChildren()) do |
| 986 | + | Swait() |
| 987 | - | |
| 987 | + | RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25 |
| 988 | RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25 | |
| 989 | - | if v.Name == "EXPLOSION" then |
| 989 | + | MESH.Scale = MESH.Scale - VT(3,0,3) |
| 990 | - | local change = 0.04-(v.Transparency*0.02) |
| 990 | + | |
| 991 | - | local vm = v:FindFirstChildOfClass("SpecialMesh")
|
| 991 | + | RING:remove() |
| 992 | - | vm.Scale = vm.Scale + Vector3.new(change,change,change) |
| 992 | + | end)) |
| 993 | - | v.Transparency = v.Transparency + 0.02 |
| 993 | + | GRAV:remove() |
| 994 | - | if v.Transparency >= 1 then |
| 994 | + | ATTACK = false |
| 995 | - | v:Destroy() |
| 995 | + | Rooted = false |
| 996 | end | |
| 997 | ||
| 998 | - | elseif v.Name == "EXPLOSION2" then |
| 998 | + | function ToxicDevastation() |
| 999 | - | local change = 0.04-(v.Transparency*0.04) |
| 999 | + | ATTACK = true |
| 1000 | - | local vm = v:FindFirstChildOfClass("SpecialMesh")
|
| 1000 | + | Rooted = false |
| 1001 | - | vm.Scale = vm.Scale + Vector3.new(change,change,0) |
| 1001 | + | Speed = 5 |
| 1002 | - | v.Transparency = v.Transparency + 0.025 |
| 1002 | + | local STRENGTH = 50 |
| 1003 | - | if v.Transparency >= 1 then |
| 1003 | + | local TIER = 1 |
| 1004 | - | v:Destroy() |
| 1004 | + | for i=0, 1, 0.1 / Animation_Speed do |
| 1005 | Swait() | |
| 1006 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1007 | - | elseif v.Name == "EXPLOSION3" then |
| 1007 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1008 | - | local change = 0.5-(v.Transparency*0.5) |
| 1008 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1009 | - | local vm = v:FindFirstChildOfClass("SpecialMesh")
|
| 1009 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1010 | - | vm.Scale = vm.Scale + Vector3.new(change,change,0) |
| 1010 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.15, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1011 | - | v.Transparency = v.Transparency + 0.1 |
| 1011 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1012 | - | if v.Transparency >= 1 then |
| 1012 | + | |
| 1013 | - | v:Destroy() |
| 1013 | + | local POS = RootPart.Position |
| 1014 | Rooted = true | |
| 1015 | Speed = Walkspeed | |
| 1016 | - | elseif v.Name == "EXPLOSION4" then |
| 1016 | + | local TIMER = 0 |
| 1017 | - | local change = 0.15-(v.Transparency*0.125) |
| 1017 | + | local bv = Instance.new("BodyVelocity")
|
| 1018 | - | local vm = v:FindFirstChildOfClass("SpecialMesh")
|
| 1018 | + | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
| 1019 | - | vm.Scale = vm.Scale + Vector3.new(change,change,change) |
| 1019 | + | bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,5,0)).lookVector*150 |
| 1020 | - | v.Transparency = v.Transparency + 0.01 |
| 1020 | + | bv.Parent = RootPart |
| 1021 | - | if v.Transparency >= 1 then |
| 1021 | + | WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position+VT(0,-3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BRICKC"Pearl".Color, SoundID = 1112042117, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
|
| 1022 | - | v:Destroy() |
| 1022 | + | repeat |
| 1023 | Swait() | |
| 1024 | TIMER = TIMER + 1 | |
| 1025 | - | elseif v.Name == "SMOKE" then |
| 1025 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
| 1026 | - | local vm = v:FindFirstChildOfClass("SpecialMesh")
|
| 1026 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
| 1027 | - | vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075) |
| 1027 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
| 1028 | - | if vm.Scale.X <= 0 then |
| 1028 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
| 1029 | - | v:Destroy() |
| 1029 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
| 1030 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1031 | until RootPart.Position.Y > POS.Y+80 or TIMER > 100 | |
| 1032 | - | elseif v.Name == "SMOKE2" then |
| 1032 | + | local GRAV = IT("BodyPosition",RootPart)
|
| 1033 | - | local change = 2-(v.Transparency*2) |
| 1033 | + | GRAV.D = 250 |
| 1034 | - | local vm = v:FindFirstChildOfClass("SpecialMesh")
|
| 1034 | + | GRAV.P = 20000 |
| 1035 | - | local Position = nil |
| 1035 | + | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) |
| 1036 | - | if animid == 0 then |
| 1036 | + | GRAV.Position = RootPart.Position |
| 1037 | - | Position = larm.Position |
| 1037 | + | bv:remove() |
| 1038 | - | else |
| 1038 | + | local G = IT("BodyGyro",RootPart)
|
| 1039 | - | Position = rarm.Position |
| 1039 | + | G.D = 250 |
| 1040 | G.P = 200000 | |
| 1041 | - | local Target = mouse.Hit.p |
| 1041 | + | G.MaxTorque = VT(math.huge,math.huge,math.huge) |
| 1042 | - | local direction = Target - Position |
| 1042 | + | local RING,WELD,MESH = MagicRing(Torso,CF(0,3,0)) |
| 1043 | - | local direction = computeDirection(direction) |
| 1043 | + | CreateSound(RINGSOUND,RING,5,1,false) |
| 1044 | - | local ray = Ray.new(Position, (Target-Position).unit*1048) |
| 1044 | + | local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", VT(3,3,3)) |
| 1045 | - | local part, endPoint = workspace:FindPartOnRay(ray, char) |
| 1045 | + | MakeForm(ORB,"Ball") |
| 1046 | - | vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change) |
| 1046 | + | local LOOP = 0 |
| 1047 | - | local pos = Position + (direction * (vm.Scale.Y/2)) |
| 1047 | + | repeat |
| 1048 | - | v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) |
| 1048 | + | Swait() |
| 1049 | - | vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0) |
| 1049 | + | LOOP = LOOP + 1 |
| 1050 | - | v.Transparency = v.Transparency + 0.1 |
| 1050 | + | ORB.CFrame = Torso.CFrame*CF(0,4+ORB.Size.X/2,0) |
| 1051 | - | if v.Transparency >= 1 then |
| 1051 | + | STRENGTH = STRENGTH + 0.3 |
| 1052 | - | v:Destroy() |
| 1052 | + | if STRENGTH > 200 then |
| 1053 | STRENGTH = 200 | |
| 1054 | else | |
| 1055 | ORB.Size = ORB.Size + VT(0.02,0.02,0.02) | |
| 1056 | - | elseif v.Name == "LIGHTNING" then |
| 1056 | + | |
| 1057 | - | local vm = v:FindFirstChildOfClass("BlockMesh")
|
| 1057 | + | if MESH.Scale.X < 120 then |
| 1058 | - | vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0) |
| 1058 | + | MESH.Scale = MESH.Scale + VT(5,0,5) |
| 1059 | - | if vm.Scale.X <= 0 then |
| 1059 | + | elseif MESH.Scale.X < 200 then |
| 1060 | - | v:Destroy() |
| 1060 | + | MESH.Scale = MESH.Scale + VT(0.6,0,0.6) |
| 1061 | end | |
| 1062 | if LOOP == 4 then | |
| 1063 | LOOP = 0 | |
| 1064 | POWER = POWER - 1 | |
| 1065 | end | |
| 1066 | - | if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then |
| 1066 | + | if MRANDOM(1,25) == 1 then |
| 1067 | - | velocityYFall = root.Velocity.Y/1.5 |
| 1067 | + | Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
|
| 1068 | end | |
| 1069 | - | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then |
| 1069 | + | G.cframe = CF(RootPart.Position,Mouse.Hit.p) |
| 1070 | - | velocityYFall2 = root.Velocity.Y/180 |
| 1070 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1071 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1072 | - | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then |
| 1072 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1073 | - | velocityYFall3 = root.Velocity.Y/1.5 |
| 1073 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1074 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1075 | - | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then |
| 1075 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1076 | - | velocityYFall4 = root.Velocity.Y/1.5 |
| 1076 | + | until (KEYHOLD == false and MESH.Scale.X >= 170) or POWER == 0 |
| 1077 | if STRENGTH >= 150 and STRENGTH ~= 200 then | |
| 1078 | - | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then |
| 1078 | + | TIER = 2 |
| 1079 | - | neckrotY = root.RotVelocity.Y/6 |
| 1079 | + | elseif STRENGTH == 200 then |
| 1080 | TIER = 3 | |
| 1081 | - | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then |
| 1081 | + | |
| 1082 | - | neckrotY2 = root.RotVelocity.Y/8 |
| 1082 | + | coroutine.resume(coroutine.create(function() |
| 1083 | ORB.CFrame = CF(ORB.Position,Mouse.Hit.p) | |
| 1084 | CreateSound(1112042117,ORB,5,0.8,false) | |
| 1085 | - | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then |
| 1085 | + | for i = 1, 200 do |
| 1086 | - | torsorotY = root.RotVelocity.Y/6 |
| 1086 | + | Swait() |
| 1087 | ORB.CFrame = ORB.CFrame*CF(0,0,-2) | |
| 1088 | - | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then |
| 1088 | + | if MRANDOM(1,5) == 1 then |
| 1089 | - | torsorotY2 = root.RotVelocity.Y/8 |
| 1089 | + | Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
|
| 1090 | end | |
| 1091 | local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2, Character) | |
| 1092 | if HIT ~= nil then | |
| 1093 | - | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 |
| 1093 | + | ORB.Transparency = 1 |
| 1094 | - | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 |
| 1094 | + | coroutine.resume(coroutine.create(function() |
| 1095 | local COLOR = ORB.Color | |
| 1096 | - | if attack == true then |
| 1096 | + | local POS = ORB.Position |
| 1097 | - | hum.WalkSpeed = 1 |
| 1097 | + | local SIZE = ORB.Size |
| 1098 | - | else |
| 1098 | + | local TIMES = 12 + TIER*3 |
| 1099 | - | hum.WalkSpeed = 8 |
| 1099 | + | local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", ORB.Size) |
| 1100 | FAKEORB.CFrame = CF(POS) | |
| 1101 | MakeForm(FAKEORB,"Ball") | |
| 1102 | - | if canjump == true then |
| 1102 | + | local TIME = 0 |
| 1103 | - | hum.JumpPower = 50 |
| 1103 | + | ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10) |
| 1104 | - | else |
| 1104 | + | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
|
| 1105 | - | hum.JumpPower = 0 |
| 1105 | + | for i = 1, 5 do |
| 1106 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1107 | end | |
| 1108 | - | local jumped = false |
| 1108 | + | for i = 1, TIMES*20 do |
| 1109 | - | local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0)) |
| 1109 | + | TIME = TIME + 1 |
| 1110 | - | local part1, endPoint = workspace:FindPartOnRay(ray1, char) |
| 1110 | + | wait() |
| 1111 | - | local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0)) |
| 1111 | + | if MRANDOM(1,math.ceil(5+(i/15))) == 1 then |
| 1112 | - | local part2, endPoint = workspace:FindPartOnRay(ray2, char) |
| 1112 | + | Lightning({Color = ORB.Color, Start = FAKEORB.Position, End = FAKEORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = i/5, Branches = false})
|
| 1113 | - | local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) |
| 1113 | + | end |
| 1114 | - | local part3, endPoint = workspace:FindPartOnRay(ray3, char) |
| 1114 | + | FAKEORB.Size = FAKEORB.Size - SIZE/(TIMES*20) |
| 1115 | - | local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) |
| 1115 | + | if TIME >= 20 then |
| 1116 | - | local part4, endPoint = workspace:FindPartOnRay(ray4, char) |
| 1116 | + | TIME = 0 |
| 1117 | ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10) | |
| 1118 | - | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end |
| 1118 | + | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
|
| 1119 | for i = 1, 5 do | |
| 1120 | - | local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) |
| 1120 | + | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
|
| 1121 | - | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) |
| 1121 | + | end |
| 1122 | end | |
| 1123 | - | local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) |
| 1123 | + | end |
| 1124 | - | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) |
| 1124 | + | FAKEORB:remove() |
| 1125 | end)) | |
| 1126 | - | if no_anim == false then |
| 1126 | + | break |
| 1127 | - | if hum.Health > 0 then |
| 1127 | + | |
| 1128 | - | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then |
| 1128 | + | |
| 1129 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) |
| 1129 | + | ORB:remove() |
| 1130 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1) |
| 1130 | + | end)) |
| 1131 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) |
| 1131 | + | for i=0, 1, 0.1 / Animation_Speed do |
| 1132 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) |
| 1132 | + | Swait() |
| 1133 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) |
| 1133 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1134 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) |
| 1134 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1135 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) |
| 1135 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1136 | - | elseif jumped == true then |
| 1136 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1137 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) |
| 1137 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1138 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1) |
| 1138 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1139 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2) |
| 1139 | + | |
| 1140 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2) |
| 1140 | + | coroutine.resume(coroutine.create(function() |
| 1141 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) |
| 1141 | + | for i = 1, 25 do |
| 1142 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) |
| 1142 | + | Swait() |
| 1143 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) |
| 1143 | + | RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25 |
| 1144 | - | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then |
| 1144 | + | RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25 |
| 1145 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) |
| 1145 | + | MESH.Scale = MESH.Scale - VT(3,0,3) |
| 1146 | - | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1) |
| 1146 | + | |
| 1147 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2) |
| 1147 | + | RING:remove() |
| 1148 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2) |
| 1148 | + | end)) |
| 1149 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) |
| 1149 | + | GRAV:remove() |
| 1150 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) |
| 1150 | + | G:remove() |
| 1151 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) |
| 1151 | + | ATTACK = false |
| 1152 | Rooted = false | |
| 1153 | - | for i=1,5 do |
| 1153 | + | |
| 1154 | - | if aiming_anim == true then |
| 1154 | + | |
| 1155 | - | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) |
| 1155 | + | --//=================================\\ |
| 1156 | - | if jumped == false then |
| 1156 | + | --|| ASSIGN THINGS TO KEYS |
| 1157 | - | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) |
| 1157 | + | --\\=================================// |
| 1158 | - | else |
| 1158 | + | |
| 1159 | - | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) |
| 1159 | + | function MouseDown(Mouse) |
| 1160 | if ATTACK == false then | |
| 1161 | - | if animid == 0 then |
| 1161 | + | |
| 1162 | - | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4) |
| 1162 | + | |
| 1163 | - | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2) |
| 1163 | + | |
| 1164 | - | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4) |
| 1164 | + | function MouseUp(Mouse) |
| 1165 | - | else |
| 1165 | + | HOLD = false |
| 1166 | - | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4) |
| 1166 | + | |
| 1167 | - | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2) |
| 1167 | + | |
| 1168 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4) |
| 1168 | + | function KeyDown(Key) |
| 1169 | KEYHOLD = true | |
| 1170 | - | else |
| 1170 | + | if Key == "q" and ATTACK == false and POWER >= 50 then |
| 1171 | - | if timer <= 0 then |
| 1171 | + | POWER = POWER - 50 |
| 1172 | - | animid = math.random(0,1) |
| 1172 | + | PoisonBolt() |
| 1173 | - | else |
| 1173 | + | |
| 1174 | - | timer = timer - 1 |
| 1174 | + | |
| 1175 | if Key == "r" and ATTACK == false and POWER >= 125 then | |
| 1176 | POWER = POWER - 125 | |
| 1177 | ToxicStomp() | |
| 1178 | end | |
| 1179 | ||
| 1180 | - | main_color = Color3.fromRGB(main.r,main.g,main.b) |
| 1180 | + | if Key == "x" and ATTACK == false and POWER >= 250 then |
| 1181 | - | pr.Value = main.r |
| 1181 | + | POWER = POWER - 250 |
| 1182 | - | pg.Value = main.g |
| 1182 | + | ToxicDevastation() |
| 1183 | - | pb.Value = main.b |
| 1183 | + | |
| 1184 | - | pv.Value = main.v |
| 1184 | + | |
| 1185 | - | idth.Value = themeid |
| 1185 | + | if string.byte(Key) == 48 and ATTACK == false and (POWER ~= MAXPOWER or Humanoid.Health ~= Humanoid.MaxHealth) then |
| 1186 | - | pith.Value = themepitch |
| 1186 | + | Charge() |
| 1187 | - | HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2) |
| 1187 | + | |
| 1188 | - | HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v) |
| 1188 | + | |
| 1189 | - | sine = sine + change |
| 1189 | + | if string.byte(Key) == 50 and ATTACK == false then |
| 1190 | - | if hum.Health <= 0 then |
| 1190 | + | if Walkspeed == 16 then |
| 1191 | - | debounce = true |
| 1191 | + | Walkspeed = 30 |
| 1192 | Speed = 30 | |
| 1193 | - | end) |
| 1193 | + | elseif Walkspeed == 30 then |
| 1194 | Walkspeed = 16 | |
| 1195 | Speed = 16 | |
| 1196 | end | |
| 1197 | end | |
| 1198 | end | |
| 1199 | ||
| 1200 | function KeyUp(Key) | |
| 1201 | KEYHOLD = false | |
| 1202 | end | |
| 1203 | ||
| 1204 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1205 | MouseDown(NEWKEY) | |
| 1206 | end) | |
| 1207 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1208 | MouseUp(NEWKEY) | |
| 1209 | end) | |
| 1210 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1211 | KeyDown(NEWKEY) | |
| 1212 | end) | |
| 1213 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1214 | KeyUp(NEWKEY) | |
| 1215 | end) | |
| 1216 | ||
| 1217 | --//=================================\\ | |
| 1218 | --\\=================================// | |
| 1219 | ||
| 1220 | ||
| 1221 | function unanchor() | |
| 1222 | if UNANCHOR == true then | |
| 1223 | g = Character:GetChildren() | |
| 1224 | for i = 1, #g do | |
| 1225 | if g[i].ClassName == "Part" then | |
| 1226 | g[i].Anchored = false | |
| 1227 | end | |
| 1228 | end | |
| 1229 | end | |
| 1230 | end | |
| 1231 | ||
| 1232 | ||
| 1233 | --//=================================\\ | |
| 1234 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1235 | --\\=================================// | |
| 1236 | ||
| 1237 | Humanoid.Changed:connect(function(Jump) | |
| 1238 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1239 | Humanoid.Jump = false | |
| 1240 | end | |
| 1241 | end) | |
| 1242 | ||
| 1243 | while true do | |
| 1244 | Swait() | |
| 1245 | script.Parent = WEAPONGUI | |
| 1246 | ANIMATE.Parent = nil | |
| 1247 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1248 | v:Stop(); | |
| 1249 | end | |
| 1250 | SINE = SINE + CHANGE | |
| 1251 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1252 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1253 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 1254 | local WALKSPEEDVALUE = 5 | |
| 1255 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1256 | if Humanoid.WalkSpeed <= 20 then | |
| 1257 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
| 1258 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1259 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
| 1260 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
| 1261 | else | |
| 1262 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
| 1263 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1264 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
| 1265 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
| 1266 | end | |
| 1267 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1268 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1269 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1270 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1271 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1272 | end | |
| 1273 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1274 | ANIM = "Jump" | |
| 1275 | if ATTACK == false then | |
| 1276 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1277 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1278 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1279 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1280 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1281 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1282 | end | |
| 1283 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1284 | ANIM = "Fall" | |
| 1285 | if ATTACK == false then | |
| 1286 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1287 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1288 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1289 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1290 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1291 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1292 | end | |
| 1293 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1294 | ANIM = "Idle" | |
| 1295 | if ATTACK == false then | |
| 1296 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1297 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1298 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1299 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1300 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1301 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1302 | end | |
| 1303 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1304 | ANIM = "Walk" | |
| 1305 | if ATTACK == false then | |
| 1306 | if Humanoid.WalkSpeed <= 20 then | |
| 1307 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1308 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1309 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed) | |
| 1310 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed) | |
| 1311 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 1312 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1313 | elseif Humanoid.WalkSpeed > 20 then | |
| 1314 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1315 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1316 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1317 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1318 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed) | |
| 1319 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed) | |
| 1320 | end | |
| 1321 | end | |
| 1322 | end | |
| 1323 | unanchor() | |
| 1324 | if Rooted == false then | |
| 1325 | Disable_Jump = false | |
| 1326 | Humanoid.WalkSpeed = Speed | |
| 1327 | elseif Rooted == true then | |
| 1328 | Disable_Jump = true | |
| 1329 | Humanoid.WalkSpeed = 0 | |
| 1330 | end | |
| 1331 | sick.SoundId = "rbxassetid://598848368" | |
| 1332 | sick.Looped = true | |
| 1333 | sick.Pitch = 1 | |
| 1334 | sick.Volume = 3 | |
| 1335 | sick.Parent = Torso | |
| 1336 | sick.Playing = true | |
| 1337 | MANACOVER:TweenSize(UD2(1 * (POWER / MAXPOWER), 0, 1, 0), "Out", "Quad", 0.1, 0.1) | |
| 1338 | MANATEXT.Text = POWER.."/"..MAXPOWER | |
| 1339 | HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1) | |
| 1340 | HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth | |
| 1341 | Humanoid.Health = Humanoid.Health + 0.05 | |
| 1342 | end | |
| 1343 | ||
| 1344 | --//=================================\\ | |
| 1345 | --\\=================================// | |
| 1346 | ||
| 1347 | ||
| 1348 | ||
| 1349 | ||
| 1350 | ||
| 1351 | --//====================================================\\-- | |
| 1352 | --|| END OF SCRIPT | |
| 1353 | --\\====================================================//-- |