SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- This script has been converted to FE by iPxter |
| 1 | + | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 6 | script.Parent = Player.Character | |
| 7 | ||
| 8 | --RemoteEvent for communicating | |
| 9 | local Event = Instance.new("RemoteEvent")
| |
| 10 | Event.Name = "UserInput_Event" | |
| 11 | ||
| 12 | --Fake event to make stuff like Mouse.KeyDown work | |
| 13 | local function fakeEvent() | |
| 14 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 15 | t.connect = t.Connect | |
| 16 | return t | |
| 17 | end | |
| 18 | ||
| 19 | --Creating fake input objects with fake variables | |
| 20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 22 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 23 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 24 | end} | |
| 25 | --Merged 2 functions into one by checking amount of arguments | |
| 26 | CAS.UnbindAction = CAS.BindAction | |
| 27 | ||
| 28 | --This function will trigger the events that have been :Connect()'ed | |
| 29 | local function te(self,ev,...) | |
| 30 | local t = m[ev] | |
| 31 | if t and t._fakeEvent and t.Function then | |
| 32 | t.Function(...) | |
| 33 | end | |
| 34 | end | |
| 35 | m.TrigEvent = te | |
| 36 | UIS.TrigEvent = te | |
| 37 | ||
| 38 | Event.OnServerEvent:Connect(function(plr,io) | |
| 39 | if plr~=Player then return end | |
| 40 | if io.isMouse then | |
| 41 | m.Target = io.Target | |
| 42 | m.Hit = io.Hit | |
| 43 | else | |
| 44 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 45 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 46 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 47 | end | |
| 48 | for _,t in pairs(CAS.Actions) do | |
| 49 | for _,k in pairs(t.Keys) do | |
| 50 | if k==io.KeyCode then | |
| 51 | t.Function(t.Name,io.UserInputState,io) | |
| 52 | end | |
| 53 | end | |
| 54 | end | |
| 55 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 56 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 57 | end | |
| 58 | end) | |
| 59 | Event.Parent = NLS([==[ | |
| 60 | local Player = game:GetService("Players").LocalPlayer
| |
| 61 | local Event = script:WaitForChild("UserInput_Event")
| |
| 62 | ||
| 63 | local UIS = game:GetService("UserInputService")
| |
| 64 | local input = function(io,a) | |
| 65 | if a then return end | |
| 66 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 67 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 68 | end | |
| 69 | UIS.InputBegan:Connect(input) | |
| 70 | UIS.InputEnded:Connect(input) | |
| 71 | ||
| 72 | local Mouse = Player:GetMouse() | |
| 73 | local h,t | |
| 74 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 75 | --If player is not moving their mouse, client won't fire events | |
| 76 | while wait(1/30) do | |
| 77 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 78 | h,t=Mouse.Hit,Mouse.Target | |
| 79 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 80 | end | |
| 81 | end]==],Player.Character) | |
| 82 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 83 | end | |
| 84 | ||
| 85 | ||
| 86 | ||
| 87 | - | pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
|
| 87 | + | local intro = true |
| 88 | - | local plr = owner |
| 88 | + | local Removeface = true |
| 89 | - | repeat wait() until plr.Character |
| 89 | + | wait(0.02) |
| 90 | - | plr = game.Players.LocalPlayer |
| 90 | + | Player = owner |
| 91 | - | char = plr.Character |
| 91 | + | Character = Player.Character |
| 92 | char = Character | |
| 93 | - | head = char.Head |
| 93 | + | |
| 94 | - | neck = torso.Neck |
| 94 | + | hed = char.Head |
| 95 | - | head.face:Destroy() |
| 95 | + | maincolor = BrickColor.new("Eggplant")
|
| 96 | - | sound = Instance.new("Sound", head)
|
| 96 | + | PlayerGui = Player.PlayerGui |
| 97 | - | sound.SoundId = "rbxassetid://" |
| 97 | + | Backpack = Player.Backpack |
| 98 | - | sound.Volume = 100 |
| 98 | + | Torso = Character.Torso |
| 99 | - | sound:Play() |
| 99 | + | Head = Character.Head |
| 100 | - | sound.Looped = true |
| 100 | + | Humanoid = Character.Humanoid |
| 101 | - | plr.Chatted:connect(function(message) |
| 101 | + | LeftArm = Character["Left Arm"] |
| 102 | - | if message:sub(1,4) == "Play" then |
| 102 | + | LeftLeg = Character["Left Leg"] |
| 103 | - | sound:Stop() |
| 103 | + | RightArm = Character["Right Arm"] |
| 104 | - | sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6) |
| 104 | + | RightLeg = Character["Right Leg"] |
| 105 | - | sound:Play() |
| 105 | + | LS = Torso["Left Shoulder"] |
| 106 | LH = Torso["Left Hip"] | |
| 107 | RS = Torso["Right Shoulder"] | |
| 108 | RH = Torso["Right Hip"] | |
| 109 | Face = Head.face | |
| 110 | Neck = Torso.Neck | |
| 111 | it = Instance.new | |
| 112 | - | ---- [[ Left Eye]] ---- |
| 112 | + | attacktype = 1 |
| 113 | vt = Vector3.new | |
| 114 | - | eye1 = Instance.new("Part", workspace)
|
| 114 | + | cf = CFrame.new |
| 115 | - | eye1.Anchored = false |
| 115 | + | euler = CFrame.fromEulerAnglesXYZ |
| 116 | - | eye1.Parent = head |
| 116 | + | angles = CFrame.Angles |
| 117 | - | eye1.TopSurface = 0 |
| 117 | + | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
| 118 | - | eye1.BrickColor = BrickColor.new("Black")
|
| 118 | + | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
| 119 | - | eye1.BottomSurface = 0 |
| 119 | + | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
| 120 | - | eye1m = Instance.new("SpecialMesh", eye1)
|
| 120 | + | RootPart = Character.HumanoidRootPart |
| 121 | - | eye1m.MeshType = Enum.MeshType.Sphere |
| 121 | + | RootJoint = RootPart.RootJoint |
| 122 | - | eye1m.Scale = Vector3.new(0.02,0.12,0.03) |
| 122 | + | RootCF = euler(-1.57, 0, 3.14) |
| 123 | - | ogsize = eye1m.Scale |
| 123 | + | attack = false |
| 124 | - | weld = Instance.new("Weld", head)
|
| 124 | + | equipped = false |
| 125 | - | weld.Part0 = eye1 |
| 125 | + | Mouse = Player:GetMouse() |
| 126 | - | weld.Part1 = head |
| 126 | + | mana = 0 |
| 127 | - | weld.C1 = CFrame.new(-.17,.14,-.57) |
| 127 | + | local idle = 0 |
| 128 | local Anim = "Idle" | |
| 129 | local ShotTarget = RootPart | |
| 130 | player = nil | |
| 131 | - | ---- [[ Right Eye ]] ---- |
| 131 | + | local Stats = Instance.new("Folder", Character)
|
| 132 | Stats.Name = "Stats" | |
| 133 | local Defense = Instance.new("NumberValue", Stats)
| |
| 134 | - | eye2 = Instance.new("Part", workspace)
|
| 134 | + | Defense.Name = "Defense" |
| 135 | - | eye2.Anchored = false |
| 135 | + | Defense.Value = 0.6 |
| 136 | - | eye2.Parent = head |
| 136 | + | local Speed = Instance.new("NumberValue", Stats)
|
| 137 | - | eye2.TopSurface = 0 |
| 137 | + | Speed.Name = "Speed" |
| 138 | - | eye2.BrickColor = BrickColor.new("Black")
|
| 138 | + | Speed.Value = 1.6625 |
| 139 | - | eye2.BottomSurface = 0 |
| 139 | + | local Damage = Instance.new("NumberValue", Stats)
|
| 140 | - | eye2m = Instance.new("SpecialMesh", eye2)
|
| 140 | + | Damage.Name = "Damage" |
| 141 | - | eye2m.MeshType = Enum.MeshType.Sphere |
| 141 | + | Damage.Value = 1 |
| 142 | - | eye2m.Scale = Vector3.new(0.02,0.12,0.03) |
| 142 | + | local BlockValue = Instance.new("BoolValue", Stats)
|
| 143 | - | ogsize = eye2m.Scale |
| 143 | + | BlockValue.Name = "BlockValue" |
| 144 | - | weld = Instance.new("Weld", head)
|
| 144 | + | BlockValue.Value = false |
| 145 | - | weld.Part0 = eye2 |
| 145 | + | local StaggerHitAnim = Instance.new("BoolValue", Stats)
|
| 146 | - | weld.Part1 = head |
| 146 | + | StaggerHitAnim.Name = "StaggerHitAnim" |
| 147 | - | weld.C1 = CFrame.new(.17,.14,-.57) |
| 147 | + | StaggerHitAnim.Value = false |
| 148 | local staghitanim = false | |
| 149 | local StaggerAnim = Instance.new("BoolValue", Stats)
| |
| 150 | StaggerAnim.Name = "StaggerAnim" | |
| 151 | - | ---- [[ Mouth ]] ---- |
| 151 | + | StaggerAnim.Value = false |
| 152 | local staganim = false | |
| 153 | - | mouth = Instance.new("Part", workspace)
|
| 153 | + | local StunAnim = Instance.new("BoolValue", Stats)
|
| 154 | - | mouth.Anchored = false |
| 154 | + | StunAnim.Name = "StunAnim" |
| 155 | - | mouth.Parent = head |
| 155 | + | StunAnim.Value = false |
| 156 | - | mouth.TopSurface = 0 |
| 156 | + | local stunanim = false |
| 157 | - | mouth.BrickColor = BrickColor.new("Black")
|
| 157 | + | local StunValue = Instance.new("NumberValue", Stats)
|
| 158 | - | mouth.BottomSurface = 0 |
| 158 | + | StunValue.Name = "StunValue" |
| 159 | - | mouth.Material = "SmoothPlastic" |
| 159 | + | StunValue.Value = 0 |
| 160 | - | mouthm = Instance.new("SpecialMesh", mouth)
|
| 160 | + | local cooldown1 = 0 |
| 161 | - | mouthm.MeshType = Enum.MeshType.Sphere |
| 161 | + | local cooldown2 = 0 |
| 162 | - | mouthm.Scale = Vector3.new(.13,0.1,0.05) |
| 162 | + | local cooldown3 = 0 |
| 163 | - | ogsize = mouthm.Scale |
| 163 | + | local cooldown4 = 0 |
| 164 | - | weld = Instance.new("Weld", head)
|
| 164 | + | local mana = 0 |
| 165 | - | weld.Part0 = mouth |
| 165 | + | CustomColor = BrickColor.new("Really black")
|
| 166 | - | weld.Part1 = head |
| 166 | + | Colorpart1 = CustomColor.r |
| 167 | - | weld.C1 = CFrame.new(0,-.25,-.6) |
| 167 | + | Colorpart2 = CustomColor.g |
| 168 | - | game:service'RunService'.RenderStepped:connect(function() |
| 168 | + | Colorpart3 = CustomColor.b |
| 169 | - | mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8) |
| 169 | + | local scrn = Instance.new("ScreenGui", PlayerGui)
|
| 170 | - | neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(mouthm.Scale.Y*100) +math.rad(-90),0,math.rad(180)),0.1) |
| 170 | + | local ud = UDim2.new |
| 171 | - | end) |
| 171 | + | local c3 = Color3.new |
| 172 | local skillcolorscheme = c3(1, 1, 1) | |
| 173 | local co1 = 0 | |
| 174 | local co2 = 0 | |
| 175 | local co3 = 0 | |
| 176 | local co4 = 0 | |
| 177 | local maxmana = 0 | |
| 178 | local maxstun = 1 | |
| 179 | local recovermana = 0 | |
| 180 | local losestun = 0 | |
| 181 | local stunwait = 0 | |
| 182 | local manawait = 0 | |
| 183 | local skill1mana = 0 | |
| 184 | local skill2mana = 0 | |
| 185 | local skill3mana = 0 | |
| 186 | local skill4mana = 0 | |
| 187 | local menuupdatespeed = 0 | |
| 188 | local constantupdate = false | |
| 189 | local showstats = false | |
| 190 | local showstunbar = false | |
| 191 | local lp = game.Players.LocalPlayer | |
| 192 | local chr = lp.Character | |
| 193 | local mouseV2 = lp:GetMouse() | |
| 194 | local euler = CFrame.fromEulerAnglesXYZ | |
| 195 | local rad = math.rad | |
| 196 | local trso = chr.Torso | |
| 197 | script.Name = "Soul Of Darkness" | |
| 198 | ||
| 199 | ||
| 200 | New = function(Object, Parent, Name, Data) | |
| 201 | local Object = Instance.new(Object) | |
| 202 | for Index, Value in pairs(Data or {}) do
| |
| 203 | Object[Index] = Value | |
| 204 | end | |
| 205 | Object.Parent = Parent | |
| 206 | Object.Name = Name | |
| 207 | return Object | |
| 208 | end | |
| 209 | Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://215931322",Volume = 1,Looped = true})
| |
| 210 | Music1.Pitch = 1.7 | |
| 211 | ||
| 212 | ||
| 213 | Music2 = New("Sound",Torso,"Music",{SoundId = "rbxassetid://215931322",Volume = 10,Looped = true})
| |
| 214 | Music2.Pitch = 1.7 | |
| 215 | ||
| 216 | TalkSound = New("Sound",Torso,"Music",{SoundId = "rbxassetid://615716445",Volume = 4,Looped = false})
| |
| 217 | TalkSound.Pitch = .2 | |
| 218 | ||
| 219 | ||
| 220 | ||
| 221 | ||
| 222 | ||
| 223 | ||
| 224 | hum = chr.Humanoid | |
| 225 | ||
| 226 | ||
| 227 | function newface() | |
| 228 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=0" | |
| 229 | if Removeface == true then | |
| 230 | char.Head.face:Destroy() | |
| 231 | end | |
| 232 | local eye12 = Instance.new("Part")
| |
| 233 | eye12.Parent = char | |
| 234 | eye12.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 235 | eye12.Transparency = 0 | |
| 236 | eye12.Shape = "Ball" | |
| 237 | eye12.BrickColor = maincolor | |
| 238 | eye12.Material = "Neon" | |
| 239 | eye12.CanCollide = false | |
| 240 | eye12.Name = "RightEye" | |
| 241 | local mesh2 = Instance.new("SpecialMesh",eye12)
| |
| 242 | mesh2.MeshType = "Sphere" | |
| 243 | mesh2.Scale = Vector3.new(.6, 1.2, 1) | |
| 244 | local weld1en2 = Instance.new("Weld")
| |
| 245 | weld1en2.Parent = char.Head | |
| 246 | weld1en2.Part0 = char.Head | |
| 247 | weld1en2.Part1 = eye12 | |
| 248 | weld1en2.C1 = CFrame.new(0.15, -0.15, 0.5175) | |
| 249 | local eye1 = Instance.new("Part")
| |
| 250 | eye1.Parent = char | |
| 251 | eye1.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 252 | eye1.Transparency = 0 | |
| 253 | eye1.Shape = "Ball" | |
| 254 | eye1.BrickColor = maincolor | |
| 255 | eye1.Material = "Neon" | |
| 256 | eye1.CanCollide = false | |
| 257 | eye1.Name = "LeftEye" | |
| 258 | local mesh = Instance.new("SpecialMesh",eye1)
| |
| 259 | mesh.MeshType = "Sphere" | |
| 260 | mesh.Scale = Vector3.new(.6, 1.2, 1) | |
| 261 | local weld1en = Instance.new("Weld")
| |
| 262 | weld1en.Parent = char.Head | |
| 263 | weld1en.Part0 = char.Head | |
| 264 | weld1en.Part1 = eye1 | |
| 265 | weld1en.C1 = CFrame.new(-0.15, -0.15, 0.5175) | |
| 266 | end | |
| 267 | ||
| 268 | ||
| 269 | ||
| 270 | function CreateMesh(parent, id, x, y, z, texture) | |
| 271 | local m=Instance.new("SpecialMesh", parent)
| |
| 272 | m.MeshType = "FileMesh" | |
| 273 | m.MeshId="http://www.roblox.com/asset/?id="..id | |
| 274 | if texture ~= nil then | |
| 275 | m.TextureId="http://www.roblox.com/asset/?id="..texture | |
| 276 | end | |
| 277 | m.Scale = Vector3.new(x,y,z) | |
| 278 | end | |
| 279 | ||
| 280 | local hat = nil | |
| 281 | ||
| 282 | Hat=function() | |
| 283 | hat = Instance.new("Part", chr)
| |
| 284 | hat.Transparency = 1 | |
| 285 | hat.Name = "Top hat" | |
| 286 | hat.Locked = true | |
| 287 | hat.BrickColor = BrickColor.new("Really black")
| |
| 288 | hat.CanCollide=true | |
| 289 | hat.Size=Vector3.new(1,1,1) | |
| 290 | local hatw = Instance.new("Weld",hat)
| |
| 291 | hatw.Part0=hat | |
| 292 | hatw.Part1=Head | |
| 293 | hatw.C0=CFrame.new(0,-1.7,0) | |
| 294 | hatw.C1=euler(rad(0),rad(0),rad(0)) | |
| 295 | end | |
| 296 | ||
| 297 | Hat() | |
| 298 | ||
| 299 | ||
| 300 | ||
| 301 | function Name(msg) | |
| 302 | if hat.Parent then | |
| 303 | pcall(function() | |
| 304 | local Gui = Instance.new('BillboardGui', hat)
| |
| 305 | Gui.ExtentsOffset = Vector3.new(0,1.5,0) | |
| 306 | Gui.Size = UDim2.new(0,200,0,300) | |
| 307 | local Frame = Instance.new('Frame',Gui)
| |
| 308 | Frame.BackgroundTransparency = 1 | |
| 309 | Frame.Size = UDim2.new(1,0,1,0) | |
| 310 | local Txt = Instance.new('TextLabel',Frame)
| |
| 311 | Txt.BackgroundTransparency = 1 | |
| 312 | Txt.Size = UDim2.new(1,0,1,0) | |
| 313 | Txt.Font = 'ArialBold' | |
| 314 | Txt.FontSize = 'Size24' | |
| 315 | Txt.Text = msg | |
| 316 | Txt.TextColor3 = BrickColor.new("Really black").Color
| |
| 317 | Txt.TextStrokeColor3 = Color3.new(1,0,0) | |
| 318 | Txt.TextStrokeTransparency = 0 | |
| 319 | Txt.TextWrapped = true | |
| 320 | Txt.TextScaled = false | |
| 321 | end) | |
| 322 | else | |
| 323 | end | |
| 324 | end | |
| 325 | ||
| 326 | function Chat(msg) -- Credit to jillmiles1, kthxbye | |
| 327 | if hat.Parent then | |
| 328 | pcall(function() | |
| 329 | if hat:FindFirstChild("Vanta Chat Gui") then
| |
| 330 | hat['Vanta Chat Gui']:destroy() | |
| 331 | end | |
| 332 | local Gui = Instance.new('BillboardGui', hat)
| |
| 333 | Gui.Name = "Vanta Chat Gui" | |
| 334 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 335 | Gui.Size = UDim2.new(0,200,0,300) | |
| 336 | local Frame = Instance.new('Frame',Gui)
| |
| 337 | Frame.BackgroundTransparency = 1 | |
| 338 | Frame.Size = UDim2.new(1,0,1,0) | |
| 339 | local Txt = Instance.new('TextLabel',Frame)
| |
| 340 | Txt.BackgroundTransparency = 1 | |
| 341 | Txt.Size = UDim2.new(1,0,1,0) | |
| 342 | Txt.Font = 'ArialBold' | |
| 343 | Txt.Name = "ChatGui" | |
| 344 | Txt.FontSize = 'Size24' | |
| 345 | Txt.Text = '' | |
| 346 | Txt.TextColor3 = BrickColor.new("Really black").Color
| |
| 347 | Txt.TextStrokeColor3 = Color3.new(.2,0,.6) | |
| 348 | Txt.TextStrokeTransparency = .5 | |
| 349 | Txt.TextWrapped = true | |
| 350 | Txt.TextScaled = false | |
| 351 | ||
| 352 | delay(wait(),function() | |
| 353 | for v = 1, #msg do | |
| 354 | Txt.Text=string.sub(msg,1,v) | |
| 355 | TalkSound:Play() | |
| 356 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 357 | wait(.009) | |
| 358 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 359 | wait(.009) | |
| 360 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 361 | end; | |
| 362 | ||
| 363 | ||
| 364 | ||
| 365 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 366 | wait(.03) | |
| 367 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 368 | wait(.03) | |
| 369 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 370 | wait(.03) | |
| 371 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 372 | wait(.03) | |
| 373 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 374 | wait(.03) | |
| 375 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 376 | wait(.03) | |
| 377 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 378 | wait(.03) | |
| 379 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 380 | wait(.03) | |
| 381 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 382 | wait(.03) | |
| 383 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 384 | wait(.03) | |
| 385 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 386 | wait(.03) | |
| 387 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 388 | wait(.03) | |
| 389 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 390 | wait(.03) | |
| 391 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 392 | wait(.03) | |
| 393 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 394 | wait(.03) | |
| 395 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 396 | wait(.03) | |
| 397 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 398 | wait(.03) | |
| 399 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 400 | wait(.03) | |
| 401 | ||
| 402 | Txt.TextStrokeTransparency = .6 | |
| 403 | wait() | |
| 404 | Txt.TextStrokeTransparency = .7 | |
| 405 | wait() | |
| 406 | Txt.TextStrokeTransparency = .8 | |
| 407 | wait() | |
| 408 | Txt.TextStrokeTransparency = .9 | |
| 409 | wait() | |
| 410 | Txt.TextStrokeTransparency = 1 | |
| 411 | wait() | |
| 412 | ||
| 413 | for v = 1, #Txt.Text do | |
| 414 | Txt.Text=string.sub(msg,-1,v) | |
| 415 | ||
| 416 | ||
| 417 | ||
| 418 | ||
| 419 | ||
| 420 | ||
| 421 | ||
| 422 | end; | |
| 423 | Gui:remove() | |
| 424 | end) | |
| 425 | end) | |
| 426 | else | |
| 427 | end | |
| 428 | end | |
| 429 | ||
| 430 | ||
| 431 | ||
| 432 | ||
| 433 | function PlaySound(id, pitch, looped) | |
| 434 | epicsound = Instance.new("Sound")
| |
| 435 | epicsound.Name = "FazbearSound" | |
| 436 | epicsound.SoundId = "rbxassetid://"..id | |
| 437 | epicsound.Volume = 1.5 | |
| 438 | epicsound.Pitch = pitch | |
| 439 | if looped == nil then | |
| 440 | looped = true | |
| 441 | else | |
| 442 | looped = looped | |
| 443 | end | |
| 444 | wait() | |
| 445 | epicsound.Looped = looped | |
| 446 | epicsound.Parent = workspace | |
| 447 | es=epicsound:clone() | |
| 448 | es:Stop() | |
| 449 | es.Parent = chr | |
| 450 | wait() | |
| 451 | es:Play() | |
| 452 | end | |
| 453 | ||
| 454 | ||
| 455 | ||
| 456 | ||
| 457 | lp.Chatted:connect(function(msg) | |
| 458 | Chat(msg) | |
| 459 | end) | |
| 460 | ||
| 461 | goldie=true | |
| 462 | ||
| 463 | ||
| 464 | function StopMusic() | |
| 465 | if chr:FindFirstChild("FazbearSound") then
| |
| 466 | if chr.FazbearSound.ClassName == "Sound" then | |
| 467 | chr.FazbearSound:Stop() | |
| 468 | wait() | |
| 469 | chr.FazbearSound:Destroy() | |
| 470 | end | |
| 471 | end | |
| 472 | end | |
| 473 | ||
| 474 | Name("")
| |
| 475 | ||
| 476 | ||
| 477 | mouseV2.KeyDown:connect(function(key) | |
| 478 | if key == "g" then | |
| 479 | if goldie==false then | |
| 480 | goldie=true | |
| 481 | ||
| 482 | elseif goldie==true then | |
| 483 | goldie=false | |
| 484 | ||
| 485 | end | |
| 486 | elseif key == "q" then -- Plays a song | |
| 487 | StopMusic() | |
| 488 | PlaySound(449394841, 0.8, false) | |
| 489 | elseif key == "e" then -- Plays a song | |
| 490 | StopMusic() | |
| 491 | PlaySound(449394892, 0.8, false) | |
| 492 | wait(2.4) | |
| 493 | StopMusic() | |
| 494 | elseif key == "t" then -- Stops any sound(s) playing from your torso | |
| 495 | StopMusic() | |
| 496 | ||
| 497 | end | |
| 498 | end) | |
| 499 | ||
| 500 | ||
| 501 | ||
| 502 | hum.Died:connect(function() | |
| 503 | es.Pitch = 10 | |
| 504 | wait() | |
| 505 | es:Pause() | |
| 506 | es:Stop() | |
| 507 | es.Name = "Ded" | |
| 508 | wait() | |
| 509 | es:Destroy() | |
| 510 | end) | |
| 511 | ||
| 512 | ||
| 513 | ||
| 514 | ||
| 515 | ||
| 516 | ||
| 517 | function makeframe(par, trans, pos, size, color, name) | |
| 518 | local frame = Instance.new("Frame")
| |
| 519 | frame.Parent = par | |
| 520 | frame.BackgroundTransparency = trans | |
| 521 | frame.BorderSizePixel = 0 | |
| 522 | frame.Position = pos | |
| 523 | frame.Size = size | |
| 524 | frame.BackgroundColor3 = color | |
| 525 | frame.Name = name | |
| 526 | return frame | |
| 527 | end | |
| 528 | function makelabel(par, text, trans, stroketrans, name) | |
| 529 | local label = Instance.new("TextLabel")
| |
| 530 | label.Parent = par | |
| 531 | label.BackgroundTransparency = 1 | |
| 532 | label.Size = ud(1, 0, 1, 0) | |
| 533 | label.Position = ud(0, 0, 0, 0) | |
| 534 | label.TextColor3 = c3(255, 255, 255) | |
| 535 | label.TextStrokeTransparency = stroketrans | |
| 536 | label.TextTransparency = trans | |
| 537 | label.FontSize = Enum.FontSize.Size32 | |
| 538 | label.Font = Enum.Font.Legacy | |
| 539 | label.BorderSizePixel = 0 | |
| 540 | label.TextScaled = true | |
| 541 | label.Text = text | |
| 542 | label.Name = name | |
| 543 | return label | |
| 544 | end | |
| 545 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1") | |
| 546 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2") | |
| 547 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3") | |
| 548 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4") | |
| 549 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1") | |
| 550 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2") | |
| 551 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3") | |
| 552 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4") | |
| 553 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
| 554 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
| 555 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
| 556 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
| 557 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
| 558 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
| 559 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
| 560 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar") | |
| 561 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover") | |
| 562 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
| 563 | if showstunbar == true then | |
| 564 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame") | |
| 565 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar") | |
| 566 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
| 567 | end | |
| 568 | if showstats == true then | |
| 569 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame") | |
| 570 | damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame") | |
| 571 | speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame") | |
| 572 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
| 573 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
| 574 | speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text") | |
| 575 | end | |
| 576 | function NoOutline(Part) | |
| 577 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 578 | end | |
| 579 | local weldBetween = function(a, b) | |
| 580 | local weldd = Instance.new("ManualWeld")
| |
| 581 | weldd.Part0 = a | |
| 582 | weldd.Part1 = b | |
| 583 | weldd.C0 = CFrame.new() | |
| 584 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 585 | weldd.Parent = a | |
| 586 | return weldd | |
| 587 | end | |
| 588 | ArtificialHeartbeat = Instance.new("BindableEvent", script)
| |
| 589 | ArtificialHeartbeat.Name = "ArtificialHeartbeat" | |
| 590 | script:WaitForChild("ArtificialHeartbeat")
| |
| 591 | frame = 0.016666666666666666 | |
| 592 | tf = 0 | |
| 593 | allowframeloss = false | |
| 594 | tossremainder = false | |
| 595 | lastframe = tick() | |
| 596 | script.ArtificialHeartbeat:Fire() | |
| 597 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 598 | tf = tf + s | |
| 599 | if tf >= frame then | |
| 600 | if allowframeloss then | |
| 601 | script.ArtificialHeartbeat:Fire() | |
| 602 | lastframe = tick() | |
| 603 | else | |
| 604 | for i = 1, math.floor(tf / frame) do | |
| 605 | script.ArtificialHeartbeat:Fire() | |
| 606 | end | |
| 607 | lastframe = tick() | |
| 608 | end | |
| 609 | if tossremainder then | |
| 610 | tf = 0 | |
| 611 | else | |
| 612 | tf = tf - frame * math.floor(tf / frame) | |
| 613 | end | |
| 614 | end | |
| 615 | end) | |
| 616 | function nooutline(part) | |
| 617 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 618 | end | |
| 619 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
| 620 | local fp = it("Part")
| |
| 621 | fp.formFactor = formfactor | |
| 622 | fp.Parent = parent | |
| 623 | fp.Reflectance = reflectance | |
| 624 | fp.Transparency = transparency | |
| 625 | fp.CanCollide = false | |
| 626 | fp.Locked = true | |
| 627 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
| 628 | fp.Name = name | |
| 629 | fp.Size = size | |
| 630 | fp.Position = Character.Torso.Position | |
| 631 | nooutline(fp) | |
| 632 | fp.Material = material | |
| 633 | fp:BreakJoints() | |
| 634 | return fp | |
| 635 | end | |
| 636 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 637 | local mesh = it(Mesh) | |
| 638 | mesh.Parent = part | |
| 639 | if Mesh == "SpecialMesh" then | |
| 640 | mesh.MeshType = meshtype | |
| 641 | mesh.MeshId = meshid | |
| 642 | end | |
| 643 | mesh.Offset = offset | |
| 644 | mesh.Scale = scale | |
| 645 | return mesh | |
| 646 | end | |
| 647 | function weld(parent, part0, part1, c0, c1) | |
| 648 | local weld = it("Weld")
| |
| 649 | weld.Parent = parent | |
| 650 | weld.Part0 = part0 | |
| 651 | weld.Part1 = part1 | |
| 652 | weld.C0 = c0 | |
| 653 | weld.C1 = c1 | |
| 654 | return weld | |
| 655 | end | |
| 656 | Humanoid.CameraOffset = vt(0, 12, 0) | |
| 657 | Humanoid.JumpPower = Humanoid.JumpPower * 2 | |
| 658 | coroutine.resume(coroutine.create(function() | |
| 659 | Humanoid.MaxHealth = 50000 | |
| 660 | wait(0.1) | |
| 661 | Humanoid.Health = Humanoid.MaxHealth | |
| 662 | end)) | |
| 663 | m = Instance.new("Model", Character)
| |
| 664 | m.Name = "Outer Being" | |
| 665 | healthscript = Character:FindFirstChild("Health")
| |
| 666 | if healthscript ~= nil then | |
| 667 | healthscript:Destroy() | |
| 668 | end | |
| 669 | Effects = Instance.new("Folder", m)
| |
| 670 | Effects.Name = "Effects" | |
| 671 | local outerbeingtransparency = 1 | |
| 672 | local head2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))head2.Material = "Neon" | |
| 673 | local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25)*4)
| |
| 674 | local torso2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))torso2.Material = "Neon" | |
| 675 | local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25)*4)
| |
| 676 | local leftarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))leftarm2.Material = "Neon" | |
| 677 | local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 678 | local rightarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))rightarm2.Material = "Neon" | |
| 679 | local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 680 | local leftleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))leftleg2.Material = "Neon" | |
| 681 | local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 682 | local rightleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))rightleg2.Material = "Neon" | |
| 683 | ||
| 684 | local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
| |
| 685 | head2.CFrame = Head.CFrame | |
| 686 | torso2.CFrame = Head.CFrame | |
| 687 | leftarm2.CFrame = Head.CFrame | |
| 688 | rightarm2.CFrame = Head.CFrame | |
| 689 | leftleg2.CFrame = Head.CFrame | |
| 690 | rightleg2.CFrame = Head.CFrame | |
| 691 | local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 692 | local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 693 | local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 694 | local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 695 | local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 696 | local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
| 697 | head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0) | |
| 698 | torso2weld.C1 = cf(0, 0, 0) | |
| 699 | rightarm2weld.C1 = cf(0, 2.5, -0.5) | |
| 700 | leftarm2weld.C1 = cf(0, 2.5, -0.5) | |
| 701 | rightleg2weld.C1 = cf(0, 5, 0) | |
| 702 | leftleg2weld.C1 = cf(0, 5, 0) | |
| 703 | ||
| 704 | coroutine.resume(coroutine.create(function() | |
| 705 | while Humanoid.Health ~= 0 do | |
| 706 | ArtificialHeartbeat.Event:wait() | |
| 707 | head2weld.C0 = cf(0, 4, 0) * Neck.C0 | |
| 708 | torso2weld.C0 = cf(0, 0, 0) | |
| 709 | rightarm2weld.C0 = cf(6, 2, 0) * RW.C0 | |
| 710 | leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0 | |
| 711 | rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0 | |
| 712 | leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0 | |
| 713 | head2.Transparency = outerbeingtransparency | |
| 714 | torso2.Transparency = outerbeingtransparency | |
| 715 | leftarm2.Transparency = outerbeingtransparency | |
| 716 | rightarm2.Transparency = outerbeingtransparency | |
| 717 | leftleg2.Transparency = outerbeingtransparency | |
| 718 | rightleg2.Transparency = outerbeingtransparency | |
| 719 | end | |
| 720 | end)) | |
| 721 | Humanoid.Died:connect(function() | |
| 722 | end) | |
| 723 | for i, v in pairs(Character:GetChildren()) do | |
| 724 | if v:IsA("Model") then
| |
| 725 | for _, c in pairs(v:GetChildren()) do | |
| 726 | if c:IsA("Part") then
| |
| 727 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 728 | end | |
| 729 | end | |
| 730 | end | |
| 731 | end | |
| 732 | tran = 0 | |
| 733 | for i,v in pairs(Character:GetChildren()) do | |
| 734 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
| 735 | Glow1 = Color3.new(.1,0,.6) | |
| 736 | Glow2 = Color3.new(0,0,0) | |
| 737 | ||
| 738 | GlowParticle = Instance.new("ParticleEmitter",v)
| |
| 739 | GlowParticle.LightEmission = 1 | |
| 740 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
| 741 | GlowParticle.Size = NumberSequence.new(0,2) | |
| 742 | ||
| 743 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845" | |
| 744 | GlowParticle.Transparency = NumberSequence.new(tran,1) | |
| 745 | GlowParticle.LockedToPart = true | |
| 746 | GlowParticle.Lifetime = NumberRange.new(0.5) | |
| 747 | GlowParticle.Rate= 300 | |
| 748 | GlowParticle.Speed =NumberRange.new(0) | |
| 749 | end end | |
| 750 | print([[ | |
| 751 | Vanta loaded. | |
| 752 | Unleash your power on your enemies.]]) | |
| 753 | function so(id, par, vol, pit) | |
| 754 | coroutine.resume(coroutine.create(function() | |
| 755 | local sou = Instance.new("Sound", par or workspace)
| |
| 756 | sou.Volume = vol | |
| 757 | sou.Pitch = pit or 1 | |
| 758 | sou.SoundId = id | |
| 759 | ArtificialHeartbeat.Event:wait() | |
| 760 | sou:play() | |
| 761 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 762 | end)) | |
| 763 | end | |
| 764 | function clerp(a, b, t) | |
| 765 | local qa = {
| |
| 766 | QuaternionFromCFrame(a) | |
| 767 | } | |
| 768 | local qb = {
| |
| 769 | QuaternionFromCFrame(b) | |
| 770 | } | |
| 771 | local ax, ay, az = a.x, a.y, a.z | |
| 772 | local bx, by, bz = b.x, b.y, b.z | |
| 773 | local _t = 1 - t | |
| 774 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 775 | end | |
| 776 | function QuaternionFromCFrame(cf) | |
| 777 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 778 | local trace = m00 + m11 + m22 | |
| 779 | if trace > 0 then | |
| 780 | local s = math.sqrt(1 + trace) | |
| 781 | local recip = 0.5 / s | |
| 782 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 783 | else | |
| 784 | local i = 0 | |
| 785 | if m00 < m11 then | |
| 786 | i = 1 | |
| 787 | end | |
| 788 | if m22 > (i == 0 and m00 or m11) then | |
| 789 | i = 2 | |
| 790 | end | |
| 791 | if i == 0 then | |
| 792 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 793 | local recip = 0.5 / s | |
| 794 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 795 | elseif i == 1 then | |
| 796 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 797 | local recip = 0.5 / s | |
| 798 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 799 | elseif i == 2 then | |
| 800 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 801 | local recip = 0.5 / s | |
| 802 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 803 | end | |
| 804 | end | |
| 805 | end | |
| 806 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 807 | local xs, ys, zs = x + x, y + y, z + z | |
| 808 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 809 | local xx = x * xs | |
| 810 | local xy = x * ys | |
| 811 | local xz = x * zs | |
| 812 | local yy = y * ys | |
| 813 | local yz = y * zs | |
| 814 | local zz = z * zs | |
| 815 | 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)) | |
| 816 | end | |
| 817 | function QuaternionSlerp(a, b, t) | |
| 818 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 819 | local startInterp, finishInterp | |
| 820 | if cosTheta >= 1.0E-4 then | |
| 821 | if 1 - cosTheta > 1.0E-4 then | |
| 822 | local theta = math.acos(cosTheta) | |
| 823 | local invSinTheta = 1 / math.sin(theta) | |
| 824 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 825 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 826 | else | |
| 827 | startInterp = 1 - t | |
| 828 | finishInterp = t | |
| 829 | end | |
| 830 | elseif 1 + cosTheta > 1.0E-4 then | |
| 831 | local theta = math.acos(-cosTheta) | |
| 832 | local invSinTheta = 1 / math.sin(theta) | |
| 833 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 834 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 835 | else | |
| 836 | startInterp = t - 1 | |
| 837 | finishInterp = t | |
| 838 | end | |
| 839 | 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 | |
| 840 | end | |
| 841 | function rayCast(Pos, Dir, Max, Ignore) | |
| 842 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 843 | end | |
| 844 | function makegui(cframe, text, color) | |
| 845 | local c = Instance.new("Part")
| |
| 846 | c.Size = vt(0.2, 0.2, 0.2) | |
| 847 | c.Transparency = 1 | |
| 848 | Instance.new("BodyGyro").Parent = c
| |
| 849 | c.Parent = Effects | |
| 850 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
| 851 | local f = Instance.new("BodyPosition")
| |
| 852 | f.P = 2000 | |
| 853 | f.D = 100 | |
| 854 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
| 855 | f.position = c.Position + vt(0, 6, 0) | |
| 856 | f.Parent = c | |
| 857 | game:GetService("Debris"):AddItem(c, 5)
| |
| 858 | c.CanCollide = false | |
| 859 | c.Parent = workspace | |
| 860 | c.CanCollide = false | |
| 861 | local bg = Instance.new("BillboardGui", c)
| |
| 862 | bg.Adornee = c | |
| 863 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 864 | bg.StudsOffset = vt(-2, 2, 0) | |
| 865 | bg.AlwaysOnTop = false | |
| 866 | local tl = Instance.new("TextLabel", bg)
| |
| 867 | tl.BackgroundTransparency = 1 | |
| 868 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 869 | tl.Text = text | |
| 870 | tl.Font = Enum.Font.SourceSans | |
| 871 | tl.FontSize = Enum.FontSize.Size42 | |
| 872 | tl.TextColor3 = color | |
| 873 | tl.TextScaled = false | |
| 874 | tl.TextStrokeTransparency = 0 | |
| 875 | tl.TextScaled = true | |
| 876 | tl.TextWrapped = true | |
| 877 | f.Parent = c | |
| 878 | coroutine.resume(coroutine.create(function() | |
| 879 | wait(0.25) | |
| 880 | for i = 1, 5 do | |
| 881 | ArtificialHeartbeat.Event:wait() | |
| 882 | f.position = c.Position - vt(0, 0.5, 0) | |
| 883 | end | |
| 884 | end)) | |
| 885 | coroutine.resume(coroutine.create(function() | |
| 886 | wait(2) | |
| 887 | for i = 1, 10 do | |
| 888 | ArtificialHeartbeat.Event:wait() | |
| 889 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
| 890 | tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1 | |
| 891 | f.position = c.Position + vt(0, 0.5, 0) | |
| 892 | end | |
| 893 | c.Parent = nil | |
| 894 | end)) | |
| 895 | end | |
| 896 | local CritChance = Instance.new("NumberValue", Stats)
| |
| 897 | CritChance.Name = "CritChance" | |
| 898 | CritChance.Value = 1 | |
| 899 | local critchancenumber = 50 | |
| 900 | local cancrit = false | |
| 901 | local canpenetratearmor = false | |
| 902 | local cancollidewithhitbox = false | |
| 903 | local sethitblockvaluetofalse = true | |
| 904 | local antiteamkill = false | |
| 905 | local HitPlayerSounds = {
| |
| 906 | 199149137, | |
| 907 | 199149186, | |
| 908 | 199149221, | |
| 909 | 199149235, | |
| 910 | 199149269, | |
| 911 | 199149297 | |
| 912 | } | |
| 913 | local HitArmorSounds = {
| |
| 914 | 199149321, | |
| 915 | 199149338, | |
| 916 | 199149367, | |
| 917 | 199149409, | |
| 918 | 199149452 | |
| 919 | } | |
| 920 | local HitWeaponSounds = {
| |
| 921 | 199148971, | |
| 922 | 199149025, | |
| 923 | 199149072, | |
| 924 | 199149109, | |
| 925 | 199149119 | |
| 926 | } | |
| 927 | local HitBlockSounds = {199148933, 199148947}
| |
| 928 | function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
| 929 | if hit.Parent == nil then | |
| 930 | return | |
| 931 | end | |
| 932 | h = hit.Parent:FindFirstChild("Humanoid")
| |
| 933 | for _, v in pairs(hit.Parent:children()) do | |
| 934 | if v:IsA("Humanoid") then
| |
| 935 | h = v | |
| 936 | end | |
| 937 | end | |
| 938 | if antiteamkill == true then | |
| 939 | if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then | |
| 940 | opponent = game.Players:FindFirstChild(hit.Parent.Name) | |
| 941 | end | |
| 942 | if opponent ~= nil and opponent.TeamColor == Player.TeamColor then | |
| 943 | return | |
| 944 | end | |
| 945 | end | |
| 946 | if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
| |
| 947 | StaggerHitAnim.Value = true | |
| 948 | so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
| |
| 949 | return | |
| 950 | end | |
| 951 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
| |
| 952 | h = hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 953 | end | |
| 954 | if hit.Parent.className == "Hat" then | |
| 955 | hit = hit.Parent.Parent:findFirstChild("Head")
| |
| 956 | end | |
| 957 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 958 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 959 | return | |
| 960 | end | |
| 961 | if hit.Parent:findFirstChild("Stats") ~= nil then
| |
| 962 | if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
| |
| 963 | hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
| |
| 964 | end | |
| 965 | elseif hit.Parent:findFirstChild("StunValue") ~= nil then
| |
| 966 | hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
| |
| 967 | end | |
| 968 | if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
| |
| 969 | hit.Parent:findFirstChild("StaggerAnim").Value = true
| |
| 970 | end | |
| 971 | if hit.Parent:findFirstChild("Stats") ~= nil then
| |
| 972 | if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
| |
| 973 | makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
| 974 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
| |
| 975 | if ranged ~= true then | |
| 976 | if sethitblockvaluetofalse == true then | |
| 977 | hit.Parent.Stats:findFirstChild("BlockValue").Value = false
| |
| 978 | end | |
| 979 | StaggerAnim.Value = true | |
| 980 | end | |
| 981 | return | |
| 982 | end | |
| 983 | elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
| |
| 984 | makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
| 985 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
| |
| 986 | if ranged ~= true then | |
| 987 | if sethitblockvaluetofalse == true then | |
| 988 | hit.Parent:findFirstChild("BlockValue").Value = false
| |
| 989 | end | |
| 990 | StaggerAnim.Value = true | |
| 991 | end | |
| 992 | return | |
| 993 | end | |
| 994 | local D = math.random(minim, maxim) * Damage.Value | |
| 995 | if hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 996 | if hit.Parent.Stats:FindFirstChild("Defense") then
| |
| 997 | if canpenetratearmor == true then | |
| 998 | else | |
| 999 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
| |
| 1000 | end | |
| 1001 | elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
| |
| 1002 | end | |
| 1003 | elseif hit.Parent:FindFirstChild("Defense") then
| |
| 1004 | if canpenetratearmor == true then | |
| 1005 | else | |
| 1006 | D = D / hit.Parent:FindFirstChild("Defense").Value
| |
| 1007 | end | |
| 1008 | elseif hit.Parent:FindFirstChild("Defense") == nil then
| |
| 1009 | end | |
| 1010 | if cancrit == true then | |
| 1011 | CritChance.Value = math.random(1, critchancenumber) | |
| 1012 | if CritChance.Value == critchancenumber then | |
| 1013 | D = D * 2 | |
| 1014 | end | |
| 1015 | end | |
| 1016 | h.Health = h.Health - D | |
| 1017 | if D <= 3 and staghit == true then | |
| 1018 | if ranged ~= true then | |
| 1019 | StaggerHitAnim.Value = true | |
| 1020 | end | |
| 1021 | so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
| |
| 1022 | elseif D > 3 and ranged ~= true then | |
| 1023 | so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
| |
| 1024 | end | |
| 1025 | if D > 2 and D < 20 then | |
| 1026 | if CritChance.Value == critchancenumber then | |
| 1027 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
| 1028 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
| |
| 1029 | else | |
| 1030 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0)) | |
| 1031 | end | |
| 1032 | elseif D >= 20 then | |
| 1033 | if CritChance.Value == critchancenumber then | |
| 1034 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
| 1035 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
| |
| 1036 | else | |
| 1037 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0)) | |
| 1038 | end | |
| 1039 | else | |
| 1040 | if D <= 2 then | |
| 1041 | if CritChance.Value == critchancenumber then | |
| 1042 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
| 1043 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
| |
| 1044 | else | |
| 1045 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706)) | |
| 1046 | end | |
| 1047 | else | |
| 1048 | end | |
| 1049 | end | |
| 1050 | if Type == "Normal" then | |
| 1051 | vp = Instance.new("BodyVelocity")
| |
| 1052 | vp.P = 500 | |
| 1053 | vp.maxForce = vt(math.huge, 0, math.huge) | |
| 1054 | if KnockbackType == 1 then | |
| 1055 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1056 | elseif KnockbackType == 2 then | |
| 1057 | vp.velocity = Property.CFrame.lookVector * knockback | |
| 1058 | end | |
| 1059 | if knockback > 0 then | |
| 1060 | vp.Parent = hit.Parent.Torso | |
| 1061 | end | |
| 1062 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1063 | end | |
| 1064 | debounce = Instance.new("BoolValue")
| |
| 1065 | debounce.Name = "DebounceHit" | |
| 1066 | debounce.Parent = hit.Parent | |
| 1067 | debounce.Value = true | |
| 1068 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1069 | c = Instance.new("ObjectValue")
| |
| 1070 | c.Name = "creator" | |
| 1071 | c.Value = Player | |
| 1072 | c.Parent = h | |
| 1073 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1074 | end | |
| 1075 | end | |
| 1076 | function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff) | |
| 1077 | if Location[Stat] ~= nil then | |
| 1078 | Location[Stat].Value = Location[Stat].Value - Amount | |
| 1079 | if ShowDebuff == true then | |
| 1080 | if Location[Stat].Name == "Defense" then | |
| 1081 | makegui(CFrame, "-Defense", c3(1, 1, 1)) | |
| 1082 | elseif Location[Stat].Name == "Damage" then | |
| 1083 | makegui(CFrame, "-Damage", c3(1, 1, 1)) | |
| 1084 | elseif Location[Stat].Name == "Speed" then | |
| 1085 | makegui(CFrame, "-Movement", c3(1, 1, 1)) | |
| 1086 | end | |
| 1087 | end | |
| 1088 | coroutine.resume(coroutine.create(function() | |
| 1089 | wait(Duration) | |
| 1090 | Location[Stat].Value = Location[Stat].Value + Amount | |
| 1091 | end)) | |
| 1092 | end | |
| 1093 | end | |
| 1094 | function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff) | |
| 1095 | if Location[Stat] ~= nil then | |
| 1096 | Location[Stat].Value = Location[Stat].Value + Amount | |
| 1097 | if ShowBuff == true then | |
| 1098 | if Location[Stat].Name == "Defense" then | |
| 1099 | makegui(CFrame, "+Defense", c3(1, 1, 1)) | |
| 1100 | elseif Location[Stat].Name == "Damage" then | |
| 1101 | makegui(CFrame, "+Damage", c3(1, 1, 1)) | |
| 1102 | elseif Location[Stat].Name == "Speed" then | |
| 1103 | makegui(CFrame, "+Movement", c3(1, 1, 1)) | |
| 1104 | end | |
| 1105 | end | |
| 1106 | coroutine.resume(coroutine.create(function() | |
| 1107 | wait(Duration) | |
| 1108 | Location[Stat].Value = Location[Stat].Value - Amount | |
| 1109 | end)) | |
| 1110 | end | |
| 1111 | end | |
| 1112 | function GetDist(Part1, Part2, magni) | |
| 1113 | local targ = Part1.Position - Part2.Position | |
| 1114 | local mag = targ.magnitude | |
| 1115 | if magni >= mag then | |
| 1116 | return true | |
| 1117 | else | |
| 1118 | return false | |
| 1119 | end | |
| 1120 | end | |
| 1121 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
| 1122 | for _, c in pairs(workspace:children()) do | |
| 1123 | local hum = c:findFirstChild("Humanoid")
| |
| 1124 | if hum ~= nil then | |
| 1125 | local head = c:findFirstChild("Torso")
| |
| 1126 | if head ~= nil then | |
| 1127 | local targ = head.Position - Part.Position | |
| 1128 | local mag = targ.magnitude | |
| 1129 | if magni >= mag and c.Name ~= Player.Name then | |
| 1130 | Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
| 1131 | end | |
| 1132 | end | |
| 1133 | end | |
| 1134 | end | |
| 1135 | end | |
| 1136 | function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last) | |
| 1137 | local magz = (p0 - p1).magnitude | |
| 1138 | local curpos = p0 | |
| 1139 | local trz = {
| |
| 1140 | -ofs, | |
| 1141 | ofs | |
| 1142 | } | |
| 1143 | for i = 1, tym do | |
| 1144 | do | |
| 1145 | local li = Instance.new("Part", workspace)
| |
| 1146 | li.TopSurface = 0 | |
| 1147 | li.BottomSurface = 0 | |
| 1148 | li.Anchored = true | |
| 1149 | li.Transparency = tra or 0.4 | |
| 1150 | li.BrickColor = brickcolor | |
| 1151 | li.formFactor = "Custom" | |
| 1152 | li.CanCollide = false | |
| 1153 | li.Size = vt(th, th, magz / tym) | |
| 1154 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 1155 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
| 1156 | if tym == i then | |
| 1157 | local magz2 = (curpos - p1).magnitude | |
| 1158 | li.Size = vt(th, th, magz2)*4 | |
| 1159 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
| 1160 | else | |
| 1161 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
| 1162 | end | |
| 1163 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
| 1164 | game.Debris:AddItem(li, last) | |
| 1165 | coroutine.resume(coroutine.create(function() | |
| 1166 | while li.Transparency ~= 1 do | |
| 1167 | for i = 0, 1, last do | |
| 1168 | ArtificialHeartbeat.Event:wait() | |
| 1169 | li.Transparency = li.Transparency + 0.1 / last | |
| 1170 | end | |
| 1171 | end | |
| 1172 | end)) | |
| 1173 | end | |
| 1174 | end | |
| 1175 | end | |
| 1176 | function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1177 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1178 | prt.Anchored = true | |
| 1179 | prt.CFrame = cframe | |
| 1180 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1181 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1182 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1183 | for i = 0, 1, delay do | |
| 1184 | ArtificialHeartbeat.Event:wait() | |
| 1185 | Part.CFrame = Part.CFrame | |
| 1186 | Part.Transparency = i | |
| 1187 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1188 | end | |
| 1189 | Part.Parent = nil | |
| 1190 | end), prt, msh) | |
| 1191 | end | |
| 1192 | function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1193 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1194 | prt.Anchored = true | |
| 1195 | prt.CFrame = cframe | |
| 1196 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1197 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1198 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1199 | for i = 0, 1, delay do | |
| 1200 | ArtificialHeartbeat.Event:wait() | |
| 1201 | Part.CFrame = Part.CFrame | |
| 1202 | Part.Transparency = i | |
| 1203 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1204 | end | |
| 1205 | Part.Parent = nil | |
| 1206 | end), prt, msh) | |
| 1207 | end | |
| 1208 | function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1209 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1210 | prt.Anchored = true | |
| 1211 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1212 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1213 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1214 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1215 | for i = 0, 1, delay do | |
| 1216 | ArtificialHeartbeat.Event:wait() | |
| 1217 | if rotate == true then | |
| 1218 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1219 | else | |
| 1220 | end | |
| 1221 | Part.Transparency = i | |
| 1222 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1223 | end | |
| 1224 | Part.Parent = nil | |
| 1225 | end), prt, msh) | |
| 1226 | end | |
| 1227 | function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1228 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1229 | prt.Anchored = true | |
| 1230 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1231 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1232 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1233 | CF = prt.CFrame | |
| 1234 | num = math.random(5, 20) | |
| 1235 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
| 1236 | for i = 0, 1, delay do | |
| 1237 | ArtificialHeartbeat.Event:wait() | |
| 1238 | if rotate == true then | |
| 1239 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1240 | else | |
| 1241 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
| 1242 | end | |
| 1243 | Part.Transparency = i | |
| 1244 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1245 | end | |
| 1246 | Part.Parent = nil | |
| 1247 | end), prt, msh, CF, num) | |
| 1248 | end | |
| 1249 | function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1250 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1251 | prt.Anchored = true | |
| 1252 | prt.CFrame = cframe | |
| 1253 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1254 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1255 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1256 | for i = 0, 1, delay do | |
| 1257 | ArtificialHeartbeat.Event:wait() | |
| 1258 | Part.Transparency = i | |
| 1259 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1260 | end | |
| 1261 | Part.Parent = nil | |
| 1262 | end), prt, msh) | |
| 1263 | end | |
| 1264 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1265 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1266 | prt.Anchored = true | |
| 1267 | prt.CFrame = cframe | |
| 1268 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1269 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1270 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1271 | for i = 0, 1, delay do | |
| 1272 | ArtificialHeartbeat.Event:wait() | |
| 1273 | Part.Transparency = i | |
| 1274 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1275 | end | |
| 1276 | Part.Parent = nil | |
| 1277 | end), prt, msh) | |
| 1278 | end | |
| 1279 | function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay) | |
| 1280 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1281 | prt.Anchored = true | |
| 1282 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1283 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
| |
| 1284 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1285 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1286 | CF = Part.CFrame | |
| 1287 | Numbb = 0 | |
| 1288 | randnumb = math.random() - math.random() | |
| 1289 | for i = 0, 1, delay do | |
| 1290 | ArtificialHeartbeat.Event:wait() | |
| 1291 | CF = CF * cf(0, 1, 0) | |
| 1292 | if rotate == true then | |
| 1293 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
| 1294 | elseif rotate == false then | |
| 1295 | Part.CFrame = CF | |
| 1296 | end | |
| 1297 | Part.Transparency = i | |
| 1298 | Numbb = Numbb + randnumb | |
| 1299 | end | |
| 1300 | Part.Parent = nil | |
| 1301 | end), prt, CF, Numbb, randnumb) | |
| 1302 | end | |
| 1303 | function ElecEffect(brickcolor, cf, x, y, z, delay) | |
| 1304 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1305 | prt.Anchored = true | |
| 1306 | prt.CFrame = cf | |
| 1307 | xval = math.random() | |
| 1308 | yval = math.random() | |
| 1309 | zval = math.random() | |
| 1310 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)*4)
| |
| 1311 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1312 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
| 1313 | for i = 0, 1, delay do | |
| 1314 | ArtificialHeartbeat.Event:wait() | |
| 1315 | Part.CFrame = Part.CFrame | |
| 1316 | xvaal = xvaal - 0.1 * (delay * 10) | |
| 1317 | yvaal = yvaal - 0.1 * (delay * 10) | |
| 1318 | zvaal = zvaal - 0.1 * (delay * 10) | |
| 1319 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
| 1320 | Part.Transparency = i | |
| 1321 | end | |
| 1322 | Part.Parent = nil | |
| 1323 | end), prt, msh, xval, yval, zval) | |
| 1324 | end | |
| 1325 | function subtractmana(k) | |
| 1326 | if k <= mana then | |
| 1327 | mana = mana - k | |
| 1328 | end | |
| 1329 | end | |
| 1330 | local idleangle = 0 | |
| 1331 | local idlen = 0 | |
| 1332 | local donum = 0 | |
| 1333 | local sine = 0 | |
| 1334 | local change = 1 | |
| 1335 | local val = 0 | |
| 1336 | local walkinganim = false | |
| 1337 | local handidle = false | |
| 1338 | local walk = 0 | |
| 1339 | local someangle = 0 | |
| 1340 | local change2 = 1 | |
| 1341 | local stundelay = 0 | |
| 1342 | local manadelay = 0 | |
| 1343 | local dieanim = false | |
| 1344 | local robloxidleanimation = Instance.new("Animation", Torso)
| |
| 1345 | robloxidleanimation.Name = "robloxidleanimation" | |
| 1346 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 1347 | Animator = Humanoid:findFirstChild("Animator")
| |
| 1348 | Animate = Character:findFirstChild("Animate")
| |
| 1349 | Running = Head:FindFirstChild("Running")
| |
| 1350 | if Running ~= nil then | |
| 1351 | Running.Volume = 0 | |
| 1352 | end | |
| 1353 | local startequipped = false | |
| 1354 | local startequippedwithequipanimation = true | |
| 1355 | local disableanimator = true | |
| 1356 | local disableanimate = false | |
| 1357 | local alternatewalk = false | |
| 1358 | local customwalk = false | |
| 1359 | local hidemenu = false | |
| 1360 | local allowmenutofunction = false | |
| 1361 | local allowabilitestofunction = false | |
| 1362 | local canunequiporequip = false | |
| 1363 | local allowidle = false | |
| 1364 | local allowwalking = false | |
| 1365 | local disablemovingarms = false | |
| 1366 | local usemotorsinsteadofwelds = false | |
| 1367 | local leftarm = false | |
| 1368 | local rightarm = false | |
| 1369 | local allowhopperbin = false | |
| 1370 | local allowstunbar = false | |
| 1371 | local walkspeeddependsonspeedvalue = true | |
| 1372 | local alternatemanaregensystem = false | |
| 1373 | local showhealthmanaandstunnumbers = false | |
| 1374 | local changebarcolorsifnotenoughmana = false | |
| 1375 | local disablejumpifstaggeredorstunned = false | |
| 1376 | if hidemenu == true then | |
| 1377 | for _, v in pairs(scrn:children()) do | |
| 1378 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
| 1379 | v.Visible = false | |
| 1380 | end | |
| 1381 | end | |
| 1382 | end | |
| 1383 | if disablejumpifstaggeredorstunned == true then | |
| 1384 | Humanoid.Changed:connect(function(Jump) | |
| 1385 | if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then | |
| 1386 | Humanoid.Jump = false | |
| 1387 | end | |
| 1388 | end) | |
| 1389 | end | |
| 1390 | if allowmenutofunction == true then | |
| 1391 | for _, v in pairs(scrn:GetChildren()) do | |
| 1392 | if v.ClassName == "Frame" then | |
| 1393 | for _, b in pairs(v:GetChildren()) do | |
| 1394 | if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then | |
| 1395 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1396 | wait(menuupdatespeed) | |
| 1397 | for i = 1, 0, -0.1 do | |
| 1398 | ArtificialHeartbeat.Event:wait() | |
| 1399 | TheTextLabel.TextTransparency = i | |
| 1400 | TheTextLabel.TextStrokeTransparency = i | |
| 1401 | end | |
| 1402 | TheTextLabel.TextTransparency = 0 | |
| 1403 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1404 | end), b) | |
| 1405 | end | |
| 1406 | end | |
| 1407 | end | |
| 1408 | end | |
| 1409 | end | |
| 1410 | if allowmenutofunction == true and allowabilitestofunction == true then | |
| 1411 | for _, v in pairs(scrn:GetChildren()) do | |
| 1412 | if v.ClassName == "Frame" then | |
| 1413 | for _, b in pairs(v:GetChildren()) do | |
| 1414 | if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then | |
| 1415 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1416 | wait(menuupdatespeed) | |
| 1417 | for i = 1, 0, -0.1 do | |
| 1418 | ArtificialHeartbeat.Event:wait() | |
| 1419 | TheTextLabel.TextTransparency = i | |
| 1420 | TheTextLabel.TextStrokeTransparency = i | |
| 1421 | end | |
| 1422 | TheTextLabel.TextTransparency = 0 | |
| 1423 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1424 | end), b) | |
| 1425 | end | |
| 1426 | end | |
| 1427 | end | |
| 1428 | end | |
| 1429 | end | |
| 1430 | if allowhopperbin == true then | |
| 1431 | if script.Parent.className ~= "HopperBin" then | |
| 1432 | Tool = Instance.new("HopperBin")
| |
| 1433 | Tool.Parent = Backpack | |
| 1434 | Tool.Name = "Weapon Name" | |
| 1435 | script.Parent = Tool | |
| 1436 | end | |
| 1437 | Bin = script.Parent | |
| 1438 | end | |
| 1439 | if disablemovingarms == true then | |
| 1440 | RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1441 | LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1442 | RSH, LSH = nil, nil | |
| 1443 | if usemotorsinsteadofwelds == true then | |
| 1444 | RW = Instance.new("Motor")
| |
| 1445 | LW = Instance.new("Motor")
| |
| 1446 | else | |
| 1447 | RW = Instance.new("Weld")
| |
| 1448 | LW = Instance.new("Weld")
| |
| 1449 | end | |
| 1450 | RW.Name = "Right Shoulder" | |
| 1451 | LW.Name = "Left Shoulder" | |
| 1452 | RSH = Torso["Right Shoulder"] | |
| 1453 | LSH = Torso["Left Shoulder"] | |
| 1454 | RSH.Parent = Torso | |
| 1455 | LSH.Parent = Torso | |
| 1456 | RW.Name = "Right Shoulder" | |
| 1457 | RW.Part0 = Torso | |
| 1458 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1459 | RW.C1 = cf(0, 0.5, 0) | |
| 1460 | RW.Part1 = Character["Right Arm"] | |
| 1461 | RW.Parent = nil | |
| 1462 | LW.Name = "Left Shoulder" | |
| 1463 | LW.Part0 = Torso | |
| 1464 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1465 | LW.C1 = cf(0, 0.5, 0) | |
| 1466 | LW.Part1 = Character["Left Arm"] | |
| 1467 | LW.Parent = nil | |
| 1468 | else | |
| 1469 | RW = Torso["Right Shoulder"] | |
| 1470 | LW = Torso["Left Shoulder"] | |
| 1471 | LH = Torso["Left Hip"] | |
| 1472 | RH = Torso["Right Hip"] | |
| 1473 | RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) | |
| 1474 | LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) | |
| 1475 | end | |
| 1476 | if allowidle == true then | |
| 1477 | coroutine.resume(coroutine.create(function() | |
| 1478 | while true do | |
| 1479 | for i = 0, 1, 0.08 do | |
| 1480 | wait() | |
| 1481 | idleangle = idleangle + 0.005 * idlen | |
| 1482 | idlen = idlen - 0.1 | |
| 1483 | end | |
| 1484 | idlen = 0 | |
| 1485 | for i = 0, 1, 0.08 do | |
| 1486 | wait() | |
| 1487 | idleangle = idleangle - 0.005 * idlen | |
| 1488 | idlen = idlen - 0.1 | |
| 1489 | end | |
| 1490 | idlen = 0 | |
| 1491 | idleangle = 0 | |
| 1492 | end | |
| 1493 | end)) | |
| 1494 | end | |
| 1495 | function equipanim() | |
| 1496 | attack = true | |
| 1497 | local equipvelocity = Instance.new("BodyVelocity", Torso)
| |
| 1498 | equipvelocity.P = 500 | |
| 1499 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
| 1500 | equipvelocity.Velocity = Vector3.new(0, 0.1, 0) | |
| 1501 | if intro == true then | |
| 1502 | Music2:Play() | |
| 1503 | for i = 0, 1, 0.02 do | |
| 1504 | ArtificialHeartbeat.Event:wait() | |
| 1505 | ||
| 1506 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 1507 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1508 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(40), math.rad(-10)) * RWC0, 0.15) | |
| 1509 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1510 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 1511 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.15) | |
| 1512 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1513 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1514 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1515 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1516 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1517 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1518 | end | |
| 1519 | wait(1) | |
| 1520 | end | |
| 1521 | for i = 0, 1, 0.02 do | |
| 1522 | ArtificialHeartbeat.Event:wait() | |
| 1523 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), 15, 15, 15, 0.5, 0.5, 0.5, 0.04) | |
| 1524 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05) | |
| 1525 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1526 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1527 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1528 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 1529 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
| 1530 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1531 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1532 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1533 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1534 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1535 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1536 | end | |
| 1537 | for i = 0, 1, 0.02 do | |
| 1538 | ArtificialHeartbeat.Event:wait() | |
| 1539 | ||
| 1540 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05) | |
| 1541 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1542 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1543 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1544 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 1545 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
| 1546 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1547 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1548 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1549 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1550 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1551 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1552 | end | |
| 1553 | if intro == true then | |
| 1554 | Chat("...")
| |
| 1555 | wait(4) | |
| 1556 | Chat("my soul hurts...")
| |
| 1557 | wait(4) | |
| 1558 | Chat("...")
| |
| 1559 | wait(2) | |
| 1560 | Chat("but i can feel it now...")
| |
| 1561 | wait(4) | |
| 1562 | Chat("the power of darkness...")
| |
| 1563 | wait(4) | |
| 1564 | Chat("...")
| |
| 1565 | wait(2) | |
| 1566 | Chat("the loss of feeling...")
| |
| 1567 | wait(2) | |
| 1568 | Chat("...")
| |
| 1569 | wait(2) | |
| 1570 | Chat("the feeling of being free")
| |
| 1571 | wait(2.1) | |
| 1572 | end | |
| 1573 | coroutine.resume(coroutine.create(function() | |
| 1574 | for i = 0, 1, 0.1 do | |
| 1575 | wait() | |
| 1576 | outerbeingtransparency = outerbeingtransparency - 0.05 | |
| 1577 | end | |
| 1578 | outerbeingtransparency = 0.5 | |
| 1579 | end)) | |
| 1580 | ||
| 1581 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
| 1582 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
| 1583 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
| 1584 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
| |
| 1585 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
| |
| 1586 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
| |
| 1587 | so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
| |
| 1588 | --newface() | |
| 1589 | local BC = char["Body Colors"] | |
| 1590 | BC.HeadColor = BrickColor.new("Medium stone grey")
| |
| 1591 | BC.LeftArmColor = BrickColor.new("Medium stone grey")
| |
| 1592 | BC.LeftLegColor = BrickColor.new("Medium stone grey")
| |
| 1593 | BC.RightArmColor = BrickColor.new("Medium stone grey")
| |
| 1594 | BC.RightLegColor = BrickColor.new("Medium stone grey")
| |
| 1595 | BC.TorsoColor = BrickColor.new("Medium stone grey")
| |
| 1596 | ||
| 1597 | local HBill = Instance.new("BillboardGui", hed)
| |
| 1598 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
| |
| 1599 | local HHealth, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
| |
| 1600 | local HText, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
| |
| 1601 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 1602 | HBill.Name = "Health Display" | |
| 1603 | HBill.StudsOffset = Vector3.new(0,13,0) | |
| 1604 | HBill.AlwaysOnTop = true | |
| 1605 | HBill.Enabled = true | |
| 1606 | ||
| 1607 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 1608 | HMain.BackgroundTransparency = 0.8 | |
| 1609 | HMain.Size = UDim2.new(1,0,1,0) | |
| 1610 | HBarBack.Parent = HMain | |
| 1611 | HBarBack.BackgroundColor3 = Color3.new(.5,0,1) | |
| 1612 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
| 1613 | HBarBack.BorderSizePixel = 2 | |
| 1614 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
| 1615 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
| 1616 | ||
| 1617 | ||
| 1618 | ||
| 1619 | ||
| 1620 | ||
| 1621 | ||
| 1622 | ||
| 1623 | ||
| 1624 | ||
| 1625 | HHealth.BackgroundTransparency = 1 | |
| 1626 | HHealth.Size = UDim2.new(1,0,0.5,0) | |
| 1627 | HHealth.Font = "Code" | |
| 1628 | HHealth.TextScaled = true | |
| 1629 | HHealth.TextColor3 = Color3.new(1,1,1) | |
| 1630 | HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 1631 | HHealth.TextStrokeTransparency = 0 | |
| 1632 | ||
| 1633 | ||
| 1634 | ||
| 1635 | ||
| 1636 | ||
| 1637 | ||
| 1638 | ||
| 1639 | ||
| 1640 | HName.Parent = HMain | |
| 1641 | HName.BackgroundTransparency = 1 | |
| 1642 | HName.Size = UDim2.new(1,0,.3,0) | |
| 1643 | HName.Font = "Code" | |
| 1644 | HName.Text = "" | |
| 1645 | HName.TextScaled = true | |
| 1646 | HName.TextColor3 = BrickColor.new("Forest green").Color
| |
| 1647 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1648 | HName.TextStrokeTransparency = 0 | |
| 1649 | HName.TextYAlignment = "Top" | |
| 1650 | HName.Position = UDim2.new(0, 0, 0, 0) | |
| 1651 | ||
| 1652 | ||
| 1653 | ||
| 1654 | ||
| 1655 | ||
| 1656 | ||
| 1657 | ||
| 1658 | ||
| 1659 | Humanoid = char.Humanoid | |
| 1660 | ||
| 1661 | function GainCharge(Humanoid) | |
| 1662 | HHealth.Text = ""..Humanoid.Health.." HP" | |
| 1663 | if Humanoid.Health < 100 and dieanim == false then | |
| 1664 | HHealth.Text = "0 HP" | |
| 1665 | end | |
| 1666 | HBill.Frame.Frame.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,.3,0) | |
| 1667 | if Humanoid.Health >= Humanoid.MaxHealth/2 then | |
| 1668 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(.5,0,1) | |
| 1669 | elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then | |
| 1670 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(.2,0,1) | |
| 1671 | elseif Humanoid.Health <= Humanoid.MaxHealth/4 then | |
| 1672 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(0,0,0) | |
| 1673 | end | |
| 1674 | ||
| 1675 | end | |
| 1676 | ||
| 1677 | Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) | |
| 1678 | HHealth.Text = ""..Humanoid.Health.." HP" | |
| 1679 | for i = 0, 1, 0.02 do | |
| 1680 | ArtificialHeartbeat.Event:wait() | |
| 1681 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 1682 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 1683 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15) | |
| 1684 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15) | |
| 1685 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1686 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1687 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1688 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1689 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1690 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1691 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1692 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1693 | end | |
| 1694 | ||
| 1695 | equipvelocity:Destroy() | |
| 1696 | Speed.Value = Speed.Value - 0.1 | |
| 1697 | Defense.Value = Defense.Value + 0.4 | |
| 1698 | attack = false | |
| 1699 | ||
| 1700 | ||
| 1701 | wait(.1) | |
| 1702 | --[[ | |
| 1703 | Music2:Stop() | |
| 1704 | Music1:Play() | |
| 1705 | --]] | |
| 1706 | end | |
| 1707 | function unequipanim() | |
| 1708 | attack = true | |
| 1709 | coroutine.resume(coroutine.create(function() | |
| 1710 | Humanoid.MaxHealth = math.huge | |
| 1711 | wait(0.1) | |
| 1712 | Humanoid.Health = Humanoid.MaxHealth | |
| 1713 | end)) | |
| 1714 | local equipvelocity = Instance.new("BodyVelocity", Torso)
| |
| 1715 | equipvelocity.P = 500 | |
| 1716 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
| 1717 | equipvelocity.Velocity = Vector3.new(0, 1, 0) | |
| 1718 | so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
| |
| 1719 | for i = 0, 1, 0.005 do | |
| 1720 | ArtificialHeartbeat.Event:wait() | |
| 1721 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
| 1722 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05) | |
| 1723 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15) | |
| 1724 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 1725 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1726 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1727 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 1728 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
| 1729 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1730 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1731 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1732 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
| 1733 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 1734 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
| 1735 | end | |
| 1736 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
| 1737 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
| 1738 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
| |
| 1739 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
| |
| 1740 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
| |
| 1741 | for i = 1, 2 do | |
| 1742 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
| |
| 1743 | so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
| |
| 1744 | end | |
| 1745 | Chat("AAAAAAAAAAAAAAAAAAHHHHH!!!")
| |
| 1746 | coroutine.resume(coroutine.create(function() | |
| 1747 | for i = 0, 1, 0.01 do | |
| 1748 | tran = tran + 0.1 | |
| 1749 | ||
| 1750 | ||
| 1751 | ||
| 1752 | for i,v in pairs(Character:GetChildren()) do | |
| 1753 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
| 1754 | Glow1 = Color3.new(.5,0,1) | |
| 1755 | Glow2 = Color3.new(0,0,0) | |
| 1756 | ||
| 1757 | ||
| 1758 | ||
| 1759 | ||
| 1760 | v.ParticleEmitter.Transparency = NumberSequence.new(tran,1) | |
| 1761 | ||
| 1762 | end end | |
| 1763 | ||
| 1764 | ||
| 1765 | ||
| 1766 | wait() | |
| 1767 | outerbeingtransparency = outerbeingtransparency + 0.005 | |
| 1768 | end | |
| 1769 | outerbeingtransparency = 1 | |
| 1770 | end)) | |
| 1771 | Face.Transparency = 1 | |
| 1772 | for _, v in pairs(Character:children()) do | |
| 1773 | if v:IsA("Part") and v.ClassName ~= "Model" then
| |
| 1774 | coroutine.resume(coroutine.create(function(Part) | |
| 1775 | for i = 0, 1, 0.01 do | |
| 1776 | wait() | |
| 1777 | Part.Transparency = Part.Transparency + 0.01 | |
| 1778 | end | |
| 1779 | Part.Anchored = true | |
| 1780 | Part.Transparency = 1 | |
| 1781 | end), v) | |
| 1782 | elseif v:IsA("Hat") then
| |
| 1783 | coroutine.resume(coroutine.create(function(Hat) | |
| 1784 | for i = 0, 1, 0.01 do | |
| 1785 | wait() | |
| 1786 | Hat.Transparency = Hat.Transparency + 0.01 | |
| 1787 | end | |
| 1788 | Hat.Anchored = true | |
| 1789 | Hat.Transparency = 1 | |
| 1790 | end), v.Handle) | |
| 1791 | end | |
| 1792 | end | |
| 1793 | local deathnum = 0 | |
| 1794 | for i = 0, 1, 0.005 do | |
| 1795 | ArtificialHeartbeat.Event:wait() | |
| 1796 | if deathnum >= 10 then | |
| 1797 | deathnum = 0 | |
| 1798 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 1799 | refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)) | |
| 1800 | refpart.Anchored = true | |
| 1801 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 1802 | MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01) | |
| 1803 | MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01) | |
| 1804 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
| |
| 1805 | end | |
| 1806 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05) | |
| 1807 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15) | |
| 1808 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15) | |
| 1809 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15) | |
| 1810 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15) | |
| 1811 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15) | |
| 1812 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15) | |
| 1813 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1814 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1815 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1816 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1817 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1818 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1819 | deathnum = deathnum + 1 | |
| 1820 | end | |
| 1821 | Humanoid.MaxHealth = 0 | |
| 1822 | Humanoid.Health = 0 | |
| 1823 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
| 1824 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008) | |
| 1825 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008) | |
| 1826 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
| |
| 1827 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
| |
| 1828 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
| |
| 1829 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
| |
| 1830 | attack = false | |
| 1831 | end | |
| 1832 | if startequipped == true then | |
| 1833 | equipped = true | |
| 1834 | if disableanimate == true then | |
| 1835 | Animate.Disabled = true | |
| 1836 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1837 | idleanimation:Play() | |
| 1838 | end | |
| 1839 | if disableanimator == true then | |
| 1840 | Animator.Parent = nil | |
| 1841 | end | |
| 1842 | if disablemovingarms == true then | |
| 1843 | RW.Parent = Torso | |
| 1844 | LW.Parent = Torso | |
| 1845 | RSH.Parent = nil | |
| 1846 | LSH.Parent = nil | |
| 1847 | end | |
| 1848 | Speed.Value = Speed.Value - 0.1 | |
| 1849 | Defense.Value = Defense.Value + 0.4 | |
| 1850 | elseif startequippedwithequipanimation == true then | |
| 1851 | equipped = true | |
| 1852 | if disableanimate == true then | |
| 1853 | Animate.Disabled = true | |
| 1854 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1855 | idleanimation:Play() | |
| 1856 | end | |
| 1857 | if disableanimator == true then | |
| 1858 | Animator.Parent = nil | |
| 1859 | end | |
| 1860 | if disablemovingarms == true then | |
| 1861 | RW.Parent = Torso | |
| 1862 | LW.Parent = Torso | |
| 1863 | RSH.Parent = nil | |
| 1864 | LSH.Parent = nil | |
| 1865 | end | |
| 1866 | equipanim() | |
| 1867 | end | |
| 1868 | function StaggerHit() | |
| 1869 | attack = true | |
| 1870 | attack = false | |
| 1871 | end | |
| 1872 | function Stagger() | |
| 1873 | attack = true | |
| 1874 | attack = false | |
| 1875 | end | |
| 1876 | function Stun() | |
| 1877 | attack = true | |
| 1878 | attack = false | |
| 1879 | end | |
| 1880 | function EAbility() | |
| 1881 | attack = true | |
| 1882 | attack = false | |
| 1883 | end | |
| 1884 | function attackone() | |
| 1885 | attack = true | |
| 1886 | ||
| 1887 | --[[ | |
| 1888 | local equipvelocity3 = Instance.new("BodyVelocity", Torso)
| |
| 1889 | equipvelocity3.P = 500 | |
| 1890 | equipvelocity3.maxForce = vt(math.huge, math.huge, math.huge) | |
| 1891 | equipvelocity3.Velocity = Vector3.new(0, 0, 0) | |
| 1892 | game:GetService("Debris"):AddItem(equipvelocity3, 1)
| |
| 1893 | ||
| 1894 | --]] | |
| 1895 | local oldspeedvalue = Speed.Value | |
| 1896 | Speed.Value = .1 | |
| 1897 | ||
| 1898 | for i = 0, 0.5, .02 do | |
| 1899 | ArtificialHeartbeat.Event:wait() | |
| 1900 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.1) | |
| 1901 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1902 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(50)) * RWC0, 0.15) | |
| 1903 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(-50)) * LWC0, 0.15) | |
| 1904 | ||
| 1905 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.15) | |
| 1906 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 1907 | ||
| 1908 | ||
| 1909 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1910 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1911 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1912 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1913 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1914 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1915 | end | |
| 1916 | ||
| 1917 | --------------------------------- | |
| 1918 | for i = 0, .2, .02 do | |
| 1919 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 1920 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 1921 | ArtificialHeartbeat.Event:wait() | |
| 1922 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15) | |
| 1923 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1924 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1925 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1926 | ||
| 1927 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 1928 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15) | |
| 1929 | ||
| 1930 | ||
| 1931 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1932 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1933 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1934 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1935 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15) | |
| 1936 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1937 | end | |
| 1938 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 1939 | refpart4.CFrame = RootPart.CFrame * cf(0, 0, -17) | |
| 1940 | game:GetService("Debris"):AddItem(refpart4, 1)
| |
| 1941 | MagniDamage(refpart4, 10, 5, 20, math.random(1, 10), "Normal", 0, 1, 0, nil, true, true) | |
| 1942 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 1943 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 1944 | ---------------------------------------- | |
| 1945 | for i = 0, .5, .02 do | |
| 1946 | ||
| 1947 | ArtificialHeartbeat.Event:wait() | |
| 1948 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15) | |
| 1949 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 1950 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
| 1951 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
| 1952 | ||
| 1953 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 1954 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15) | |
| 1955 | ||
| 1956 | ||
| 1957 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1958 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1959 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1960 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1961 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15) | |
| 1962 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1963 | end | |
| 1964 | ---------------------------------------- | |
| 1965 | Speed.Value = oldspeedvalue | |
| 1966 | --]] | |
| 1967 | ||
| 1968 | attack = false | |
| 1969 | end | |
| 1970 | function attacktwo() | |
| 1971 | attack = true | |
| 1972 | local oldspeedvalue = Speed.Value | |
| 1973 | Speed.Value = .2 | |
| 1974 | ||
| 1975 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
| |
| 1976 | for i = 0, 1, 0.05 do | |
| 1977 | ArtificialHeartbeat.Event:wait() | |
| 1978 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 1979 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 1980 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
| 1981 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 1982 | RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.15) | |
| 1983 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 1984 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 1985 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 1986 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1987 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 1988 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 1.5, 0), 0.15) | |
| 1989 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 1990 | end | |
| 1991 | for i = 0, 0.5, 0.05 do | |
| 1992 | MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05) | |
| 1993 | ArtificialHeartbeat.Event:wait() | |
| 1994 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
| 1995 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 1996 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15) | |
| 1997 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15) | |
| 1998 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3) | |
| 1999 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2000 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2001 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2002 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2003 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2004 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3) | |
| 2005 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2006 | end | |
| 2007 | Speed.Value = .0 | |
| 2008 | local refpart4 = part(3, Effects, "Neon", 0, 0, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2009 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
| 2010 | game:GetService("Debris"):AddItem(refpart4, .5)
| |
| 2011 | MagniDamage(refpart4, 15, 10, 30, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true) | |
| 2012 | MagicBlock(CustomColor, true, refpart4.CFrame * cf(0, -0, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2013 | MagicRing(CustomColor, refpart4.CFrame* cf(1, 1, 0) * angles(math.rad(90), math.rad(math.random(-0, 0)), math.rad(math.random(-0, 0))), 1, 1, 20, 1.1, 1.1, -0.5, 0.03) | |
| 2014 | for i = 0, 0.5, 0.05 do | |
| 2015 | ||
| 2016 | ArtificialHeartbeat.Event:wait() | |
| 2017 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
| 2018 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 2019 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15) | |
| 2020 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15) | |
| 2021 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3) | |
| 2022 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2023 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2024 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2025 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2026 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2027 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3) | |
| 2028 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2029 | end | |
| 2030 | ---------------------------------------- | |
| 2031 | ------------------------------ | |
| 2032 | Speed.Value = oldspeedvalue | |
| 2033 | attack = false | |
| 2034 | end | |
| 2035 | function attackthree() | |
| 2036 | attack = true | |
| 2037 | local oldspeedvalue = Speed.Value | |
| 2038 | Speed.Value = .1 | |
| 2039 | for i = 0, .5, 0.05 do | |
| 2040 | ArtificialHeartbeat.Event:wait() | |
| 2041 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2042 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15) | |
| 2043 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(20), math.rad(90)) * RWC0, 0.10) | |
| 2044 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2045 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2046 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2047 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2048 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2049 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2050 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2051 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2052 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2053 | end | |
| 2054 | ||
| 2055 | Speed.Value = 0 | |
| 2056 | for i = 0, .5, 0.05 do | |
| 2057 | ArtificialHeartbeat.Event:wait() | |
| 2058 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2059 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2060 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15) | |
| 2061 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(10), math.rad(90)) * RWC0, 0.15) | |
| 2062 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2063 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2064 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2065 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2066 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2067 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2068 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2069 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2070 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2071 | end | |
| 2072 | ||
| 2073 | local orbnumber = math.random(2, 2) | |
| 2074 | coroutine.resume(coroutine.create(function() | |
| 2075 | for i = 1, orbnumber do | |
| 2076 | wait(.1) | |
| 2077 | local orbblastpart = part(3, Effects, "Neon", 0, 1, CustomColor, "Effect", vt()) | |
| 2078 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
| |
| 2079 | orbblastpart.Anchored = true | |
| 2080 | game:GetService("Debris"):AddItem(orbblastpart, 5)
| |
| 2081 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10))) | |
| 2082 | ||
| 2083 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
| |
| 2084 | coroutine.resume(coroutine.create(function(Part) | |
| 2085 | wait() | |
| 2086 | local spread = vt(math.random(-.1, .1), math.random(-.1, .1), math.random(-.1, .1)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100 | |
| 2087 | local TheHit = Part.Position + vt(0, -1, 0) | |
| 2088 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
| 2089 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
| 2090 | local mag = (rightarm2.Position - pos).magnitude | |
| 2091 | MagicCylinder(CustomColor, cf((rightarm2.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, -1.5, 0, -1.5, 0.08) | |
| 2092 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
| 2093 | Part.Parent = nil | |
| 2094 | if hit ~= nil then | |
| 2095 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2096 | refpart.CFrame = cf(pos) | |
| 2097 | refpart.Anchored = true | |
| 2098 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2099 | ||
| 2100 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05) | |
| 2101 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06) | |
| 2102 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
| |
| 2103 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
| 2104 | MagniDamage(refpart, 10, 5, 8, 0, "Normal", 0, 1, 0, nil, true, true) | |
| 2105 | end | |
| 2106 | end), orbblastpart) | |
| 2107 | end | |
| 2108 | ||
| 2109 | end)) | |
| 2110 | ||
| 2111 | for i = 0, 1, 0.05 do | |
| 2112 | ArtificialHeartbeat.Event:wait() | |
| 2113 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2114 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2115 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2116 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * RWC0, 0.15) | |
| 2117 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2118 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2119 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2120 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2121 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2122 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2123 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2124 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2125 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2126 | end | |
| 2127 | Speed.Value = oldspeedvalue | |
| 2128 | attack = false | |
| 2129 | end | |
| 2130 | function attackfour() | |
| 2131 | attack = true | |
| 2132 | for i = 0, 0.8, 0.05 do | |
| 2133 | ArtificialHeartbeat.Event:wait() | |
| 2134 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 6 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.15) | |
| 2135 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2136 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
| 2137 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-60), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2138 | RH.C0 = clerp(RH.C0, cf(.99, -0.0 - idleangle, -.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2139 | LH.C0 = clerp(LH.C0, cf(-.99, -1.5 - idleangle, -.2) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.15) | |
| 2140 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2141 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2142 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2143 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2144 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2, 0, 0), 0.15) | |
| 2145 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(1, 4, 0), 0.15) | |
| 2146 | end | |
| 2147 | ||
| 2148 | ||
| 2149 | for i = 0, 0.6, 0.05 do | |
| 2150 | ArtificialHeartbeat.Event:wait() | |
| 2151 | ||
| 2152 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2153 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15) | |
| 2154 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2155 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
| 2156 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2157 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2158 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2159 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2160 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2161 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2162 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2163 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15) | |
| 2164 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2165 | end | |
| 2166 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2167 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
| 2168 | MagniDamage(refpart4, 13, 5, 20, math.random(5, 10), "Normal", 0, 1, 0, nil, true, true) | |
| 2169 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2170 | game:GetService("Debris"):AddItem(refpart4, .5)
| |
| 2171 | for i = 0, 0.6, 0.05 do | |
| 2172 | ArtificialHeartbeat.Event:wait() | |
| 2173 | ||
| 2174 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2175 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15) | |
| 2176 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2177 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
| 2178 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2179 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2180 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2181 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2182 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2183 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2184 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2185 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15) | |
| 2186 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2187 | end | |
| 2188 | ||
| 2189 | ||
| 2190 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2191 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
| 2192 | MagniDamage(refpart4, 13, 20, 20, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true) | |
| 2193 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2194 | game:GetService("Debris"):AddItem(refpart4, .5)
| |
| 2195 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
| 2196 | attack = false | |
| 2197 | end | |
| 2198 | --[[ | |
| 2199 | for i = 0, 0.5, 0.05 do | |
| 2200 | ArtificialHeartbeat.Event:wait() | |
| 2201 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2202 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2203 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2204 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2205 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2206 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2207 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2208 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2209 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2210 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2211 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2212 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2213 | end | |
| 2214 | --]] | |
| 2215 | function Move1() | |
| 2216 | Chat("darkness... ")
| |
| 2217 | attack = true | |
| 2218 | for i = 0, 1, 0.25 do | |
| 2219 | ArtificialHeartbeat.Event:wait() | |
| 2220 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2221 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2222 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2223 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2224 | if Anim ~= "Walk" then | |
| 2225 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2226 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2227 | elseif Anim == "Walk" then | |
| 2228 | if walkinganim == true then | |
| 2229 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2230 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2231 | else | |
| 2232 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2233 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2234 | end | |
| 2235 | end | |
| 2236 | ||
| 2237 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2238 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2239 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2240 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2241 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2242 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2243 | end | |
| 2244 | for i = 0, 1, 0.04 do | |
| 2245 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2246 | ArtificialHeartbeat.Event:wait() | |
| 2247 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2248 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2249 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2250 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2251 | if Anim ~= "Walk" then | |
| 2252 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2253 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2254 | elseif Anim == "Walk" then | |
| 2255 | if walkinganim == true then | |
| 2256 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2257 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2258 | else | |
| 2259 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2260 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2261 | end | |
| 2262 | end | |
| 2263 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2264 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2265 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2266 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2267 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2268 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2269 | end | |
| 2270 | for i = 0, 3, 0.04 do | |
| 2271 | ArtificialHeartbeat.Event:wait() | |
| 2272 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2273 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2274 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2275 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2276 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2277 | if Anim ~= "Walk" then | |
| 2278 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2279 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2280 | elseif Anim == "Walk" then | |
| 2281 | if walkinganim == true then | |
| 2282 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2283 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2284 | else | |
| 2285 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2286 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2287 | end | |
| 2288 | end | |
| 2289 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2290 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2291 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2292 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2293 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2294 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2295 | end | |
| 2296 | ||
| 2297 | Chat("fall...")
| |
| 2298 | local orbnumber = math.random(30, 40) | |
| 2299 | coroutine.resume(coroutine.create(function() | |
| 2300 | for i = 1, orbnumber do | |
| 2301 | wait() | |
| 2302 | local orbblastpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt()) | |
| 2303 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
| |
| 2304 | orbblastpart.Anchored = true | |
| 2305 | game:GetService("Debris"):AddItem(orbblastpart, 5)
| |
| 2306 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10))) | |
| 2307 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
| 2308 | MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 1.5, 1.5, 1.5, 0.04) | |
| 2309 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
| |
| 2310 | coroutine.resume(coroutine.create(function(Part) | |
| 2311 | wait(.8) | |
| 2312 | local spread = vt(math.random(-26, 26), math.random(-10, 10), math.random(-26, 26)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100 | |
| 2313 | local TheHit = Part.Position + vt(0, -1, 0) | |
| 2314 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
| 2315 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
| 2316 | local mag = (Part.Position - pos).magnitude | |
| 2317 | MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, -0.5, 0, -0.5, 0.08) | |
| 2318 | MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
| 2319 | Part.Parent = nil | |
| 2320 | if hit ~= nil then | |
| 2321 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2322 | refpart.CFrame = cf(pos) | |
| 2323 | refpart.Anchored = true | |
| 2324 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2325 | MagicBlock(CustomColor, true, Part.CFrame, 18, 18, 18, 0.25, 0.25, 0.25, 0.05) | |
| 2326 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05) | |
| 2327 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06) | |
| 2328 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
| |
| 2329 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
| 2330 | MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true) | |
| 2331 | end | |
| 2332 | end), orbblastpart) | |
| 2333 | end | |
| 2334 | ||
| 2335 | end)) | |
| 2336 | local equipvelocity2 = Instance.new("BodyVelocity", Torso)
| |
| 2337 | equipvelocity2.P = 500 | |
| 2338 | equipvelocity2.maxForce = vt(math.huge, math.huge, math.huge) | |
| 2339 | equipvelocity2.Velocity = Vector3.new(0, 0, 0) | |
| 2340 | game:GetService("Debris"):AddItem(equipvelocity2, 2)
| |
| 2341 | for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do | |
| 2342 | ArtificialHeartbeat.Event:wait() | |
| 2343 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8 + idleangle) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.15) | |
| 2344 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2345 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(0)) * RWC0, 0.04) | |
| 2346 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2347 | ||
| 2348 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
| 2349 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15) | |
| 2350 | ||
| 2351 | ||
| 2352 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2353 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2354 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2355 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2356 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2357 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2358 | end | |
| 2359 | for i = 0, 1, 0.25 do | |
| 2360 | ArtificialHeartbeat.Event:wait() | |
| 2361 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2362 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2363 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2364 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2365 | if Anim ~= "Walk" then | |
| 2366 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2367 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2368 | elseif Anim == "Walk" then | |
| 2369 | if walkinganim == true then | |
| 2370 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2371 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2372 | else | |
| 2373 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2374 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2375 | end | |
| 2376 | end | |
| 2377 | Humanoid.WalkSpeed = 16 * Speed.Value | |
| 2378 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2379 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2380 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2381 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2382 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2383 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2384 | end | |
| 2385 | attack = false | |
| 2386 | end | |
| 2387 | function Move2() | |
| 2388 | Chat("Die!")
| |
| 2389 | attack = true | |
| 2390 | local oldspeedvalue = Speed.Value | |
| 2391 | Speed.Value = 0 | |
| 2392 | for i = 0, .5, 0.25 do | |
| 2393 | ArtificialHeartbeat.Event:wait() | |
| 2394 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2395 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2396 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2397 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2398 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2399 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2400 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2401 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2402 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2403 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2404 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2405 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2406 | end | |
| 2407 | for i = 0, .5, 0.015 do | |
| 2408 | ArtificialHeartbeat.Event:wait() | |
| 2409 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2410 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2411 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2412 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2413 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2414 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2415 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2416 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2417 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2418 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2419 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2420 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2421 | end | |
| 2422 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
| |
| 2423 | for i = 0, 1.7, 0.25 do | |
| 2424 | ArtificialHeartbeat.Event:wait() | |
| 2425 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1) | |
| 2426 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1) | |
| 2427 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2428 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2429 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2430 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2431 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2432 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2433 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2434 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2435 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2436 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2437 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2438 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2439 | end | |
| 2440 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2441 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
| 2442 | refpart.Anchored = true | |
| 2443 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2444 | local TheHit = refpart.Position + vt(0, -1, 0) | |
| 2445 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
| 2446 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
| 2447 | local mag = (refpart.Position - pos).magnitude | |
| 2448 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2449 | refpart2.CFrame = cf(pos) | |
| 2450 | refpart2.Anchored = true | |
| 2451 | game:GetService("Debris"):AddItem(refpart2, 1)
| |
| 2452 | MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.4, 0, 0.4, 0.025) | |
| 2453 | if hit ~= nil then | |
| 2454 | MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 2.5, 2.5, 2.5, 0.02) | |
| 2455 | MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 7, 7, 7, 0.02) | |
| 2456 | MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, .6, 1.2, .6, 0.03) | |
| 2457 | MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025) | |
| 2458 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
| |
| 2459 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
| |
| 2460 | MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
| 2461 | end | |
| 2462 | for i = 0, 1, 0.02 do | |
| 2463 | ArtificialHeartbeat.Event:wait() | |
| 2464 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2465 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2466 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2467 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2468 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2469 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2470 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2471 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2472 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2473 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2474 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2475 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2476 | end | |
| 2477 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2478 | attack = false | |
| 2479 | end | |
| 2480 | function Move3() | |
| 2481 | Chat("...")
| |
| 2482 | attack = true | |
| 2483 | local oldspeedvalue = Speed.Value | |
| 2484 | Speed.Value = 0 | |
| 2485 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
| |
| 2486 | for i = 0, 1, 0.05 do | |
| 2487 | ArtificialHeartbeat.Event:wait() | |
| 2488 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 2489 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 2490 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
| 2491 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2492 | RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15) | |
| 2493 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2494 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2495 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2496 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2497 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2498 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
| 2499 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2500 | end | |
| 2501 | for i = 0, 1.5, 0.05 do | |
| 2502 | MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05) | |
| 2503 | ArtificialHeartbeat.Event:wait() | |
| 2504 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
| 2505 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
| 2506 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
| 2507 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
| 2508 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.2) | |
| 2509 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
| 2510 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2511 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2512 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2513 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2514 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15) | |
| 2515 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2516 | end | |
| 2517 | MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025) | |
| 2518 | local num = 0 | |
| 2519 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2520 | refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6) | |
| 2521 | refpart.Anchored = true | |
| 2522 | game:GetService("Debris"):AddItem(refpart, 3)
| |
| 2523 | for i = 1, 40 do | |
| 2524 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2525 | refpart2.CFrame = refpart.CFrame * cf(0, 0, num) | |
| 2526 | refpart2.Anchored = true | |
| 2527 | game:GetService("Debris"):AddItem(refpart2, 1)
| |
| 2528 | local TheHit = refpart2.Position + vt(0, -1, 0) | |
| 2529 | local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit) | |
| 2530 | local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character) | |
| 2531 | if hit ~= nil then | |
| 2532 | local refpart3 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2533 | refpart3.CFrame = cf(pos) | |
| 2534 | refpart3.Anchored = true | |
| 2535 | game:GetService("Debris"):AddItem(refpart3, 1)
| |
| 2536 | MagicSphere(BrickColor.new("Dark indigo"), refpart3.CFrame, 40, 20, 40, -2, -1, -2, 0.015)
| |
| 2537 | MagicWave(CustomColor, refpart3.CFrame, 7, 10, 7,-0.08, -.2, -0.08, 0.03) | |
| 2538 | so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
| |
| 2539 | MagniDamage(refpart3, 20, 2, 6, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true) | |
| 2540 | end | |
| 2541 | num = num - 5 | |
| 2542 | wait() | |
| 2543 | end | |
| 2544 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2545 | attack = false | |
| 2546 | end | |
| 2547 | ||
| 2548 | ||
| 2549 | function DanceMoves() | |
| 2550 | attack = true | |
| 2551 | ||
| 2552 | local oldspeedvalue = Speed.Value | |
| 2553 | Speed.Value = 0 | |
| 2554 | ||
| 2555 | for i = 0,3 do | |
| 2556 | --[ | |
| 2557 | for i = 0, 0.5, 0.05 do | |
| 2558 | ArtificialHeartbeat.Event:wait() | |
| 2559 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2560 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2561 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2562 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2563 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2564 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2565 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2566 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2567 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2568 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2569 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2570 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2571 | end | |
| 2572 | ||
| 2573 | --]] | |
| 2574 | ||
| 2575 | ||
| 2576 | ||
| 2577 | ||
| 2578 | ||
| 2579 | ||
| 2580 | ||
| 2581 | ||
| 2582 | ||
| 2583 | ||
| 2584 | ||
| 2585 | ||
| 2586 | ||
| 2587 | ||
| 2588 | ||
| 2589 | ||
| 2590 | ||
| 2591 | ||
| 2592 | for i = 0, 1.5, 0.05 do | |
| 2593 | ArtificialHeartbeat.Event:wait() | |
| 2594 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(-10), math.rad(45)), 0.15) | |
| 2595 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(45)), 0.15) | |
| 2596 | RW.C0 = clerp(RW.C0, cf(1.25, 0.1 + idleangle, 0) * angles(math.rad(90), math.rad(-20), math.rad(-50)) * RWC0, 0.15) | |
| 2597 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.2) * angles(math.rad(90), math.rad(-70), math.rad(-80)) * LWC0, 0.15) | |
| 2598 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2599 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2600 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2601 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2602 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 1.5, -0.5), 0.15) | |
| 2603 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2604 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2605 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(3, 2.5, 0), 0.15) | |
| 2606 | end | |
| 2607 | ||
| 2608 | ||
| 2609 | ||
| 2610 | ||
| 2611 | ||
| 2612 | ||
| 2613 | ||
| 2614 | for i = 0, 0.5, 0.05 do | |
| 2615 | ArtificialHeartbeat.Event:wait() | |
| 2616 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2617 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2618 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
| 2619 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2620 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2621 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2622 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2623 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2624 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2625 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2626 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2627 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2628 | end | |
| 2629 | ||
| 2630 | ||
| 2631 | ||
| 2632 | ||
| 2633 | ||
| 2634 | ||
| 2635 | ||
| 2636 | ||
| 2637 | ||
| 2638 | ||
| 2639 | ||
| 2640 | for i = 0, 1.5, 0.05 do | |
| 2641 | ArtificialHeartbeat.Event:wait() | |
| 2642 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(10), math.rad(-45)), 0.15) | |
| 2643 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-45)), 0.15) | |
| 2644 | RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(70), math.rad(80)) * RWC0, 0.15) | |
| 2645 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.1 + idleangle, -0.2) * angles(math.rad(90), math.rad(20), math.rad(50)) * LWC0, 0.15) | |
| 2646 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2647 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2648 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2649 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2650 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
| 2651 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 1.5, -0.5), 0.15) | |
| 2652 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-3, 2.5, 0), 0.15) | |
| 2653 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2654 | end | |
| 2655 | end | |
| 2656 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2657 | attack = false | |
| 2658 | end | |
| 2659 | ||
| 2660 | function Move4() | |
| 2661 | Chat("Shadow Blast!...")
| |
| 2662 | attack = true | |
| 2663 | for i = 0, 1, 0.25 do | |
| 2664 | ArtificialHeartbeat.Event:wait() | |
| 2665 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2666 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2667 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2668 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2669 | if Anim ~= "Walk" then | |
| 2670 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2671 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2672 | elseif Anim == "Walk" then | |
| 2673 | if walkinganim == true then | |
| 2674 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2675 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2676 | else | |
| 2677 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2678 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2679 | end | |
| 2680 | end | |
| 2681 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2682 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2683 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2684 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2685 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2686 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2687 | end | |
| 2688 | for i = 0, 1, 0.04 do | |
| 2689 | ArtificialHeartbeat.Event:wait() | |
| 2690 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2691 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2692 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2693 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2694 | if Anim ~= "Walk" then | |
| 2695 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2696 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2697 | elseif Anim == "Walk" then | |
| 2698 | if walkinganim == true then | |
| 2699 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2700 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2701 | else | |
| 2702 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2703 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2704 | end | |
| 2705 | end | |
| 2706 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2707 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2708 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2709 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2710 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2711 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2712 | end | |
| 2713 | local orbpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt()) | |
| 2714 | local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
| |
| 2715 | local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0)) | |
| 2716 | game:GetService("Debris"):AddItem(orbpart, 5)
| |
| 2717 | so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
| |
| 2718 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 2719 | for i = 0, 0.4, 0.005 do | |
| 2720 | ArtificialHeartbeat.Event:wait() | |
| 2721 | Mesh.Scale = Mesh.Scale + vt(0.90, 0.90, 0.90) | |
| 2722 | MagicBlock(CustomColor, true, orbpart.CFrame, 30, 30, 30, -5, -5, -5, 0.05) | |
| 2723 | MagicBlock("Black", true, orbpart.CFrame, 24, 24, 24, 3,3,3, 0.4)
| |
| 2724 | ||
| 2725 | local orbchargeeffect = part(3, Effects, "Neon", 0, 0, CustomColor, "Effect", vt()) | |
| 2726 | local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(8, math.random(10, 15), 8))
| |
| 2727 | local orbchargecframe = angles(math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150))) * cf(0, math.random(10, 50), 0) | |
| 2728 | orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe | |
| 2729 | orbchargeeffect.Anchored = true | |
| 2730 | game:GetService("Debris"):AddItem(orbchargeeffect, 2)
| |
| 2731 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 2732 | for i = 0, 1, 0.1 do | |
| 2733 | ArtificialHeartbeat.Event:wait() | |
| 2734 | Part.Transparency = i | |
| 2735 | Part.CFrame = Part.CFrame * cf(0, -1, 0) | |
| 2736 | end | |
| 2737 | Part.Parent = nil | |
| 2738 | end), orbchargeeffect, orbchargeeffectmesh) | |
| 2739 | end | |
| 2740 | wait(0.2) | |
| 2741 | local range = 1999 | |
| 2742 | local MainPos = Part.Position | |
| 2743 | local MainPos2 = Mouse.Hit.p | |
| 2744 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
| 2745 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent) | |
| 2746 | local mag = (MainPos - pos).magnitude | |
| 2747 | MagicCylinder("Black", cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 2.5, 0, 2.5, 0.015)
| |
| 2748 | MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 3.0, 0, 3.0, 0.015) | |
| 2749 | for i = 1, 5 do | |
| 2750 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0) | |
| 2751 | MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
| |
| 2752 | end | |
| 2753 | for i = 0, 5 do | |
| 2754 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0) | |
| 2755 | MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
| |
| 2756 | end | |
| 2757 | so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
| |
| 2758 | so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
| |
| 2759 | so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
| |
| 2760 | if hit ~= nil then | |
| 2761 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2762 | refpart.CFrame = cf(pos) | |
| 2763 | refpart.Anchored = true | |
| 2764 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2765 | MagicBlock(CustomColor, true, refpart.CFrame, 45, 45, 45, 4, 4, 4, 0.01) | |
| 2766 | MagicSphere("Black", refpart.CFrame, 35, 35, 35, 4, 4, 4, 0.02)
| |
| 2767 | so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
| |
| 2768 | so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
| |
| 2769 | so("http://www.roblox.com/Asset?ID=87767777", refpart, 2, 2)
| |
| 2770 | Damagefunc(hit, 40, 80, 60, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
| 2771 | MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true) | |
| 2772 | end | |
| 2773 | for i = 0, 1, 0.01 do | |
| 2774 | ArtificialHeartbeat.Event:wait() | |
| 2775 | Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5) | |
| 2776 | Part.Transparency = Part.Transparency + 0.01 | |
| 2777 | end | |
| 2778 | Part.Parent = nil | |
| 2779 | end), orbpart, orbmesh) | |
| 2780 | for i = 0, 0.35, 0.004 do | |
| 2781 | ArtificialHeartbeat.Event:wait() | |
| 2782 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2783 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2784 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2785 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2786 | if Anim ~= "Walk" then | |
| 2787 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2788 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2789 | elseif Anim == "Walk" then | |
| 2790 | if walkinganim == true then | |
| 2791 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2792 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2793 | else | |
| 2794 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2795 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2796 | end | |
| 2797 | end | |
| 2798 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2799 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2800 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2801 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2802 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2803 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2804 | end | |
| 2805 | for i = 0, 1, 0.25 do | |
| 2806 | ArtificialHeartbeat.Event:wait() | |
| 2807 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2808 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2809 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2810 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2811 | if Anim ~= "Walk" then | |
| 2812 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2813 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2814 | elseif Anim == "Walk" then | |
| 2815 | if walkinganim == true then | |
| 2816 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2817 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
| 2818 | else | |
| 2819 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2820 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
| 2821 | end | |
| 2822 | end | |
| 2823 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2824 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2825 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2826 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
| 2827 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2828 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2829 | end | |
| 2830 | attack = false | |
| 2831 | end | |
| 2832 | function Move5() | |
| 2833 | Chat("Soul Blast!")
| |
| 2834 | attack = true | |
| 2835 | local oldspeedvalue = Speed.Value | |
| 2836 | Speed.Value = 0 | |
| 2837 | for i = 0, 1, 0.25 do | |
| 2838 | ArtificialHeartbeat.Event:wait() | |
| 2839 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2840 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2841 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-10)) * RWC0, 0.15) | |
| 2842 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2843 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2844 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2845 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2846 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2847 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2848 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2849 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2850 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2851 | end | |
| 2852 | ||
| 2853 | for i = 0, 1, 0.015 do | |
| 2854 | ArtificialHeartbeat.Event:wait() | |
| 2855 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2856 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
| 2857 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-10)) * RWC0, 0.15) | |
| 2858 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
| 2859 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2860 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2861 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2862 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2863 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
| 2864 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
| 2865 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2866 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2867 | end | |
| 2868 | wait(.1) | |
| 2869 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
| |
| 2870 | for i = 0, 1, 0.25 do | |
| 2871 | ArtificialHeartbeat.Event:wait() | |
| 2872 | MagicBlock(BrickColor.new("Dark indigo"), true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
| |
| 2873 | MagicBlock(BrickColor.new("Dark indigo"), true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
| |
| 2874 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2875 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2876 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2877 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2878 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2879 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2880 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2881 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2882 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2883 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2884 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2885 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2886 | end | |
| 2887 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2888 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
| 2889 | refpart.Anchored = true | |
| 2890 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2891 | local TheHit = refpart.Position + vt(0, -1, 0) | |
| 2892 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
| 2893 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
| 2894 | local mag = (refpart.Position - pos).magnitude | |
| 2895 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
| |
| 2896 | refpart2.CFrame = cf(pos) | |
| 2897 | refpart2.Anchored = true | |
| 2898 | game:GetService("Debris"):AddItem(refpart2, 1)
| |
| 2899 | MagicCylinder(BrickColor.new("Dark indigo"), cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 145, mag * 145, 145, 0.1, 0, 0.1, 0.015)
| |
| 2900 | if hit ~= nil then | |
| 2901 | MagicBlock(BrickColor.new("Dark indigo"), true, refpart2.CFrame, 15, 15, 15, 15.5, 15.5, 15.5, 0.005)
| |
| 2902 | MagicSphere(BrickColor.new("Really black"), refpart2.CFrame, 15, 15, 15, 14, 14, 14, 0.005)
| |
| 2903 | MagicWave(BrickColor.new("Dark indigo"), refpart2.CFrame, 5, 5, 5, 2, 0.5, 2, 0.025)
| |
| 2904 | MagicRing(BrickColor.new("Dark indigo"), refpart2.CFrame * angles(math.rad(90), 0, 0), 12.5, 12.5, 12.5, 5, 5, 5, 0.025)
| |
| 2905 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
| |
| 2906 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
| |
| 2907 | MagniDamage(refpart2, 99, 129, 149, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
| 2908 | end | |
| 2909 | for i = 0, 1, 0.02 do | |
| 2910 | ArtificialHeartbeat.Event:wait() | |
| 2911 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
| 2912 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
| 2913 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
| 2914 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
| 2915 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
| 2916 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
| 2917 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
| 2918 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
| 2919 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2920 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
| 2921 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
| 2922 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
| 2923 | end | |
| 2924 | Speed.Value = Speed.Value + oldspeedvalue | |
| 2925 | attack = false | |
| 2926 | end | |
| 2927 | ||
| 2928 | hold = false | |
| 2929 | Mouse.Button1Down:connect(function() | |
| 2930 | if attack == true or equipped == false then | |
| 2931 | return | |
| 2932 | end | |
| 2933 | hold = true | |
| 2934 | if attacktype == 1 then | |
| 2935 | attacktype = 2 | |
| 2936 | attackone() | |
| 2937 | elseif attacktype == 2 then | |
| 2938 | attacktype = 3 | |
| 2939 | attacktwo() | |
| 2940 | elseif attacktype == 3 then | |
| 2941 | attacktype = 4 | |
| 2942 | attackthree() | |
| 2943 | elseif attacktype == 4 then | |
| 2944 | attacktype = 1 | |
| 2945 | attackfour() | |
| 2946 | end | |
| 2947 | coroutine.resume(coroutine.create(function() | |
| 2948 | for i = 1, 50 do | |
| 2949 | if attack == false then | |
| 2950 | wait() | |
| 2951 | end | |
| 2952 | end | |
| 2953 | if attack == false then | |
| 2954 | attacktype = 1 | |
| 2955 | end | |
| 2956 | end)) | |
| 2957 | end) | |
| 2958 | if allowhopperbin == true then | |
| 2959 | function ob1u(Mouse) | |
| 2960 | hold = false | |
| 2961 | end | |
| 2962 | end | |
| 2963 | Mouse.KeyDown:connect(function(key) | |
| 2964 | if key == "f" and canunequiporequip == true and attack == false then | |
| 2965 | if equipped == false then | |
| 2966 | equipped = true | |
| 2967 | ||
| 2968 | if disableanimate == true then | |
| 2969 | Animate.Disabled = true | |
| 2970 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 2971 | idleanimation:Play() | |
| 2972 | end | |
| 2973 | if disableanimator == true then | |
| 2974 | Animator.Parent = nil | |
| 2975 | end | |
| 2976 | if disablemovingarms == true then | |
| 2977 | RW.Parent = Torso | |
| 2978 | LW.Parent = Torso | |
| 2979 | RSH.Parent = nil | |
| 2980 | LSH.Parent = nil | |
| 2981 | end | |
| 2982 | equipanim() | |
| 2983 | elseif equipped == true then | |
| 2984 | equipped = false | |
| 2985 | unequipanim() | |
| 2986 | ArtificialHeartbeat.Event:wait() | |
| 2987 | if disablemovingarms == true then | |
| 2988 | RW.Parent = nil | |
| 2989 | LW.Parent = nil | |
| 2990 | RSH.Parent = Torso | |
| 2991 | LSH.Parent = Torso | |
| 2992 | end | |
| 2993 | if disableanimator == true then | |
| 2994 | Animator.Parent = Humanoid | |
| 2995 | end | |
| 2996 | if disableanimate == true then | |
| 2997 | Animate.Disabled = false | |
| 2998 | end | |
| 2999 | end | |
| 3000 | end | |
| 3001 | if key == "e" and attack == false and equipped == true then | |
| 3002 | EAbility() | |
| 3003 | end | |
| 3004 | if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then | |
| 3005 | subtractmana(skill1mana) | |
| 3006 | cooldown1 = 0 | |
| 3007 | Move1() | |
| 3008 | end | |
| 3009 | if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then | |
| 3010 | subtractmana(skill2mana) | |
| 3011 | cooldown2 = 0 | |
| 3012 | Move2() | |
| 3013 | end | |
| 3014 | if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then | |
| 3015 | subtractmana(skill3mana) | |
| 3016 | cooldown3 = 0 | |
| 3017 | Move3() | |
| 3018 | end | |
| 3019 | if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
| 3020 | subtractmana(skill4mana) | |
| 3021 | cooldown4 = 0 | |
| 3022 | Move4() | |
| 3023 | end | |
| 3024 | if key == "b" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
| 3025 | subtractmana(skill4mana) | |
| 3026 | cooldown4 = 0 | |
| 3027 | Move5() | |
| 3028 | end | |
| 3029 | if key == "t" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
| 3030 | DanceMoves() | |
| 3031 | end | |
| 3032 | if key == "m" then | |
| 3033 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
| 3034 | if hitfloor == nil then | |
| 3035 | RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0) | |
| 3036 | end | |
| 3037 | end | |
| 3038 | end) | |
| 3039 | if allowhopperbin == true then | |
| 3040 | function key2(key) | |
| 3041 | end | |
| 3042 | end | |
| 3043 | if allowhopperbin == true then | |
| 3044 | function s(Mouse) | |
| 3045 | Mouse.Button1Down:connect(function() | |
| 3046 | ob1d(Mouse) | |
| 3047 | end) | |
| 3048 | Mouse.Button1Up:connect(function() | |
| 3049 | ob1u(Mouse) | |
| 3050 | end) | |
| 3051 | Mouse.KeyDown:connect(key) | |
| 3052 | Mouse.KeyUp:connect(key2) | |
| 3053 | end | |
| 3054 | end | |
| 3055 | if allowhopperbin == true then | |
| 3056 | function ds(Mouse) | |
| 3057 | end | |
| 3058 | end | |
| 3059 | if allowhopperbin == true then | |
| 3060 | Bin.Selected:connect(s) | |
| 3061 | Bin.Deselected:connect(ds) | |
| 3062 | end | |
| 3063 | function updateskills() | |
| 3064 | if allowabilitestofunction == true then | |
| 3065 | if cooldown1 <= co1 then | |
| 3066 | cooldown1 = cooldown1 + 0.03333333333333333 | |
| 3067 | if cooldown1 >= co1 then | |
| 3068 | cooldown1 = co1 | |
| 3069 | end | |
| 3070 | end | |
| 3071 | if cooldown2 <= co2 then | |
| 3072 | cooldown2 = cooldown2 + 0.03333333333333333 | |
| 3073 | if cooldown2 >= co2 then | |
| 3074 | cooldown2 = co2 | |
| 3075 | end | |
| 3076 | end | |
| 3077 | if cooldown3 <= co3 then | |
| 3078 | cooldown3 = cooldown3 + 0.03333333333333333 | |
| 3079 | if cooldown3 >= co3 then | |
| 3080 | cooldown3 = co3 | |
| 3081 | end | |
| 3082 | end | |
| 3083 | if cooldown4 <= co4 then | |
| 3084 | cooldown4 = cooldown4 + 0.03333333333333333 | |
| 3085 | elseif cooldown4 >= co4 then | |
| 3086 | cooldown4 = co4 | |
| 3087 | end | |
| 3088 | if changebarcolorsifnotenoughmana == true then | |
| 3089 | if mana <= skill1mana then | |
| 3090 | bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3091 | else | |
| 3092 | bar4.BackgroundColor3 = skillcolorscheme | |
| 3093 | end | |
| 3094 | if mana <= skill2mana then | |
| 3095 | bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3096 | else | |
| 3097 | bar3.BackgroundColor3 = skillcolorscheme | |
| 3098 | end | |
| 3099 | if mana <= skill3mana then | |
| 3100 | bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3101 | else | |
| 3102 | bar1.BackgroundColor3 = skillcolorscheme | |
| 3103 | end | |
| 3104 | if mana <= skill4mana then | |
| 3105 | bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3106 | else | |
| 3107 | bar2.BackgroundColor3 = skillcolorscheme | |
| 3108 | end | |
| 3109 | elseif changebarcolorsifnotenoughmana == false then | |
| 3110 | bar1.BackgroundColor3 = skillcolorscheme | |
| 3111 | bar2.BackgroundColor3 = skillcolorscheme | |
| 3112 | bar3.BackgroundColor3 = skillcolorscheme | |
| 3113 | bar4.BackgroundColor3 = skillcolorscheme | |
| 3114 | end | |
| 3115 | end | |
| 3116 | if alternatemanaregensystem == false then | |
| 3117 | if mana <= maxmana then | |
| 3118 | mana = mana + recovermana / 30 | |
| 3119 | elseif mana >= maxmana then | |
| 3120 | mana = maxmana | |
| 3121 | end | |
| 3122 | elseif alternatemanaregensystem == true then | |
| 3123 | if mana >= maxmana then | |
| 3124 | mana = maxmana | |
| 3125 | elseif manadelay <= manawait then | |
| 3126 | manadelay = manadelay + 1 | |
| 3127 | else | |
| 3128 | manadelay = 0 | |
| 3129 | mana = mana + 1 | |
| 3130 | end | |
| 3131 | end | |
| 3132 | if allowstunbar == true then | |
| 3133 | if 0 >= StunValue.Value then | |
| 3134 | StunValue.Value = 0 | |
| 3135 | elseif stundelay <= stunwait then | |
| 3136 | stundelay = stundelay + 1 | |
| 3137 | else | |
| 3138 | stundelay = 0 | |
| 3139 | StunValue.Value = StunValue.Value - 1 | |
| 3140 | end | |
| 3141 | elseif allowstunbar == false then | |
| 3142 | StunValue.Value = 0 | |
| 3143 | end | |
| 3144 | end | |
| 3145 | if allowmenutofunction == true then | |
| 3146 | ArtificialHeartbeat.Event:connect(function() | |
| 3147 | updateskills() | |
| 3148 | if allowabilitestofunction == true then | |
| 3149 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3150 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3151 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3152 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3153 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3154 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3155 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3156 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3157 | end | |
| 3158 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3159 | manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3160 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3161 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3162 | if allowstunbar == true then | |
| 3163 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3164 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3165 | end | |
| 3166 | if showhealthmanaandstunnumbers == true then | |
| 3167 | manatext.Text = "Mana [" .. mana .. "]" | |
| 3168 | healthtext.Text = "Health [" .. Humanoid.Health .. "]" | |
| 3169 | if allowstunbar == true then | |
| 3170 | stuntext.Text = "Stun [" .. StunValue.Value .. "]" | |
| 3171 | end | |
| 3172 | end | |
| 3173 | if showstats == true then | |
| 3174 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3175 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3176 | speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3177 | defensetext.Text = "Defense: " .. Defense.Value | |
| 3178 | damagetext.Text = "Damage: " .. Damage.Value | |
| 3179 | speedtext.Text = "Speed: " .. Speed.Value | |
| 3180 | end | |
| 3181 | end) | |
| 3182 | end | |
| 3183 | ArtificialHeartbeat.Event:connect(function() | |
| 3184 | if Humanoid.Health < 100 and dieanim == false then | |
| 3185 | dieanim = true | |
| 3186 | Chat("Nooooooo!!!!")
| |
| 3187 | ||
| 3188 | unequipanim() | |
| 3189 | ||
| 3190 | end | |
| 3191 | if Humanoid.Health > 0 then | |
| 3192 | if walkspeeddependsonspeedvalue == true then | |
| 3193 | if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then | |
| 3194 | Humanoid.WalkSpeed = 0 | |
| 3195 | else | |
| 3196 | Humanoid.WalkSpeed = 16 * Speed.Value | |
| 3197 | end | |
| 3198 | end | |
| 3199 | if StunValue.Value >= maxstun then | |
| 3200 | StunValue.Value = 0 | |
| 3201 | StunAnim.Value = true | |
| 3202 | end | |
| 3203 | if StaggerAnim.Value == true and staganim == false then | |
| 3204 | coroutine.resume(coroutine.create(function() | |
| 3205 | staganim = true | |
| 3206 | while attack == true do | |
| 3207 | ArtificialHeartbeat.Event:wait() | |
| 3208 | end | |
| 3209 | Stagger() | |
| 3210 | StaggerAnim.Value = false | |
| 3211 | staganim = false | |
| 3212 | end)) | |
| 3213 | end | |
| 3214 | if StaggerHitAnim.Value == true and staghitanim == false then | |
| 3215 | coroutine.resume(coroutine.create(function() | |
| 3216 | staghitanim = true | |
| 3217 | while attack == true do | |
| 3218 | ArtificialHeartbeat.Event:wait() | |
| 3219 | end | |
| 3220 | StaggerHit() | |
| 3221 | StaggerHitAnim.Value = false | |
| 3222 | staghitanim = false | |
| 3223 | end)) | |
| 3224 | end | |
| 3225 | if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then | |
| 3226 | coroutine.resume(coroutine.create(function() | |
| 3227 | StunValue.Value = 0 | |
| 3228 | stunanim = true | |
| 3229 | while attack == true do | |
| 3230 | ArtificialHeartbeat.Event:wait() | |
| 3231 | end | |
| 3232 | Stun() | |
| 3233 | StunAnim.Value = false | |
| 3234 | stunanim = false | |
| 3235 | end)) | |
| 3236 | end | |
| 3237 | sine = sine + change | |
| 3238 | someangle = someangle % 100 + change2 / 10 | |
| 3239 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
| 3240 | local velderp = RootPart.Velocity.y | |
| 3241 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
| 3242 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
| 3243 | if donum >= 0.5 then | |
| 3244 | handidle = true | |
| 3245 | elseif donum <= 0 then | |
| 3246 | handidle = false | |
| 3247 | end | |
| 3248 | if handidle == false then | |
| 3249 | donum = donum + 0.002 | |
| 3250 | else | |
| 3251 | donum = donum - 0.002 | |
| 3252 | end | |
| 3253 | if equipped == true or equipped == false then | |
| 3254 | if attack == false then | |
| 3255 | idle = idle + 1 | |
| 3256 | else | |
| 3257 | idle = 0 | |
| 3258 | end | |
| 3259 | if not (idle >= 500) or attack == false then | |
| 3260 | end | |
| 3261 | if leftarm == true then | |
| 3262 | if Anim == "Walk" and equipped == true and attack == false then | |
| 3263 | if alternatewalk == false then | |
| 3264 | if walkinganim == true then | |
| 3265 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3266 | else | |
| 3267 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3268 | end | |
| 3269 | elseif walkinganim == true then | |
| 3270 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3271 | else | |
| 3272 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3273 | end | |
| 3274 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
| 3275 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3276 | end | |
| 3277 | end | |
| 3278 | if rightarm == true then | |
| 3279 | if Anim == "Walk" and equipped == true and attack == false then | |
| 3280 | if alternatewalk == false then | |
| 3281 | if walkinganim == true then | |
| 3282 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3283 | else | |
| 3284 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3285 | end | |
| 3286 | elseif walkinganim == true then | |
| 3287 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3288 | else | |
| 3289 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3290 | end | |
| 3291 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
| 3292 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3293 | end | |
| 3294 | end | |
| 3295 | if allowwalking == true then | |
| 3296 | if Anim == "Walk" and equipped == true then | |
| 3297 | if alternatewalk == false then | |
| 3298 | if walkinganim == true then | |
| 3299 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3300 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3301 | else | |
| 3302 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3303 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3304 | end | |
| 3305 | elseif walkinganim == true then | |
| 3306 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3307 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3308 | else | |
| 3309 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3310 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
| 3311 | end | |
| 3312 | elseif Anim ~= "Walk" and equipped == true then | |
| 3313 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3314 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3315 | end | |
| 3316 | end | |
| 3317 | if velderp > 1 and hitfloor == nil then | |
| 3318 | Anim = "Jump" | |
| 3319 | if attack == false and equipped == true then | |
| 3320 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3321 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1) | |
| 3322 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
| 3323 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
| 3324 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1) | |
| 3325 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1) | |
| 3326 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
| 3327 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
| 3328 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3329 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3330 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3331 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3332 | end | |
| 3333 | elseif velderp < -1 and hitfloor == nil then | |
| 3334 | Anim = "Fall" | |
| 3335 | if attack == false and equipped == true then | |
| 3336 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3337 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1) | |
| 3338 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1) | |
| 3339 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1) | |
| 3340 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1) | |
| 3341 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
| 3342 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
| 3343 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
| 3344 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3345 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3346 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3347 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3348 | end | |
| 3349 | elseif torvel < 1 and hitfloor ~= nil then | |
| 3350 | Anim = "Idle" | |
| 3351 | if attack == false and equipped == true then | |
| 3352 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
| 3353 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075) | |
| 3354 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075) | |
| 3355 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075) | |
| 3356 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
| 3357 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
| 3358 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075) | |
| 3359 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075) | |
| 3360 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
| 3361 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
| 3362 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075) | |
| 3363 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075) | |
| 3364 | end | |
| 3365 | elseif torvel > 1 and hitfloor ~= nil then | |
| 3366 | Anim = "Walk" | |
| 3367 | walk = walk + 0.5 | |
| 3368 | if walk >= 20 then | |
| 3369 | walk = 0 | |
| 3370 | if walkinganim == true then | |
| 3371 | walkinganim = false | |
| 3372 | elseif walkinganim == false then | |
| 3373 | walkinganim = true | |
| 3374 | end | |
| 3375 | end | |
| 3376 | if attack == false and equipped == true then | |
| 3377 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 3378 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
| 3379 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
| 3380 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
| 3381 | if walkinganim == true then | |
| 3382 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1) | |
| 3383 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1) | |
| 3384 | else | |
| 3385 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1) | |
| 3386 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1) | |
| 3387 | end | |
| 3388 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
| 3389 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
| 3390 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3391 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
| 3392 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3393 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
| 3394 | end | |
| 3395 | end | |
| 3396 | end | |
| 3397 | end | |
| 3398 | end) |