SHOW:
|
|
- or go back to the newest paste.
| 1 | - | ----God of shapes created by Father_Heaven |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 2 | - | --using shackluster scripts-- |
| 2 | + | print(" this script was converted by An ignorant / zach ")
|
| 3 | - | --More added by XDavodioX-- |
| 3 | + | warn(" credits goes to real creators ")
|
| 4 | - | --That includes-- |
| 4 | + | warn(" pls dont abuse ")
|
| 5 | - | --Name |
| 5 | + | warn(" i beg u ")
|
| 6 | - | --Smite |
| 6 | + | local Player,game,owner = owner,game |
| 7 | - | --The Gui |
| 7 | + | local RealPlayer = Player |
| 8 | - | --Teleport |
| 8 | + | do |
| 9 | print("FE Compatibility code by Mokiros")
| |
| 10 | local rp = RealPlayer | |
| 11 | script.Parent = rp.Character | |
| 12 | ||
| 13 | --RemoteEvent for communicating | |
| 14 | local Event = Instance.new("RemoteEvent")
| |
| 15 | Event.Name = "UserInput_Event" | |
| 16 | ||
| 17 | --Fake event to make stuff like Mouse.KeyDown work | |
| 18 | local function fakeEvent() | |
| 19 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 20 | t.connect = t.Connect | |
| 21 | return t | |
| 22 | end | |
| 23 | ||
| 24 | --Creating fake input objects with fake variables | |
| 25 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 26 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 27 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 28 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 29 | end} | |
| 30 | --Merged 2 functions into one by checking amount of arguments | |
| 31 | CAS.UnbindAction = CAS.BindAction | |
| 32 | ||
| 33 | --This function will trigger the events that have been :Connect()'ed | |
| 34 | local function te(self,ev,...) | |
| 35 | local t = m[ev] | |
| 36 | if t and t._fakeEvent then | |
| 37 | for _,f in pairs(t.Functions) do | |
| 38 | f(...) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | m.TrigEvent = te | |
| 43 | UIS.TrigEvent = te | |
| 44 | ||
| 45 | Event.OnServerEvent:Connect(function(plr,io) | |
| 46 | if plr~=rp then return end | |
| 47 | m.Target = io.Target | |
| 48 | m.Hit = io.Hit | |
| 49 | if not io.isMouse then | |
| 50 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 51 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 52 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 53 | end | |
| 54 | for _,t in pairs(CAS.Actions) do | |
| 55 | for _,k in pairs(t.Keys) do | |
| 56 | if k==io.KeyCode then | |
| 57 | t.Function(t.Name,io.UserInputState,io) | |
| 58 | end | |
| 59 | end | |
| 60 | end | |
| 61 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 62 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 63 | end | |
| 64 | end) | |
| 65 | Event.Parent = NLS([==[ | |
| 66 | local Player = game:GetService("Players").LocalPlayer
| |
| 67 | local Event = script:WaitForChild("UserInput_Event")
| |
| 68 | ||
| 69 | local Mouse = Player:GetMouse() | |
| 70 | local UIS = game:GetService("UserInputService")
| |
| 71 | local input = function(io,a) | |
| 72 | if a then return end | |
| 73 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 74 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 75 | end | |
| 76 | UIS.InputBegan:Connect(input) | |
| 77 | UIS.InputEnded:Connect(input) | |
| 78 | ||
| 79 | local h,t | |
| 80 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 81 | --If player is not moving their mouse, client won't fire events | |
| 82 | while wait(1/30) do | |
| 83 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 84 | h,t=Mouse.Hit,Mouse.Target | |
| 85 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 86 | end | |
| 87 | end]==],Player.Character) | |
| 88 | ||
| 89 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 90 | --Real game object | |
| 91 | local _rg = game | |
| 92 | ||
| 93 | --Metatable for fake service | |
| 94 | local fsmt = {
| |
| 95 | __index = function(self,k) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then return s[k] end | |
| 98 | end, | |
| 99 | __newindex = function(self,k,v) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then s[k]=v end | |
| 102 | end, | |
| 103 | __call = function(self,...) | |
| 104 | local s = rawget(self,"_RealService") | |
| 105 | if s then return s(...) end | |
| 106 | end | |
| 107 | } | |
| 108 | local function FakeService(t,RealService) | |
| 109 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 110 | return setmetatable(t,fsmt) | |
| 111 | end | |
| 112 | ||
| 113 | --Fake game object | |
| 114 | local g = {
| |
| 115 | GetService = function(self,s) | |
| 116 | return self[s] | |
| 117 | end, | |
| 118 | Players = FakeService({
| |
| 119 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 120 | },"Players"), | |
| 121 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 122 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 123 | } | |
| 124 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 125 | g.service = g.GetService | |
| 126 | ||
| 127 | g.RunService = FakeService({
| |
| 128 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 129 | BindToRenderStep = function(self,name,_,fun) | |
| 130 | ||
| 131 | end, | |
| 132 | UnbindFromRenderStep = function(self,name) | |
| 133 | self._btrs[name]:Disconnect() | |
| 134 | end, | |
| 135 | },"RunService") | |
| 136 | ||
| 137 | setmetatable(g,{
| |
| 138 | __index=function(self,s) | |
| 139 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 140 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 141 | end, | |
| 142 | __newindex = fsmt.__newindex, | |
| 143 | __call = fsmt.__call | |
| 144 | }) | |
| 145 | --Changing owner to fake player object to support owner:GetMouse() | |
| 146 | game,owner = g,g.Players.LocalPlayer | |
| 147 | end | |
| 148 | ||
| 149 | ||
| 150 | ||
| 151 | ||
| 152 | function sandbox(var,func) | |
| 153 | local env = getfenv(func) | |
| 154 | local newenv = setmetatable({},{
| |
| 155 | __index = function(self,k) | |
| 156 | if k=="script" then | |
| 157 | return var | |
| 158 | else | |
| 159 | return env[k] | |
| 160 | end | |
| 161 | end, | |
| 162 | }) | |
| 163 | setfenv(func,newenv) | |
| 164 | return func | |
| 165 | end | |
| 166 | function NS(...) | |
| 167 | local tab = {...}
| |
| 168 | local fat = {}
| |
| 169 | for i = 1, #tab do | |
| 170 | local v = tab[i] | |
| 171 | table.insert(fat,NumberSequenceKeypoint.new(v[1],v[2])) | |
| 172 | end | |
| 173 | return NumberSequence.new(fat); | |
| 174 | end | |
| 175 | ||
| 176 | cors = {}
| |
| 177 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 178 | ParticleEmitter0 = Instance.new("ParticleEmitter")
| |
| 179 | ParticleEmitter1 = Instance.new("ParticleEmitter")
| |
| 180 | ParticleEmitter2 = Instance.new("ParticleEmitter")
| |
| 181 | ParticleEmitter0.Name = "Flames" | |
| 182 | ParticleEmitter0.Parent = mas | |
| 183 | ParticleEmitter0.Speed = NumberRange.new(0, 15) | |
| 184 | ParticleEmitter0.Rotation = NumberRange.new(0, 360) | |
| 185 | ParticleEmitter0.Enabled = false | |
| 186 | ParticleEmitter0.LightEmission = 1 | |
| 187 | ParticleEmitter0.LightInfluence = 1 | |
| 188 | ParticleEmitter0.Transparency = NumberSequence.new(1,0) | |
| 189 | ParticleEmitter0.ZOffset = 1 | |
| 190 | ParticleEmitter0.Size = NumberSequence.new(10,0) | |
| 191 | ParticleEmitter0.EmissionDirection = Enum.NormalId.Back | |
| 192 | ParticleEmitter0.Lifetime = NumberRange.new(0, 2) | |
| 193 | ParticleEmitter0.Rate = 9999 | |
| 194 | ParticleEmitter0.RotSpeed = NumberRange.new(-25, 25) | |
| 195 | ParticleEmitter0.SpreadAngle = Vector2.new(25, 25) | |
| 196 | ParticleEmitter0.VelocitySpread = 25 | |
| 197 | ParticleEmitter0.Texture = "rbxasset://textures/particles/sparkles_main.dds" | |
| 198 | ParticleEmitter1.Name = "Death" | |
| 199 | ParticleEmitter1.Parent = mas | |
| 200 | ParticleEmitter1.Rotation = NumberRange.new(0, 360) | |
| 201 | ParticleEmitter1.Enabled = false | |
| 202 | ParticleEmitter1.LightEmission = 0.75 | |
| 203 | ParticleEmitter1.Texture = "rbxasset://textures/particles/sparkles_main.dds" | |
| 204 | ParticleEmitter1.Transparency = NS({0,0.47540986537933},{.168,0.37704920768738},{.457,0.25683063268661},{.803,0.4426229596138},{.948,0.62841534614563},{1,1})
| |
| 205 | ParticleEmitter1.ZOffset = 0.5 | |
| 206 | ParticleEmitter1.Size = NS({0,1},{.656,1.8032789230347},{.843,1.4207655191422},{1,0})
| |
| 207 | ParticleEmitter1.Acceleration = Vector3.new(0, 35, 0) | |
| 208 | ParticleEmitter1.Drag = 5 | |
| 209 | ParticleEmitter1.EmissionDirection = Enum.NormalId.Right | |
| 210 | ParticleEmitter1.Lifetime = NumberRange.new(0, 1) | |
| 211 | ParticleEmitter1.Rate = 999 | |
| 212 | ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56) | |
| 213 | ParticleEmitter1.SpreadAngle = Vector2.new(360, 360) | |
| 214 | ParticleEmitter1.VelocitySpread = 360 | |
| 215 | ParticleEmitter2.Name = "Wing" | |
| 216 | ParticleEmitter2.Parent = mas | |
| 217 | ParticleEmitter2.Rotation = NumberRange.new(0, 360) | |
| 218 | ParticleEmitter2.Enabled = false | |
| 219 | ParticleEmitter2.LightEmission = 1 | |
| 220 | ParticleEmitter2.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 221 | ParticleEmitter2.Size = NS({0,0.05464494228363},{.193,1.0382515192032},{.352,1.3661205768585},{1,0})
| |
| 222 | ParticleEmitter2.Acceleration = Vector3.new(0, -7, 15) | |
| 223 | ParticleEmitter2.Lifetime = NumberRange.new(0.80000001192093, 0.80000001192093) | |
| 224 | ParticleEmitter2.LockedToPart = true | |
| 225 | ParticleEmitter2.Rate = 300 | |
| 226 | ||
| 227 | for i,v in pairs(mas:GetChildren()) do | |
| 228 | v.Parent = script | |
| 229 | pcall(function() v:MakeJoints() end) | |
| 230 | end | |
| 231 | mas:Destroy() | |
| 232 | for i,v in pairs(cors) do | |
| 233 | spawn(function() | |
| 234 | pcall(v) | |
| 235 | end) | |
| 236 | end | |
| 237 | ||
| 238 | ||
| 239 | ||
| 240 | ||
| 241 | ||
| 242 | ||
| 243 | ||
| 244 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 245 | if inputObject.KeyCode == Enum.KeyCode.L then | |
| 246 | ||
| 247 | ||
| 248 | local q = game.Players:GetChildren() for i = 1, #q do if q[i].Character.Parent ~= workspace and q[i].Parent ~= nil then q[i].Character.Parent = workspace local sound2 = Instance.new("Sound",workspace) sound2.SoundId = "rbxassetid://245910488" sound2.Volume = 5 sound2:Play() end end end
| |
| 249 | ||
| 250 | ||
| 251 | end | |
| 252 | ||
| 253 | ||
| 254 | ||
| 255 | ||
| 256 | ||
| 257 | ||
| 258 | ||
| 259 | game:GetService("UserInputService").InputBegan:connect(onKeyPress)
| |
| 260 | ||
| 261 | ||
| 262 | ||
| 263 | ||
| 264 | ||
| 265 | ||
| 266 | ||
| 267 | ||
| 268 | Player = game:GetService("Players").LocalPlayer
| |
| 269 | Character = Player.Character | |
| 270 | ||
| 271 | ||
| 272 | ||
| 273 | Torso = Character["Torso"] | |
| 274 | Head = Character["Head"] | |
| 275 | RightArm = Character["Right Arm"] | |
| 276 | LeftArm = Character["Left Arm"] | |
| 277 | RightLeg = Character["Right Leg"] | |
| 278 | LeftLeg = Character["Left Leg"] | |
| 279 | Neck = Torso["Neck"] | |
| 280 | ||
| 281 | wait(1) | |
| 282 | ||
| 283 | ||
| 284 | ||
| 285 | ||
| 286 | ||
| 287 | ||
| 288 | local createstuff = function() | |
| 289 | local stuff = Instance.new("Model")
| |
| 290 | ||
| 291 | local ParticleBox = Instance.new("Part")
| |
| 292 | ||
| 293 | ||
| 294 | stuff.Name = "Stuff" | |
| 295 | stuff.Parent = workspace | |
| 296 | ||
| 297 | ParticleBox.Size = Vector3.new(10, 10, 10) | |
| 298 | ParticleBox.BottomSurface = Enum.SurfaceType.Smooth | |
| 299 | ParticleBox.Material = Enum.Material.SmoothPlastic | |
| 300 | ParticleBox.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 301 | ParticleBox.BrickColor = BrickColor.new("Really black")
| |
| 302 | ParticleBox.TopSurface = Enum.SurfaceType.Smooth | |
| 303 | ParticleBox.Name = "ParticleBox" | |
| 304 | ParticleBox.Parent = stuff | |
| 305 | ParticleBox.CFrame = CFrame.new(9.8, 44.1, -48.7) | |
| 306 | ParticleBox.Transparency = 1 | |
| 307 | ||
| 308 | local headness = Instance.new("Part")
| |
| 309 | headness.Parent = stuff | |
| 310 | headness.Name = ("headness")
| |
| 311 | headness.Size = Vector3.new(2,1,1) | |
| 312 | headness.Transparency = 0.5 | |
| 313 | headness.Material = ("Neon")
| |
| 314 | headness.BrickColor = BrickColor.new("Navy blue")
| |
| 315 | headness.CanCollide = false | |
| 316 | ||
| 317 | ||
| 318 | local Blockhead = Instance.new("BlockMesh")
| |
| 319 | Blockhead.Name = ("Blockhead")
| |
| 320 | Blockhead.Offset = Vector3.new(0,-0.45,0) | |
| 321 | Blockhead.Scale = Vector3.new(0.56,1.1,1.1) | |
| 322 | Blockhead.Parent = stuff | |
| 323 | ||
| 324 | local MajesticGlow = Instance.new("PointLight")
| |
| 325 | MajesticGlow.Color = Color3.new(6/225,6/255,159/255) | |
| 326 | MajesticGlow.Range = 25 | |
| 327 | MajesticGlow.Shadows = false | |
| 328 | MajesticGlow.Brightness = 1 | |
| 329 | MajesticGlow.Name = ("MajesticGlow")
| |
| 330 | MajesticGlow.Parent = stuff | |
| 331 | ||
| 332 | ||
| 333 | ||
| 334 | for i,v in pairs(stuff:GetChildren()) do | |
| 335 | v.Parent = script | |
| 336 | end | |
| 337 | end | |
| 338 | ||
| 339 | createstuff() | |
| 340 | ||
| 341 | ||
| 342 | wait(1) | |
| 343 | ||
| 344 | Player = game:GetService("Players").LocalPlayer
| |
| 345 | PlayerGui = Player.PlayerGui | |
| 346 | Cam = workspace.CurrentCamera | |
| 347 | Backpack = Player.Backpack | |
| 348 | Character = Player.Character | |
| 349 | Humanoid = Character.Humanoid | |
| 350 | Mouse = Player:GetMouse() | |
| 351 | RootPart = Character["HumanoidRootPart"] | |
| 352 | Torso = Character["Torso"] | |
| 353 | Head = Character["Head"] | |
| 354 | RightArm = Character["Right Arm"] | |
| 355 | LeftArm = Character["Left Arm"] | |
| 356 | RightLeg = Character["Right Leg"] | |
| 357 | LeftLeg = Character["Left Leg"] | |
| 358 | RootJoint = RootPart["RootJoint"] | |
| 359 | Neck = Torso["Neck"] | |
| 360 | RightShoulder = Torso["Right Shoulder"] | |
| 361 | LeftShoulder = Torso["Left Shoulder"] | |
| 362 | RightHip = Torso["Right Hip"] | |
| 363 | LeftHip = Torso["Left Hip"] | |
| 364 | local sick = Instance.new("Sound",Character)
| |
| 365 | Player_Size = 1 | |
| 366 | ||
| 367 | IT = Instance.new | |
| 368 | CF = CFrame.new | |
| 369 | VT = Vector3.new | |
| 370 | RAD = math.rad | |
| 371 | C3 = Color3.new | |
| 372 | UD2 = UDim2.new | |
| 373 | BRICKC = BrickColor.new | |
| 374 | ANGLES = CFrame.Angles | |
| 375 | EULER = CFrame.fromEulerAnglesXYZ | |
| 376 | COS = math.cos | |
| 377 | ACOS = math.acos | |
| 378 | SIN = math.sin | |
| 379 | ASIN = math.asin | |
| 380 | ABS = math.abs | |
| 381 | MRANDOM = math.random | |
| 382 | FLOOR = math.floor | |
| 383 | ||
| 384 | Animation_Speed = 3 | |
| 385 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 386 | local Speed = 35 | |
| 387 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 388 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 389 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 390 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 391 | local DAMAGEMULTIPLIER = 1 | |
| 392 | local ANIM = "Idle" | |
| 393 | local ATTACK = false | |
| 394 | local EQUIPPED = false | |
| 395 | local HOLD = false | |
| 396 | local COMBO = 1 | |
| 397 | local Rooted = false | |
| 398 | local SINE = 0 | |
| 399 | local KEYHOLD = false | |
| 400 | local CHANGE = 2 / Animation_Speed | |
| 401 | local WALKINGANIM = false | |
| 402 | local VALUE1 = false | |
| 403 | local VALUE2 = false | |
| 404 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 405 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 406 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 407 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 408 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 409 | WEAPONGUI.Name = "Weapon GUI" | |
| 410 | local Effects = IT("Folder", Character)
| |
| 411 | Effects.Name = "Effects" | |
| 412 | ||
| 413 | local SKILLTEXTCOLOR = C3(0,1,0) | |
| 414 | ||
| 415 | ||
| 416 | local remember = coroutine.wrap(function() | |
| 417 | while true do | |
| 418 | ||
| 419 | for _, c in pairs(Character:GetChildren()) do | |
| 420 | if c:IsA("Folder") then
| |
| 421 | Effects = c | |
| 422 | ||
| 423 | ||
| 424 | ||
| 425 | ||
| 426 | end | |
| 427 | ||
| 428 | ||
| 429 | ||
| 430 | end | |
| 431 | ||
| 432 | ||
| 433 | ||
| 434 | ||
| 435 | wait() | |
| 436 | end | |
| 437 | ||
| 438 | end) | |
| 439 | ||
| 440 | remember() | |
| 441 | ||
| 442 | ||
| 443 | ||
| 444 | ||
| 445 | local ANIMATOR = Humanoid.Animator | |
| 446 | local ANIMATE = Character.Animate | |
| 447 | local UNANCHOR = true | |
| 448 | local PLAYSONG = true | |
| 449 | local EXTRATRANS = 0 | |
| 450 | ||
| 451 | --//=================================\\ | |
| 452 | --\\=================================// | |
| 453 | ||
| 454 | ||
| 455 | --//=================================\\ | |
| 456 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 457 | --\\=================================// | |
| 458 | ||
| 459 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 460 | ArtificialHB.Name = "ArtificialHB" | |
| 461 | ||
| 462 | script:WaitForChild("ArtificialHB")
| |
| 463 | ||
| 464 | frame = Frame_Speed | |
| 465 | tf = 0 | |
| 466 | allowframeloss = false | |
| 467 | tossremainder = false | |
| 468 | lastframe = tick() | |
| 469 | script.ArtificialHB:Fire() | |
| 470 | ||
| 471 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 472 | tf = tf + s | |
| 473 | if tf >= frame then | |
| 474 | if allowframeloss then | |
| 475 | script.ArtificialHB:Fire() | |
| 476 | lastframe = tick() | |
| 477 | else | |
| 478 | for i = 1, math.floor(tf / frame) do | |
| 479 | script.ArtificialHB:Fire() | |
| 480 | end | |
| 481 | lastframe = tick() | |
| 482 | end | |
| 483 | if tossremainder then | |
| 484 | tf = 0 | |
| 485 | else | |
| 486 | tf = tf - frame * math.floor(tf / frame) | |
| 487 | end | |
| 488 | end | |
| 489 | end) | |
| 490 | ||
| 491 | --//=================================\\ | |
| 492 | --|| Nameing crep || | |
| 493 | --\\=================================// | |
| 494 | ||
| 495 | ||
| 496 | m = game.Players.LocalPlayer | |
| 497 | char = m.Character | |
| 498 | local txt = Instance.new("BillboardGui", char)
| |
| 499 | txt.Adornee = char.Head | |
| 500 | txt.Name = "_status" | |
| 501 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 502 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 503 | local text = Instance.new("TextLabel", txt)
| |
| 504 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 505 | text.FontSize = "Size24" | |
| 506 | text.TextScaled = true | |
| 507 | text.TextTransparency = 0 | |
| 508 | text.BackgroundTransparency = 1 | |
| 509 | text.TextTransparency = 0 | |
| 510 | text.TextStrokeTransparency = 1 | |
| 511 | text.Font = "Arcade" | |
| 512 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 513 | v = Instance.new("Part")
| |
| 514 | v.Name = "ColorBrick" | |
| 515 | v.Parent = m.Character | |
| 516 | v.FormFactor = "Symmetric" | |
| 517 | v.Anchored = true | |
| 518 | v.CanCollide = false | |
| 519 | v.BottomSurface = "Smooth" | |
| 520 | v.TopSurface = "Smooth" | |
| 521 | v.Size = Vector3.new(10, 5, 3) | |
| 522 | v.Transparency = 1 | |
| 523 | v.CFrame = char.Torso.CFrame | |
| 524 | v.BrickColor = BrickColor.new("Really black")
| |
| 525 | v.Transparency = 1 | |
| 526 | v.Shape = "Block" | |
| 527 | spawn(function() | |
| 528 | local TweenService = game:GetService("TweenService")
| |
| 529 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 530 | local Int = 0 | |
| 531 | while wait(0.5) do | |
| 532 | if Int == #Colours then Int = 0 end | |
| 533 | Int = Int+1 | |
| 534 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
| |
| 535 | end | |
| 536 | end) | |
| 537 | text.Text = "God of Shapes" | |
| 538 | ||
| 539 | ||
| 540 | --//=================================\\ | |
| 541 | --|| SOME FUNCTIONS | |
| 542 | --\\=================================// | |
| 543 | ||
| 544 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 545 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 546 | end | |
| 547 | ||
| 548 | function PositiveAngle(NUMBER) | |
| 549 | if NUMBER >= 0 then | |
| 550 | NUMBER = 0 | |
| 551 | end | |
| 552 | return NUMBER | |
| 553 | end | |
| 554 | ||
| 555 | function NegativeAngle(NUMBER) | |
| 556 | if NUMBER <= 0 then | |
| 557 | NUMBER = 0 | |
| 558 | end | |
| 559 | return NUMBER | |
| 560 | end | |
| 561 | ||
| 562 | function Swait(NUMBER) | |
| 563 | if NUMBER == 0 or NUMBER == nil then | |
| 564 | ArtificialHB.Event:wait() | |
| 565 | else | |
| 566 | for i = 1, NUMBER do | |
| 567 | ArtificialHB.Event:wait() | |
| 568 | end | |
| 569 | end | |
| 570 | end | |
| 571 | ||
| 572 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 573 | local NEWMESH = IT(MESH) | |
| 574 | if MESH == "SpecialMesh" then | |
| 575 | NEWMESH.MeshType = MESHTYPE | |
| 576 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 577 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 578 | end | |
| 579 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 580 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 581 | end | |
| 582 | end | |
| 583 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 584 | NEWMESH.Scale = SCALE | |
| 585 | NEWMESH.Parent = PARENT | |
| 586 | return NEWMESH | |
| 587 | end | |
| 588 | ||
| 589 | ||
| 590 | ||
| 591 | local function weldBetween(a, b) | |
| 592 | local weldd = Instance.new("ManualWeld")
| |
| 593 | weldd.Part0 = a | |
| 594 | weldd.Part1 = b | |
| 595 | weldd.C0 = CFrame.new() | |
| 596 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 597 | weldd.Parent = a | |
| 598 | return weldd | |
| 599 | end | |
| 600 | ||
| 601 | ||
| 602 | function QuaternionFromCFrame(cf) | |
| 603 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 604 | local trace = m00 + m11 + m22 | |
| 605 | if trace > 0 then | |
| 606 | local s = math.sqrt(1 + trace) | |
| 607 | local recip = 0.5 / s | |
| 608 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 609 | else | |
| 610 | local i = 0 | |
| 611 | if m11 > m00 then | |
| 612 | i = 1 | |
| 613 | end | |
| 614 | if m22 > (i == 0 and m00 or m11) then | |
| 615 | i = 2 | |
| 616 | end | |
| 617 | if i == 0 then | |
| 618 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 619 | local recip = 0.5 / s | |
| 620 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 621 | elseif i == 1 then | |
| 622 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 623 | local recip = 0.5 / s | |
| 624 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 625 | elseif i == 2 then | |
| 626 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 627 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 628 | end | |
| 629 | end | |
| 630 | end | |
| 631 | ||
| 632 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 633 | local xs, ys, zs = x + x, y + y, z + z | |
| 634 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 635 | local xx = x * xs | |
| 636 | local xy = x * ys | |
| 637 | local xz = x * zs | |
| 638 | local yy = y * ys | |
| 639 | local yz = y * zs | |
| 640 | local zz = z * zs | |
| 641 | 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)) | |
| 642 | end | |
| 643 | ||
| 644 | function QuaternionSlerp(a, b, t) | |
| 645 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 646 | local startInterp, finishInterp; | |
| 647 | if cosTheta >= 0.0001 then | |
| 648 | if (1 - cosTheta) > 0.0001 then | |
| 649 | local theta = ACOS(cosTheta) | |
| 650 | local invSinTheta = 1 / SIN(theta) | |
| 651 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 652 | finishInterp = SIN(t * theta) * invSinTheta | |
| 653 | else | |
| 654 | startInterp = 1 - t | |
| 655 | finishInterp = t | |
| 656 | end | |
| 657 | else | |
| 658 | if (1 + cosTheta) > 0.0001 then | |
| 659 | local theta = ACOS(-cosTheta) | |
| 660 | local invSinTheta = 1 / SIN(theta) | |
| 661 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 662 | finishInterp = SIN(t * theta) * invSinTheta | |
| 663 | else | |
| 664 | startInterp = t - 1 | |
| 665 | finishInterp = t | |
| 666 | end | |
| 667 | end | |
| 668 | 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 | |
| 669 | end | |
| 670 | ||
| 671 | function Clerp(a, b, t) | |
| 672 | local qa = {QuaternionFromCFrame(a)}
| |
| 673 | local qb = {QuaternionFromCFrame(b)}
| |
| 674 | local ax, ay, az = a.x, a.y, a.z | |
| 675 | local bx, by, bz = b.x, b.y, b.z | |
| 676 | local _t = 1 - t | |
| 677 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 678 | end | |
| 679 | ||
| 680 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 681 | local frame = IT("Frame")
| |
| 682 | frame.BackgroundTransparency = TRANSPARENCY | |
| 683 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 684 | frame.Position = POSITION | |
| 685 | frame.Size = SIZE | |
| 686 | frame.BackgroundColor3 = COLOR | |
| 687 | frame.BorderColor3 = BORDERCOLOR | |
| 688 | frame.Name = NAME | |
| 689 | frame.Parent = PARENT | |
| 690 | return frame | |
| 691 | end | |
| 692 | ||
| 693 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 694 | local label = IT("TextLabel")
| |
| 695 | label.BackgroundTransparency = 1 | |
| 696 | label.Size = UD2(1, 0, 1, 0) | |
| 697 | label.Position = UD2(0, 0, 0, 0) | |
| 698 | label.TextColor3 = TEXTCOLOR | |
| 699 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 700 | label.TextTransparency = TRANSPARENCY | |
| 701 | label.FontSize = TEXTFONTSIZE | |
| 702 | label.Font = TEXTFONT | |
| 703 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 704 | label.TextScaled = false | |
| 705 | label.Text = TEXT | |
| 706 | label.Name = NAME | |
| 707 | label.Parent = PARENT | |
| 708 | return label | |
| 709 | end | |
| 710 | ||
| 711 | function NoOutlines(PART) | |
| 712 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 713 | end | |
| 714 | ||
| 715 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 716 | local NEWWELD = IT(TYPE) | |
| 717 | NEWWELD.Part0 = PART0 | |
| 718 | NEWWELD.Part1 = PART1 | |
| 719 | NEWWELD.C0 = C0 | |
| 720 | NEWWELD.C1 = C1 | |
| 721 | NEWWELD.Parent = PARENT | |
| 722 | return NEWWELD | |
| 723 | end | |
| 724 | ||
| 725 | local S = IT("Sound")
| |
| 726 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 727 | local NEWSOUND = nil | |
| 728 | coroutine.resume(coroutine.create(function() | |
| 729 | NEWSOUND = S:Clone() | |
| 730 | NEWSOUND.Parent = PARENT | |
| 731 | NEWSOUND.Volume = VOLUME | |
| 732 | NEWSOUND.Pitch = PITCH | |
| 733 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 734 | NEWSOUND:play() | |
| 735 | if DOESLOOP == true then | |
| 736 | NEWSOUND.Looped = true | |
| 737 | else | |
| 738 | repeat wait(1) until NEWSOUND.Playing == false | |
| 739 | NEWSOUND:remove() | |
| 740 | end | |
| 741 | end)) | |
| 742 | return NEWSOUND | |
| 743 | end | |
| 744 | ||
| 745 | function CFrameFromTopBack(at, top, back) | |
| 746 | local right = top:Cross(back) | |
| 747 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 748 | end | |
| 749 | ||
| 750 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 751 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 752 | local mesh = IT("SpecialMesh",wave)
| |
| 753 | mesh.MeshType = "FileMesh" | |
| 754 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 755 | mesh.Scale = SIZE | |
| 756 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 757 | wave.CFrame = CFRAME | |
| 758 | coroutine.resume(coroutine.create(function(PART) | |
| 759 | for i = 1, WAIT do | |
| 760 | Swait() | |
| 761 | mesh.Scale = mesh.Scale + GROW | |
| 762 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 763 | if DOESROT == true then | |
| 764 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 765 | end | |
| 766 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 767 | if wave.Transparency > 0.99 then | |
| 768 | wave:remove() | |
| 769 | end | |
| 770 | end | |
| 771 | end)) | |
| 772 | end | |
| 773 | ||
| 774 | function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 775 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 776 | local mesh = IT("SpecialMesh",wave)
| |
| 777 | mesh.MeshType = "FileMesh" | |
| 778 | mesh.MeshId = "http://www.roblox.com/asset/?id=9982590" | |
| 779 | mesh.Scale = SIZE | |
| 780 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 781 | wave.CFrame = CFRAME | |
| 782 | coroutine.resume(coroutine.create(function(PART) | |
| 783 | for i = 1, WAIT do | |
| 784 | Swait() | |
| 785 | mesh.Scale = mesh.Scale + GROW | |
| 786 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 787 | if DOESROT == true then | |
| 788 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 789 | end | |
| 790 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 791 | if wave.Transparency > 0.99 then | |
| 792 | wave:remove() | |
| 793 | end | |
| 794 | end | |
| 795 | end)) | |
| 796 | end | |
| 797 | ||
| 798 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 799 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 800 | local mesh = IT("SpecialMesh",wave)
| |
| 801 | mesh.MeshType = "FileMesh" | |
| 802 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 803 | mesh.Scale = SIZE | |
| 804 | wave.CFrame = CFRAME | |
| 805 | coroutine.resume(coroutine.create(function(PART) | |
| 806 | for i = 1, WAIT do | |
| 807 | Swait() | |
| 808 | mesh.Scale = mesh.Scale + GROW | |
| 809 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 810 | if DOESROT == true then | |
| 811 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 812 | end | |
| 813 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 814 | if wave.Transparency > 0.99 then | |
| 815 | wave:remove() | |
| 816 | end | |
| 817 | end | |
| 818 | end)) | |
| 819 | end | |
| 820 | ||
| 821 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 822 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 823 | local mesh = IT("SpecialMesh",wave)
| |
| 824 | mesh.MeshType = "Sphere" | |
| 825 | mesh.Scale = SIZE | |
| 826 | mesh.Offset = VT(0,0,0) | |
| 827 | wave.CFrame = CFRAME | |
| 828 | coroutine.resume(coroutine.create(function(PART) | |
| 829 | for i = 1, WAIT do | |
| 830 | Swait() | |
| 831 | mesh.Scale = mesh.Scale + GROW | |
| 832 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 833 | if wave.Transparency > 0.99 then | |
| 834 | wave:remove() | |
| 835 | end | |
| 836 | end | |
| 837 | end)) | |
| 838 | end | |
| 839 | ||
| 840 | ||
| 841 | ------------------------------------------- | |
| 842 | ------------------------------------------------ | |
| 843 | ||
| 844 | ------------------------------------------------------------------------------------------------------------------------------ | |
| 845 | ||
| 846 | ||
| 847 | ||
| 848 | ||
| 849 | ||
| 850 | ||
| 851 | local headness = script.headness | |
| 852 | headness.Parent = Character | |
| 853 | headness.CFrame = Torso.CFrame*CFrame.new(0,2,0) | |
| 854 | weldBetween(Head,headness) | |
| 855 | ||
| 856 | local Blockhead = script.Blockhead | |
| 857 | Blockhead.Parent = headness | |
| 858 | ||
| 859 | ||
| 860 | ||
| 861 | for _, c in pairs(Character:GetChildren()) do | |
| 862 | ||
| 863 | if c:IsA("BasePart") then
| |
| 864 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 865 | c:Remove() | |
| 866 | end | |
| 867 | if c == Head then | |
| 868 | if c:FindFirstChild("face") then
| |
| 869 | c.face:remove() | |
| 870 | end | |
| 871 | end | |
| 872 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" or c.ClassName == "ShirtGraphic"then | |
| 873 | c:remove() | |
| 874 | end | |
| 875 | end | |
| 876 | local BODY = {}
| |
| 877 | for _, c in pairs(Character:GetDescendants()) do | |
| 878 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 879 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 880 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 881 | ||
| 882 | end | |
| 883 | ||
| 884 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
| |
| 885 | ||
| 886 | elseif c:IsA("JointInstance") then
| |
| 887 | table.insert(BODY,{c,c.Parent,nil,nil,nil})
| |
| 888 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 889 | c:remove() | |
| 890 | ||
| 891 | end | |
| 892 | ||
| 893 | ||
| 894 | end | |
| 895 | ||
| 896 | for e = 1, #BODY do | |
| 897 | if BODY[e] ~= nil then | |
| 898 | local STUFF = BODY[e] | |
| 899 | local PART = STUFF[1] | |
| 900 | local PARENT = STUFF[2] | |
| 901 | local MATERIAL = STUFF[3] | |
| 902 | local COLOR = STUFF[4] | |
| 903 | local TRANSPARENCY = STUFF[5] | |
| 904 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 905 | PART.Material = MATERIAL | |
| 906 | PART.Color = COLOR | |
| 907 | PART.Transparency = TRANSPARENCY | |
| 908 | end | |
| 909 | PART.AncestryChanged:Connect(function() | |
| 910 | PART.Parent = PARENT | |
| 911 | end) | |
| 912 | end | |
| 913 | end | |
| 914 | function refit() | |
| 915 | ||
| 916 | ||
| 917 | Character.Parent = workspace | |
| 918 | for e = 1, #BODY do | |
| 919 | if BODY[e] ~= nil then | |
| 920 | local STUFF = BODY[e] | |
| 921 | local PART = STUFF[1] | |
| 922 | local PARENT = STUFF[2] | |
| 923 | local MATERIAL = STUFF[3] | |
| 924 | local COLOR = STUFF[4] | |
| 925 | local TRANSPARENCY = STUFF[5] | |
| 926 | if PART:IsA("BasePart") and PART ~= RootPart then
| |
| 927 | ||
| 928 | end | |
| 929 | ||
| 930 | if PART.Parent ~= PARENT then | |
| 931 | Humanoid:remove() | |
| 932 | PART.Parent = PARENT | |
| 933 | Humanoid = IT("Humanoid",Character)
| |
| 934 | end | |
| 935 | ||
| 936 | end | |
| 937 | end | |
| 938 | end | |
| 939 | ||
| 940 | Humanoid.Died:connect(function() | |
| 941 | for _, c in pairs(Character:GetChildren()) do | |
| 942 | c:Remove() | |
| 943 | local headness = script.headness | |
| 944 | headness.Parent = Character | |
| 945 | headness.CFrame = Torso.CFrame*CFrame.new(0,2,0) | |
| 946 | weldBetween(headness,Head) | |
| 947 | ||
| 948 | local Blockhead = script.Blockhead | |
| 949 | Blockhead.Parent = headness | |
| 950 | end | |
| 951 | refit() | |
| 952 | createstuff() | |
| 953 | end) | |
| 954 | ||
| 955 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 956 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 957 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 958 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 959 | --local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 960 | --local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
| 961 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.01, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
| 962 | ||
| 963 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[E] Change to Cube", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text 1") | |
| 964 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Change to Explosion", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text 2") | |
| 965 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Q] Teleport", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text 3") | |
| 966 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[F] Rainbow Smite", SKILLTEXTCOLOR, 6, "Arcade", 0, 2, 1, "Text4") | |
| 967 | --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[G] Rainbow Nuke (NOT WORKING UGH)", SKILLTEXTCOLOR, 6, "Arcade", 0, 2, 1, "Text5") | |
| 968 | --local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[] ", SKILLTEXTCOLOR, 6, "Arcade", 0, 2, 1, "Text6") | |
| 969 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[CLICK] Cube of Rainbow", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text7") | |
| 970 | ||
| 971 | spawn(function() | |
| 972 | local TweenService = game:GetService("TweenService")
| |
| 973 | local Colourss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 974 | local Intt = 0 | |
| 975 | while wait(0.5) do | |
| 976 | if Intt == #Colourss then Intt = 0 end | |
| 977 | Intt = Intt+1 | |
| 978 | TweenService:Create(SKILL7TEXT,TweenInfo.new(1),{TextColor3 = Colourss[Intt]}):Play()
| |
| 979 | end | |
| 980 | end) | |
| 981 | ||
| 982 | spawn(function() | |
| 983 | local TweenService = game:GetService("TweenService")
| |
| 984 | local Coloursss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 985 | local Inttt = 0 | |
| 986 | while wait(0.5) do | |
| 987 | if Inttt == #Coloursss then Inttt = 0 end | |
| 988 | Inttt = Inttt+1 | |
| 989 | TweenService:Create(SKILL4TEXT,TweenInfo.new(1),{TextColor3 = Coloursss[Inttt]}):Play()
| |
| 990 | end | |
| 991 | end) | |
| 992 | ||
| 993 | --spawn(function() | |
| 994 | --local TweenService = game:GetService("TweenService")
| |
| 995 | --local Clourss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 996 | --local Itt = 0 | |
| 997 | --while wait(0.5) do | |
| 998 | -- --if Itt == #Clourss then Itt = 0 end | |
| 999 | -- --Itt = Itt+1 | |
| 1000 | -- --TweenService:Create(SKILL5TEXT,TweenInfo.new(1),{TextColor3 = Clourss[Itt]}):Play()
| |
| 1001 | --end | |
| 1002 | --end) | |
| 1003 | ||
| 1004 | spawn(function() | |
| 1005 | local TweenService = game:GetService("TweenService")
| |
| 1006 | local Clouurss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 1007 | local Itlt = 0 | |
| 1008 | while wait(0.5) do | |
| 1009 | if Itlt == #Clouurss then Itlt = 0 end | |
| 1010 | Itlt = Itlt+1 | |
| 1011 | TweenService:Create(SKILL1TEXT,TweenInfo.new(1),{TextColor3 = Clouurss[Itlt]}):Play()
| |
| 1012 | end | |
| 1013 | end) | |
| 1014 | ||
| 1015 | spawn(function() | |
| 1016 | local TweenService = game:GetService("TweenService")
| |
| 1017 | local Cloouurss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 1018 | local Ixtlt = 0 | |
| 1019 | while wait(0.5) do | |
| 1020 | if Ixtlt == #Cloouurss then Ixtlt = 0 end | |
| 1021 | Ixtlt = Ixtlt+1 | |
| 1022 | TweenService:Create(SKILL2TEXT,TweenInfo.new(1),{TextColor3 = Cloouurss[Ixtlt]}):Play()
| |
| 1023 | end | |
| 1024 | end) | |
| 1025 | ||
| 1026 | spawn(function() | |
| 1027 | local TweenService = game:GetService("TweenService")
| |
| 1028 | local Cllouurss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
| |
| 1029 | local Itplt = 0 | |
| 1030 | while wait(0.5) do | |
| 1031 | if Itplt == #Cllouurss then Itplt = 0 end | |
| 1032 | Itplt = Itplt+1 | |
| 1033 | TweenService:Create(SKILL3TEXT,TweenInfo.new(1),{TextColor3 = Cllouurss[Itplt]}):Play()
| |
| 1034 | end | |
| 1035 | end) | |
| 1036 | ||
| 1037 | local r = 255 | |
| 1038 | local g = 0 | |
| 1039 | local b = 0 | |
| 1040 | ||
| 1041 | local random3 = coroutine.wrap(function() | |
| 1042 | while true do | |
| 1043 | ||
| 1044 | for i = 0, 254/5 do | |
| 1045 | Swait() | |
| 1046 | ||
| 1047 | g = g + 5 | |
| 1048 | end | |
| 1049 | for i = 0, 254/5 do | |
| 1050 | Swait() | |
| 1051 | ||
| 1052 | r = r - 5 | |
| 1053 | end | |
| 1054 | for i = 0, 254/5 do | |
| 1055 | Swait() | |
| 1056 | b = b + 5 | |
| 1057 | end | |
| 1058 | for i = 0, 254/5 do | |
| 1059 | Swait() | |
| 1060 | g = g - 5 | |
| 1061 | end | |
| 1062 | for i = 0, 254/5 do | |
| 1063 | Swait() | |
| 1064 | r = r + 5 | |
| 1065 | end | |
| 1066 | for i = 0, 254/5 do | |
| 1067 | Swait() | |
| 1068 | b = b - 5 | |
| 1069 | end | |
| 1070 | ||
| 1071 | ||
| 1072 | ||
| 1073 | Swait() | |
| 1074 | ||
| 1075 | ||
| 1076 | ||
| 1077 | ||
| 1078 | ||
| 1079 | ||
| 1080 | ||
| 1081 | ||
| 1082 | end | |
| 1083 | ||
| 1084 | end) | |
| 1085 | random3() | |
| 1086 | local r1 = r | |
| 1087 | local g1 = g | |
| 1088 | local b1 = b | |
| 1089 | ||
| 1090 | local RainbowEffect = coroutine.wrap(function() | |
| 1091 | while true do | |
| 1092 | Swait() | |
| 1093 | r1 = r | |
| 1094 | g1 = g | |
| 1095 | b1 = b | |
| 1096 | ||
| 1097 | end | |
| 1098 | ||
| 1099 | end) | |
| 1100 | ||
| 1101 | ||
| 1102 | function WACKYEFFECT(Table) | |
| 1103 | ||
| 1104 | local TYPE = Table.EffectType or "Sphere" | |
| 1105 | local SIZE = Table.Size or VT(1, 1, 1) | |
| 1106 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
| 1107 | local TRANSPARENCY = Table.Transparency or 0 | |
| 1108 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
| 1109 | local CFRAME = Table.CFrame or Torso.CFrame | |
| 1110 | local MOVEDIRECTION = Table.MoveToPos or nil | |
| 1111 | local ROTATION1 = Table.RotationX or 0 | |
| 1112 | local ROTATION2 = Table.RotationY or 0 | |
| 1113 | local ROTATION3 = Table.RotationZ or 0 | |
| 1114 | local MATERIAL = Table.Material or "Neon" | |
| 1115 | local COLOR = Table.Color or C3(r1/255,g1/255, b1/255) | |
| 1116 | ||
| 1117 | ||
| 1118 | RainbowEffect() | |
| 1119 | local TIME = Table.Time or 45 | |
| 1120 | local SOUNDID = Table.SoundID or nil | |
| 1121 | local SOUNDPITCH = Table.SoundPitch or nil | |
| 1122 | local SOUNDVOLUME = Table.SoundVolume or nil | |
| 1123 | coroutine.resume(coroutine.create(function() | |
| 1124 | ||
| 1125 | ||
| 1126 | local PLAYSSOUND = false | |
| 1127 | local SOUND | |
| 1128 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
| |
| 1129 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 1130 | PLAYSSOUND = true | |
| 1131 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 1132 | end | |
| 1133 | ||
| 1134 | local colorss = coroutine.wrap(function() | |
| 1135 | for i = 0,50,1 do | |
| 1136 | ||
| 1137 | Swait() | |
| 1138 | ||
| 1139 | EFFECT.Color = Color3.new(r1/255,g1/255, b1/255) | |
| 1140 | end | |
| 1141 | end) | |
| 1142 | colorss() | |
| 1143 | local MSH | |
| 1144 | if TYPE == "Sphere" then | |
| 1145 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
| |
| 1146 | elseif TYPE == "Block" then | |
| 1147 | MSH = IT("BlockMesh", EFFECT)
| |
| 1148 | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) | |
| 1149 | elseif TYPE == "Wave" then | |
| 1150 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
| |
| 1151 | elseif TYPE == "Ring" then | |
| 1152 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
| |
| 1153 | elseif TYPE == "Slash" then | |
| 1154 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
| |
| 1155 | elseif TYPE == "Round Slash" then | |
| 1156 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
| |
| 1157 | elseif TYPE == "Swirl" then | |
| 1158 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
| |
| 1159 | elseif TYPE == "Skull" then | |
| 1160 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
| |
| 1161 | elseif TYPE == "Crystal" then | |
| 1162 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
| |
| 1163 | end | |
| 1164 | if MSH ~= nil then | |
| 1165 | local MOVESPEED | |
| 1166 | if MOVEDIRECTION ~= nil then | |
| 1167 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
| 1168 | end | |
| 1169 | local GROWTH = SIZE - ENDSIZE | |
| 1170 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 1171 | if TYPE == "Block" then | |
| 1172 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
| 1173 | else | |
| 1174 | EFFECT.CFrame = CFRAME | |
| 1175 | end | |
| 1176 | for LOOP = 1, TIME + 1 do | |
| 1177 | Swait() | |
| 1178 | ||
| 1179 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
| 1180 | if TYPE == "Wave" then | |
| 1181 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
| 1182 | end | |
| 1183 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
| 1184 | if TYPE == "Block" then | |
| 1185 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
| 1186 | else | |
| 1187 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
| 1188 | end | |
| 1189 | if MOVEDIRECTION ~= nil then | |
| 1190 | local ORI = EFFECT.Orientation | |
| 1191 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
| 1192 | EFFECT.Orientation = ORI | |
| 1193 | end | |
| 1194 | end | |
| 1195 | if PLAYSSOUND == false then | |
| 1196 | EFFECT:remove() | |
| 1197 | else | |
| 1198 | repeat | |
| 1199 | Swait() | |
| 1200 | until SOUND.Playing == false | |
| 1201 | EFFECT:remove() | |
| 1202 | end | |
| 1203 | elseif PLAYSSOUND == false then | |
| 1204 | EFFECT:remove() | |
| 1205 | else | |
| 1206 | repeat | |
| 1207 | Swait() | |
| 1208 | until SOUND.Playing == false | |
| 1209 | EFFECT:remove() | |
| 1210 | end | |
| 1211 | end)) | |
| 1212 | end | |
| 1213 | ||
| 1214 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 1215 | local NEWMESH = IT(MESH) | |
| 1216 | if MESH == "SpecialMesh" then | |
| 1217 | NEWMESH.MeshType = MESHTYPE | |
| 1218 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 1219 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
| 1220 | end | |
| 1221 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 1222 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
| 1223 | end | |
| 1224 | end | |
| 1225 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 1226 | NEWMESH.Scale = SCALE | |
| 1227 | NEWMESH.Parent = PARENT | |
| 1228 | return NEWMESH | |
| 1229 | end | |
| 1230 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 1231 | local NEWPART = IT("Part")
| |
| 1232 | NEWPART.formFactor = FORMFACTOR | |
| 1233 | NEWPART.Reflectance = REFLECTANCE | |
| 1234 | NEWPART.Transparency = TRANSPARENCY | |
| 1235 | NEWPART.CanCollide = false | |
| 1236 | NEWPART.Locked = true | |
| 1237 | NEWPART.Anchored = true | |
| 1238 | if ANCHOR == false then | |
| 1239 | NEWPART.Anchored = false | |
| 1240 | end | |
| 1241 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 1242 | NEWPART.Name = NAME | |
| 1243 | NEWPART.Size = SIZE | |
| 1244 | NEWPART.Position = Torso.Position | |
| 1245 | NEWPART.Material = MATERIAL | |
| 1246 | NEWPART:BreakJoints() | |
| 1247 | NEWPART.Parent = PARENT | |
| 1248 | return NEWPART | |
| 1249 | end | |
| 1250 | ||
| 1251 | local DParticles = script.Death | |
| 1252 | DParticles:remove() | |
| 1253 | DParticles.Name = "ArchangelDeathParticles" | |
| 1254 | ||
| 1255 | function MakeForm(PART, TYPE) | |
| 1256 | if TYPE == "Cyl" then | |
| 1257 | local MSH = IT("CylinderMesh", PART)
| |
| 1258 | elseif TYPE == "Ball" then | |
| 1259 | local MSH = IT("SpecialMesh", PART)
| |
| 1260 | MSH.MeshType = "Sphere" | |
| 1261 | elseif TYPE == "Wedge" then | |
| 1262 | local MSH = IT("SpecialMesh", PART)
| |
| 1263 | MSH.MeshType = "Wedge" | |
| 1264 | end | |
| 1265 | end | |
| 1266 | Debris = game:GetService("Debris")
| |
| 1267 | ||
| 1268 | local DECAL = IT("Decal")
| |
| 1269 | function MakeRing() | |
| 1270 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true)
| |
| 1271 | local MSH = IT("BlockMesh", RING)
| |
| 1272 | local TOP = DECAL:Clone() | |
| 1273 | local BOTTOM = DECAL:Clone() | |
| 1274 | TOP.Parent = RING | |
| 1275 | BOTTOM.Parent = RING | |
| 1276 | TOP.Face = "Top" | |
| 1277 | BOTTOM.Face = "Bottom" | |
| 1278 | TOP.Texture = "http://www.roblox.com/asset/?id=127817121" | |
| 1279 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121" | |
| 1280 | local function REMOVE() | |
| 1281 | coroutine.resume(coroutine.create(function() | |
| 1282 | local SIZE = MSH.Scale.X | |
| 1283 | for i = 1, 35 do | |
| 1284 | Swait() | |
| 1285 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
| 1286 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
| 1287 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
| 1288 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
| 1289 | end | |
| 1290 | RING:remove() | |
| 1291 | end)) | |
| 1292 | end | |
| 1293 | return RING, MSH, REMOVE | |
| 1294 | end | |
| 1295 | ||
| 1296 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
| 1297 | local TORSO = Torso | |
| 1298 | local HUM = Humanoid | |
| 1299 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
| 1300 | coroutine.wrap(function() | |
| 1301 | VT = Vector3.new | |
| 1302 | MRANDOM = math.random | |
| 1303 | local A = TIME | |
| 1304 | local B = INTENSITY | |
| 1305 | local C = true | |
| 1306 | local HUMANOID = Humanoid | |
| 1307 | local TIMER = A or 35 | |
| 1308 | local SHAKE = B or 5 | |
| 1309 | local FADE = C or true | |
| 1310 | if HUMANOID then | |
| 1311 | local FADER = SHAKE / TIMER | |
| 1312 | for i = 1, TIMER do | |
| 1313 | wait() | |
| 1314 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
| 1315 | end | |
| 1316 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
| 1317 | end | |
| 1318 | ||
| 1319 | end)() | |
| 1320 | end | |
| 1321 | end | |
| 1322 | ||
| 1323 | function KillChildren(v) | |
| 1324 | v:BreakJoints() | |
| 1325 | for _, c in pairs(v:GetChildren()) do | |
| 1326 | if c:IsA("BasePart") then
| |
| 1327 | if c.Transparency < 1 then | |
| 1328 | if c:FindFirstChildOfClass("Decal") then
| |
| 1329 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 1330 | end | |
| 1331 | particles(c) | |
| 1332 | c.PE.Enabled = true | |
| 1333 | c.Parent = Effects | |
| 1334 | c.CanCollide = false | |
| 1335 | c.Material = "Neon" | |
| 1336 | c.Color = C3(1,1,1) | |
| 1337 | c.Transparency = 1 | |
| 1338 | local grav = Instance.new("BodyPosition",c)
| |
| 1339 | grav.P = 20000 | |
| 1340 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1341 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
| 1342 | grav.Name = "GravityForce" | |
| 1343 | coroutine.resume(coroutine.create(function() | |
| 1344 | for i = 1, 20 do | |
| 1345 | Swait() | |
| 1346 | c.Transparency = c.Transparency + 1/20 | |
| 1347 | end | |
| 1348 | c.PE.Enabled = false | |
| 1349 | Debris:AddItem(c,2) | |
| 1350 | end)) | |
| 1351 | end | |
| 1352 | end | |
| 1353 | end | |
| 1354 | end | |
| 1355 | ||
| 1356 | function killnearest(position,range,maxstrength) | |
| 1357 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1358 | local body = v:GetChildren() | |
| 1359 | for part = 1, #body do | |
| 1360 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 1361 | if(body[part].Position - position).Magnitude < range then | |
| 1362 | if v.ClassName == "Model" then | |
| 1363 | v:BreakJoints() | |
| 1364 | end | |
| 1365 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
| |
| 1366 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 1367 | end | |
| 1368 | end | |
| 1369 | end | |
| 1370 | if v.ClassName == "Part" then | |
| 1371 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 1372 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
| |
| 1373 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
| 1374 | end | |
| 1375 | end | |
| 1376 | end | |
| 1377 | end | |
| 1378 | ||
| 1379 | function ApplyAoE(POSITION, RANGE) | |
| 1380 | local PARTS = {}
| |
| 1381 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
| 1382 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1383 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1384 | if HUM then | |
| 1385 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1386 | if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
| 1387 | CHILD:BreakJoints() | |
| 1388 | for index, PART in pairs(CHILD:GetChildren()) do | |
| 1389 | if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
| |
| 1390 | local P = DParticles:Clone() | |
| 1391 | ||
| 1392 | P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1)) | |
| 1393 | ||
| 1394 | table.insert(PARTS, {PART, P})
| |
| 1395 | end | |
| 1396 | end | |
| 1397 | end | |
| 1398 | end | |
| 1399 | elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then
| |
| 1400 | local FOLDER = IT("Folder", CHILD)
| |
| 1401 | FOLDER.Name = "ewdfrfgrwefd" | |
| 1402 | local P = DParticles:Clone() | |
| 1403 | ||
| 1404 | CHILD.Velocity = Vector3.new(math.huge,math.huge,math.huge) | |
| 1405 | ||
| 1406 | ||
| 1407 | P.Rate = math.ceil(CHILD.Size.Magnitude / 2) | |
| 1408 | P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1)) | |
| 1409 | table.insert(PARTS, {CHILD, P})
| |
| 1410 | end | |
| 1411 | end | |
| 1412 | coroutine.resume(coroutine.create(function() | |
| 1413 | if #PARTS > 0 then | |
| 1414 | for i = 1, 85 do | |
| 1415 | Swait() | |
| 1416 | for E = 1, #PARTS do | |
| 1417 | local F = PARTS[E] | |
| 1418 | local A = F[1] | |
| 1419 | local B = F[2] | |
| 1420 | A.Transparency = A.Transparency + 0.011764705882352941 | |
| 1421 | B.Rate = math.ceil(B.Rate * 1.2) | |
| 1422 | for index, E in pairs(A:GetChildren()) do | |
| 1423 | ||
| 1424 | end | |
| 1425 | end | |
| 1426 | end | |
| 1427 | for E = 1, #PARTS do | |
| 1428 | local F = PARTS[E] | |
| 1429 | local A = F[1] | |
| 1430 | local B = F[2] | |
| 1431 | B.Enabled = false | |
| 1432 | Debris:AddItem(A, 3) | |
| 1433 | end | |
| 1434 | end | |
| 1435 | end)) | |
| 1436 | end | |
| 1437 | ||
| 1438 | function AntiTimeStop() | |
| 1439 | for _, c in pairs(Character:GetChildren()) do | |
| 1440 | if c:IsA("Part") and c ~= RootPart then
| |
| 1441 | c.Anchored = false | |
| 1442 | end | |
| 1443 | end | |
| 1444 | if UNANCHOR == true then | |
| 1445 | RootPart.Anchored = false | |
| 1446 | else | |
| 1447 | RootPart.Anchored = true | |
| 1448 | end | |
| 1449 | end | |
| 1450 | ||
| 1451 | Humanoid.Changed:connect(function(Jump) | |
| 1452 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1453 | Humanoid.Jump = false | |
| 1454 | end | |
| 1455 | ||
| 1456 | ||
| 1457 | end) | |
| 1458 | ||
| 1459 | ||
| 1460 | local cR=255 | |
| 1461 | local cG=0 | |
| 1462 | local cB=0 | |
| 1463 | local flg5=1 local omgidk=1 | |
| 1464 | local add=7.5 | |
| 1465 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
| |
| 1466 | if omgidk>10000 then omgidk=0 end | |
| 1467 | omgidk=omgidk+1 | |
| 1468 | if cR>=255 then flg5=1 end | |
| 1469 | if cG>=255 then flg5=2 end | |
| 1470 | if cB>=255 then flg5=3 end | |
| 1471 | if flg5==1 then cR=cR-add cG=cG+add end | |
| 1472 | if flg5==2 then cG=cG-add cB=cB+add end | |
| 1473 | if flg5==3 then cB=cB-add cR=cR+add end | |
| 1474 | color=Color3.fromRGB(cR,cG,cB) | |
| 1475 | end) | |
| 1476 | ||
| 1477 | --------------------------------------------------\\\\ | |
| 1478 | -- ATTACKS |||| | |
| 1479 | --------------------------------------------------//// | |
| 1480 | ||
| 1481 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
| 1482 | coroutine.resume(coroutine.create(function() | |
| 1483 | local METEOR = IT("Model",Effects)
| |
| 1484 | METEOR.Name = "Meteorite" | |
| 1485 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
| 1486 | METEOR.PrimaryPart = CENTER | |
| 1487 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
| 1488 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1489 | for i = 1, 15 do | |
| 1490 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "White", "Fire", VT(5.1,1,5.1)*SIZE) | |
| 1491 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1492 | end | |
| 1493 | if ISDEBREE ~= true then | |
| 1494 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
| 1495 | else | |
| 1496 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
| 1497 | end | |
| 1498 | local IMPACT = false | |
| 1499 | CreateSound(463593339, CENTER, 10, 0.6) | |
| 1500 | if SIZE >= 3.5 then | |
| 1501 | for i = 1, MRANDOM(3,7) do | |
| 1502 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
| 1503 | end | |
| 1504 | end | |
| 1505 | for i = 1, 200 do | |
| 1506 | Swait() | |
| 1507 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
| 1508 | if HITFLOOR == nil then | |
| 1509 | local ORI = CENTER.Orientation | |
| 1510 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
| 1511 | else | |
| 1512 | if HITFLOOR.Anchored == true then | |
| 1513 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
| 1514 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
| 1515 | end | |
| 1516 | IMPACT = true | |
| 1517 | break | |
| 1518 | end | |
| 1519 | end | |
| 1520 | if IMPACT == true then | |
| 1521 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
| |
| 1522 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
| |
| 1523 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
| |
| 1524 | ApplyAoE(CENTER.Position,30*SIZE) | |
| 1525 | end | |
| 1526 | METEOR:remove() | |
| 1527 | end)) | |
| 1528 | end | |
| 1529 | ||
| 1530 | function SpawnSmite(POS) | |
| 1531 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
| 1532 | local EMITPOS = HITPOS | |
| 1533 | if HITFLOOR ~= nil then | |
| 1534 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1535 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
| 1536 | EMITPOS = HITPOS | |
| 1537 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1538 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
| 1539 | EMITPOS = HITPOS | |
| 1540 | end | |
| 1541 | end | |
| 1542 | if HITFLOOR ~= nil then | |
| 1543 | ApplyAoE(EMITPOS,10) | |
| 1544 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 1602946208, SoundPitch = 1, SoundVolume = 5})
| |
| 1545 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1546 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1547 | for i = 1, 5 do | |
| 1548 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
| 1549 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 1602946208, SoundPitch = 1, SoundVolume = 5})
| |
| 1550 | end | |
| 1551 | end | |
| 1552 | end | |
| 1553 | ||
| 1554 | function Meteor() | |
| 1555 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
| 1556 | if DIST > 180 then | |
| 1557 | DIST = 180 | |
| 1558 | end | |
| 1559 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
| 1560 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
| 1561 | if HITFLOOR then | |
| 1562 | local POS = HITPOS | |
| 1563 | ATTACK = true | |
| 1564 | Rooted = true | |
| 1565 | local WARPED = false | |
| 1566 | local SMASHED = false | |
| 1567 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
| 1568 | coroutine.resume(coroutine.create(function() | |
| 1569 | repeat | |
| 1570 | Swait() | |
| 1571 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1572 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1573 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1574 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1575 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1576 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1577 | until WARPED == true | |
| 1578 | repeat | |
| 1579 | Swait() | |
| 1580 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1581 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1582 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1583 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1584 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1585 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1586 | until SMASHED == true | |
| 1587 | repeat | |
| 1588 | Swait() | |
| 1589 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1590 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1591 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1592 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1593 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
| 1594 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1595 | until ATTACK == false | |
| 1596 | end)) | |
| 1597 | VALUE1 = true | |
| 1598 | CreateSound(233856115, Torso, 5, 1.6, false) | |
| 1599 | for i = 1, 25 do | |
| 1600 | Swait() | |
| 1601 | for _, c in pairs(Character:GetChildren()) do | |
| 1602 | if c.ClassName == "Part" then | |
| 1603 | c.Transparency = c.Transparency + 1/25 | |
| 1604 | end | |
| 1605 | end | |
| 1606 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1607 | if c.ClassName == "Part" then | |
| 1608 | c.Transparency = c.Transparency + 1/25 | |
| 1609 | end | |
| 1610 | end | |
| 1611 | end | |
| 1612 | UNANCHOR = false | |
| 1613 | RootPart.Anchored = true | |
| 1614 | RootPart.Velocity = VT(0,0,0) | |
| 1615 | local ROOTPOS = RootPart.Position | |
| 1616 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
| 1617 | WARPED = true | |
| 1618 | for i = 1, 25 do | |
| 1619 | Swait() | |
| 1620 | for _, c in pairs(Character:GetChildren()) do | |
| 1621 | if c.ClassName == "Part" then | |
| 1622 | c.Transparency = c.Transparency - 0/25 | |
| 1623 | end | |
| 1624 | end | |
| 1625 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1626 | if c.ClassName == "Part" then | |
| 1627 | c.Transparency = c.Transparency - 1/25 | |
| 1628 | end | |
| 1629 | end | |
| 1630 | end | |
| 1631 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Color3.fromRGB(cR,cG,cB)", "Part", VT(0,0,0)) | |
| 1632 | SHELL.CFrame = RootPart.CFrame | |
| 1633 | MakeForm(SHELL,"Ball") | |
| 1634 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
| 1635 | for i = 1, 10 do | |
| 1636 | Swait() | |
| 1637 | SHELL.Transparency = SHELL.Transparency - 0 | |
| 1638 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
| 1639 | end | |
| 1640 | for i = 1, math.ceil(75/2) do | |
| 1641 | Swait() | |
| 1642 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
| 1643 | SHELL.CFrame = CF(RootPart.Position) | |
| 1644 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1645 | end | |
| 1646 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
| 1647 | SHELL.CFrame = CF(RootPart.Position) | |
| 1648 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1649 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1650 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
| |
| 1651 | for i = 1, 5 do | |
| 1652 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
| |
| 1653 | end | |
| 1654 | SHELL:remove() | |
| 1655 | ApplyAoE(RootPart.Position,75,35,75,175,false) | |
| 1656 | SMASHED = true | |
| 1657 | wait(1) | |
| 1658 | VALUE1 = false | |
| 1659 | UNANCHOR = true | |
| 1660 | ATTACK = false | |
| 1661 | Rooted = false | |
| 1662 | end | |
| 1663 | end | |
| 1664 | ||
| 1665 | ||
| 1666 | function Click() | |
| 1667 | ATTACK = true | |
| 1668 | Rooted = false | |
| 1669 | local HIT = nil | |
| 1670 | OFFSET = -45 | |
| 1671 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1672 | Swait() | |
| 1673 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 1674 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1675 | end | |
| 1676 | OFFSET = 45 | |
| 1677 | local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false) | |
| 1678 | PUNCH.CanCollide = true | |
| 1679 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0))
| |
| 1680 | TAUNT = true | |
| 1681 | local TOUCH = PUNCH.Touched:Connect(function(hit) | |
| 1682 | if hit.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1683 | HIT = hit.Parent | |
| 1684 | end | |
| 1685 | end) | |
| 1686 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1687 | Swait() | |
| 1688 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3) | |
| 1689 | if HIT ~= nil then | |
| 1690 | break | |
| 1691 | end | |
| 1692 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 1693 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1694 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1695 | end | |
| 1696 | PUNCH:remove() | |
| 1697 | TOUCH:disconnect() | |
| 1698 | if HIT ~= nil then | |
| 1699 | for _, c in pairs(HIT:GetChildren()) do | |
| 1700 | if c:IsA("BasePart") then
| |
| 1701 | c.Anchored = true | |
| 1702 | end | |
| 1703 | end | |
| 1704 | Rooted = true | |
| 1705 | CreateSound(649634100, Torso, 10, 0.8) | |
| 1706 | CreateSound(1368573150, RightArm, 3, 1.5) | |
| 1707 | for i=0, 0.6, 0.1 / Animation_Speed do | |
| 1708 | Swait() | |
| 1709 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1710 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed) | |
| 1711 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1712 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1713 | end | |
| 1714 | for _, c in pairs(HIT:GetChildren()) do | |
| 1715 | if c:IsA("BasePart") then
| |
| 1716 | c.Anchored = false | |
| 1717 | end | |
| 1718 | end | |
| 1719 | KillChildren(HIT) | |
| 1720 | end | |
| 1721 | OFFSET = 0 | |
| 1722 | ATTACK = false | |
| 1723 | Rooted = false | |
| 1724 | TAUNT = false | |
| 1725 | end | |
| 1726 | ||
| 1727 | function Boom() | |
| 1728 | Rooted = true | |
| 1729 | ATTACK = true | |
| 1730 | Character:BreakJoints() | |
| 1731 | local Explosion = IT("Explosion",Effects)
| |
| 1732 | Explosion.Position = HandlePart.Position | |
| 1733 | Explosion.BlastPressure = 5000000 | |
| 1734 | local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really white", "Handle", VT(0, 0, 0)) | |
| 1735 | PRT.CanCollide = false | |
| 1736 | PRT.CFrame = CF(HandlePart.Position) | |
| 1737 | Debris:AddItem(PRT,10) | |
| 1738 | CreateSound("2248511", Effects, 10, 0.2)
| |
| 1739 | MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"White",VT(6,2,6)) | |
| 1740 | MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Really white",VT(6,2,6)) | |
| 1741 | MagicSphere(VT(5,5,5),250,PRT.CFrame,"White",VT(5,15,5)) | |
| 1742 | MagicSphere(VT(4,4,4),250,PRT.CFrame,"Really white",VT(5,15,5)) | |
| 1743 | CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"White",VT(5,1,5)) | |
| 1744 | CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6)) | |
| 1745 | CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3)) | |
| 1746 | for i = 1, 250 do | |
| 1747 | Swait() | |
| 1748 | killnearest(PRT.Position,750000,75) | |
| 1749 | end | |
| 1750 | ATTACK = false | |
| 1751 | Rooted = false | |
| 1752 | end | |
| 1753 | ||
| 1754 | function Dismantle() | |
| 1755 | ||
| 1756 | local model = Instance.new("Model")
| |
| 1757 | model.Parent = workspace | |
| 1758 | model.Name = math.random(-10000,10000) | |
| 1759 | ||
| 1760 | ||
| 1761 | local Spawner = Instance.new("Part")
| |
| 1762 | Spawner.Name = "12qwaszx" | |
| 1763 | Spawner.CFrame = (Mouse.Hit) | |
| 1764 | Spawner.Anchored = true | |
| 1765 | Spawner.Size = Vector3.new(0,0,0) | |
| 1766 | Spawner.Transparency = 1 | |
| 1767 | Spawner.Parent = workspace | |
| 1768 | ||
| 1769 | ||
| 1770 | ||
| 1771 | ||
| 1772 | ||
| 1773 | local Box = Instance.new("Part")
| |
| 1774 | Box.Position = (Spawner.Position) | |
| 1775 | Box.CanCollide = false | |
| 1776 | Box.Transparency = 0.5 | |
| 1777 | Box.Size = Vector3.new(20,20,20) | |
| 1778 | Box.Anchored = true | |
| 1779 | Box.Material = "Neon" | |
| 1780 | Box.Parent = model | |
| 1781 | ||
| 1782 | local selection = Instance.new("SelectionBox")
| |
| 1783 | selection.Parent = Box | |
| 1784 | selection.Adornee = Box | |
| 1785 | selection.LineThickness = 1 | |
| 1786 | ||
| 1787 | ||
| 1788 | local face1 = Instance.new("Part")
| |
| 1789 | face1.Size = Vector3.new(2,20,20) | |
| 1790 | face1.Transparency = 1 | |
| 1791 | face1.CFrame = (Spawner.CFrame) | |
| 1792 | face1.Anchored = true | |
| 1793 | face1.Parent = model | |
| 1794 | face1.CFrame = Box.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1795 | face1.Material = "Neon" | |
| 1796 | ||
| 1797 | local face2 = Instance.new("Part")
| |
| 1798 | face2.Size = Vector3.new(2,20,20) | |
| 1799 | face2.Transparency = 1 | |
| 1800 | face2.CFrame = (Spawner.CFrame) | |
| 1801 | face2.Anchored = true | |
| 1802 | face2.Parent = model | |
| 1803 | face2.CFrame = Box.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1804 | face2.Material = "Neon" | |
| 1805 | ||
| 1806 | local face3 = Instance.new("Part")
| |
| 1807 | face3.Size = Vector3.new(20,20,2) | |
| 1808 | face3.Transparency = 1 | |
| 1809 | face3.CFrame = (Spawner.CFrame) | |
| 1810 | face3.Anchored = true | |
| 1811 | face3.Parent = model | |
| 1812 | face3.CFrame = Box.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1813 | face3.Material = "Neon" | |
| 1814 | ||
| 1815 | local face4 = Instance.new("Part")
| |
| 1816 | face4.Size = Vector3.new(20,20,2) | |
| 1817 | face4.Transparency = 1 | |
| 1818 | face4.CFrame = (Spawner.CFrame) | |
| 1819 | face4.Anchored = true | |
| 1820 | face4.Parent = model | |
| 1821 | face4.CFrame = Box.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1822 | face4.Material = "Neon" | |
| 1823 | ||
| 1824 | local face5 = Instance.new("Part")
| |
| 1825 | face5.Size = Vector3.new(20,2,20) | |
| 1826 | face5.Transparency = 1 | |
| 1827 | face5.CFrame = (Spawner.CFrame) | |
| 1828 | face5.Anchored = true | |
| 1829 | face5.Parent = model | |
| 1830 | face5.CFrame = Box.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1831 | face5.Material = "Neon" | |
| 1832 | ||
| 1833 | local face6 = Instance.new("Part")
| |
| 1834 | face6.Size = Vector3.new(20,2,20) | |
| 1835 | face6.Transparency = 1 | |
| 1836 | face6.CFrame = (Spawner.CFrame) | |
| 1837 | face6.Anchored = true | |
| 1838 | face6.Parent = model | |
| 1839 | face6.CFrame = Box.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1840 | face6.Material = "Neon" | |
| 1841 | ||
| 1842 | ||
| 1843 | ||
| 1844 | ||
| 1845 | ||
| 1846 | ||
| 1847 | ||
| 1848 | ||
| 1849 | ||
| 1850 | model.PrimaryPart = Spawner | |
| 1851 | ||
| 1852 | ||
| 1853 | ||
| 1854 | ||
| 1855 | local RainbowEffect = coroutine.wrap(function() | |
| 1856 | ||
| 1857 | while true do | |
| 1858 | Swait() | |
| 1859 | Box.Color = Color3.new(r/255,g/255,b/255) | |
| 1860 | ||
| 1861 | ||
| 1862 | ||
| 1863 | ||
| 1864 | ||
| 1865 | ||
| 1866 | ||
| 1867 | selection.Color3 = Color3.new(r/255,g/255,b/255) | |
| 1868 | ||
| 1869 | end | |
| 1870 | end) | |
| 1871 | ||
| 1872 | RainbowEffect() | |
| 1873 | local e = 0 | |
| 1874 | ||
| 1875 | ||
| 1876 | local killing = false | |
| 1877 | ||
| 1878 | if killing == false then | |
| 1879 | function onTouched(part) | |
| 1880 | ||
| 1881 | ||
| 1882 | local hit = part | |
| 1883 | hit.CFrame = CFrame.new(Spawner.CFrame.X,Spawner.CFrame.Y, Spawner.CFrame.Z) | |
| 1884 | ||
| 1885 | end | |
| 1886 | else | |
| 1887 | ||
| 1888 | end | |
| 1889 | ||
| 1890 | ||
| 1891 | ||
| 1892 | ||
| 1893 | ||
| 1894 | ||
| 1895 | ||
| 1896 | ||
| 1897 | Box.Touched:connect(onTouched) | |
| 1898 | ||
| 1899 | ||
| 1900 | local spin = coroutine.wrap(function() | |
| 1901 | while true do | |
| 1902 | e = e + 0.01 | |
| 1903 | model:SetPrimaryPartCFrame(CFrame.new(Spawner.CFrame.X,Spawner.CFrame.Y ,Spawner.CFrame.Z) * CFrame.fromEulerAnglesXYZ(e,e,0) ) | |
| 1904 | Swait() | |
| 1905 | end | |
| 1906 | ||
| 1907 | end) | |
| 1908 | ||
| 1909 | spin() | |
| 1910 | local moveup = coroutine.wrap(function() | |
| 1911 | local p = 0 | |
| 1912 | ||
| 1913 | ||
| 1914 | ||
| 1915 | for i = 0,0.7,0.01 do | |
| 1916 | Swait() | |
| 1917 | p = p+0.01 | |
| 1918 | ||
| 1919 | ||
| 1920 | ||
| 1921 | ||
| 1922 | ||
| 1923 | model:SetPrimaryPartCFrame(CFrame.new(Spawner.CFrame.X,Spawner.CFrame.Y + p,Spawner.CFrame.Z) * CFrame.fromEulerAnglesXYZ(e,e,0) ) | |
| 1924 | ||
| 1925 | ||
| 1926 | ||
| 1927 | end | |
| 1928 | ||
| 1929 | ||
| 1930 | ||
| 1931 | end) | |
| 1932 | ||
| 1933 | ||
| 1934 | ||
| 1935 | moveup() | |
| 1936 | ||
| 1937 | ||
| 1938 | ||
| 1939 | ||
| 1940 | ||
| 1941 | ||
| 1942 | wait(1) | |
| 1943 | ||
| 1944 | local FLASH = coroutine.wrap(function() | |
| 1945 | local p = 1 | |
| 1946 | ||
| 1947 | ||
| 1948 | ||
| 1949 | for i = 0,0.7,0.01 do | |
| 1950 | Swait() | |
| 1951 | p = p-0.01 | |
| 1952 | ||
| 1953 | ||
| 1954 | face1.Transparency = p | |
| 1955 | face2.Transparency = p | |
| 1956 | face3.Transparency = p | |
| 1957 | face4.Transparency = p | |
| 1958 | face5.Transparency = p | |
| 1959 | face6.Transparency = p | |
| 1960 | end | |
| 1961 | ||
| 1962 | ||
| 1963 | ||
| 1964 | ||
| 1965 | ||
| 1966 | end) | |
| 1967 | ||
| 1968 | local sound = Instance.new("Sound")
| |
| 1969 | sound.Parent = Box | |
| 1970 | sound.SoundId = "rbxassetid://1996663666" | |
| 1971 | sound.EmitterSize = 100 | |
| 1972 | sound.MaxDistance = 1000 | |
| 1973 | sound.TimePosition = 0 | |
| 1974 | sound:Play() | |
| 1975 | sound.Volume = 5 | |
| 1976 | ||
| 1977 | ||
| 1978 | ||
| 1979 | FLASH() | |
| 1980 | wait(2) | |
| 1981 | ||
| 1982 | sound:Pause() | |
| 1983 | ||
| 1984 | local sound2 = Instance.new("Sound")
| |
| 1985 | sound2.Parent = Box | |
| 1986 | sound2.SoundId = "rbxassetid://178452241" | |
| 1987 | sound2.EmitterSize = 100 | |
| 1988 | sound2.MaxDistance = 1000 | |
| 1989 | sound2.TimePosition = 0 | |
| 1990 | sound2:Play() | |
| 1991 | sound2.Volume = 10 | |
| 1992 | ||
| 1993 | local LIGHTNING = coroutine.wrap(function() | |
| 1994 | local p = 0 | |
| 1995 | for i = 0,1,0.01 do | |
| 1996 | Swait() | |
| 1997 | face1.Transparency = p | |
| 1998 | face2.Transparency = p | |
| 1999 | face3.Transparency = p | |
| 2000 | face4.Transparency = p | |
| 2001 | face5.Transparency = p | |
| 2002 | face6.Transparency = p | |
| 2003 | p = p+0.08 | |
| 2004 | end | |
| 2005 | ||
| 2006 | ||
| 2007 | ||
| 2008 | end) | |
| 2009 | ||
| 2010 | LIGHTNING() | |
| 2011 | ||
| 2012 | ||
| 2013 | ||
| 2014 | ||
| 2015 | ||
| 2016 | function onTouched(part) | |
| 2017 | ||
| 2018 | ||
| 2019 | local hit = part | |
| 2020 | ||
| 2021 | ||
| 2022 | ||
| 2023 | ||
| 2024 | local dismantle2 = coroutine.wrap(function() | |
| 2025 | for i = 0,2,0.01 do | |
| 2026 | ||
| 2027 | ||
| 2028 | Swait() | |
| 2029 | ||
| 2030 | ||
| 2031 | ||
| 2032 | hit.Velocity = Vector3.new(math.huge,math.huge,math.huge) | |
| 2033 | ||
| 2034 | ||
| 2035 | ||
| 2036 | end | |
| 2037 | ||
| 2038 | end) | |
| 2039 | dismantle2() | |
| 2040 | ||
| 2041 | ||
| 2042 | ||
| 2043 | ||
| 2044 | ||
| 2045 | ||
| 2046 | ||
| 2047 | ||
| 2048 | ||
| 2049 | ||
| 2050 | ||
| 2051 | end | |
| 2052 | ||
| 2053 | Box.Touched:connect(onTouched) | |
| 2054 | ||
| 2055 | ||
| 2056 | ||
| 2057 | ||
| 2058 | ||
| 2059 | ||
| 2060 | ||
| 2061 | ||
| 2062 | ||
| 2063 | ||
| 2064 | ||
| 2065 | ||
| 2066 | wait() | |
| 2067 | local DISAPPER = coroutine.wrap(function() | |
| 2068 | local p = 0 | |
| 2069 | for i = 0,2,0.01 do | |
| 2070 | Swait() | |
| 2071 | face1.Transparency = face1.Transparency + p | |
| 2072 | face2.Transparency = face1.Transparency + p | |
| 2073 | face3.Transparency = face1.Transparency + p | |
| 2074 | face4.Transparency = face1.Transparency + p | |
| 2075 | face5.Transparency = face1.Transparency + p | |
| 2076 | face6.Transparency = face1.Transparency + p | |
| 2077 | Box.Transparency = p | |
| 2078 | selection.Transparency = p | |
| 2079 | p = p+0.01 | |
| 2080 | end | |
| 2081 | ||
| 2082 | ||
| 2083 | ||
| 2084 | end) | |
| 2085 | DISAPPER() | |
| 2086 | ||
| 2087 | wait(2) | |
| 2088 | ||
| 2089 | model:Remove() | |
| 2090 | end | |
| 2091 | ||
| 2092 | ||
| 2093 | ||
| 2094 | ----------------------------------------------------------------------------------------------------- | |
| 2095 | ||
| 2096 | function implode() | |
| 2097 | ||
| 2098 | ||
| 2099 | ||
| 2100 | end | |
| 2101 | ||
| 2102 | ||
| 2103 | ||
| 2104 | ||
| 2105 | ||
| 2106 | ||
| 2107 | ||
| 2108 | ||
| 2109 | ||
| 2110 | ||
| 2111 | ||
| 2112 | ||
| 2113 | ||
| 2114 | ||
| 2115 | ||
| 2116 | ||
| 2117 | ||
| 2118 | ||
| 2119 | function Smite() | |
| 2120 | ||
| 2121 | local spawner = Instance.new("Part")
| |
| 2122 | spawner.Parent = workspace | |
| 2123 | spawner.Transparency = 1 | |
| 2124 | spawner.CFrame = (Mouse.Hit) | |
| 2125 | spawner.Size = Vector3.new(0,0,0) | |
| 2126 | spawner.Anchored = true | |
| 2127 | ||
| 2128 | local suck = Instance.new("Part")
| |
| 2129 | suck.Transparency = 0 | |
| 2130 | suck.CFrame = (spawner.CFrame) | |
| 2131 | suck.Size = Vector3.new(70,70,70) | |
| 2132 | suck.Material = "Neon" | |
| 2133 | suck.Anchored = true | |
| 2134 | suck.CanCollide = false | |
| 2135 | suck.Shape = "Ball" | |
| 2136 | suck.Parent = workspace | |
| 2137 | ||
| 2138 | local colors = coroutine.wrap(function() | |
| 2139 | for i = 1,55 do | |
| 2140 | Swait() | |
| 2141 | ||
| 2142 | ||
| 2143 | ||
| 2144 | suck.Color = Color3.new(r/255,g/255,b/255) | |
| 2145 | end | |
| 2146 | ||
| 2147 | ||
| 2148 | end) | |
| 2149 | ||
| 2150 | colors() | |
| 2151 | ||
| 2152 | ||
| 2153 | local fade = coroutine.wrap(function() | |
| 2154 | ||
| 2155 | local p = 0 | |
| 2156 | ||
| 2157 | for i = 1,55 do | |
| 2158 | ||
| 2159 | ||
| 2160 | suck.Transparency = p | |
| 2161 | p = p+0.02 | |
| 2162 | Swait() | |
| 2163 | end | |
| 2164 | ||
| 2165 | ||
| 2166 | ||
| 2167 | end) | |
| 2168 | ||
| 2169 | fade() | |
| 2170 | ||
| 2171 | ||
| 2172 | ||
| 2173 | ||
| 2174 | local size = coroutine.wrap(function() | |
| 2175 | ||
| 2176 | local p = 70 | |
| 2177 | ||
| 2178 | for i = 1,55 do | |
| 2179 | ||
| 2180 | ||
| 2181 | ||
| 2182 | ||
| 2183 | suck.Size = Vector3.new(p,p,p) | |
| 2184 | p = p - 1 | |
| 2185 | ||
| 2186 | Swait() | |
| 2187 | end | |
| 2188 | ||
| 2189 | ||
| 2190 | ||
| 2191 | end) | |
| 2192 | ||
| 2193 | size() | |
| 2194 | ||
| 2195 | local move = coroutine.wrap(function() | |
| 2196 | for i = 1,55 do | |
| 2197 | Swait() | |
| 2198 | ||
| 2199 | suck.CFrame = (spawner.CFrame) | |
| 2200 | ||
| 2201 | ||
| 2202 | end | |
| 2203 | ||
| 2204 | end) | |
| 2205 | ||
| 2206 | move() | |
| 2207 | ||
| 2208 | function onTouched(part) | |
| 2209 | local hit = part | |
| 2210 | ||
| 2211 | if hit:FindFirstChild("BodyPosition") then
| |
| 2212 | else | |
| 2213 | ||
| 2214 | local blackhole1 = coroutine.wrap(function() | |
| 2215 | local pull = Instance.new("BodyPosition")
| |
| 2216 | pull.position = suck.Position | |
| 2217 | pull.Parent = hit | |
| 2218 | pull.P = 10000000000 | |
| 2219 | pull.MaxForce = Vector3.new(10000,10000,10000) | |
| 2220 | wait(2) | |
| 2221 | pull:Remove() | |
| 2222 | ||
| 2223 | end) | |
| 2224 | blackhole1() | |
| 2225 | end | |
| 2226 | ||
| 2227 | end | |
| 2228 | ||
| 2229 | suck.Touched:connect(onTouched) | |
| 2230 | ||
| 2231 | wait(1) | |
| 2232 | suck:Remove() | |
| 2233 | ||
| 2234 | local death = Instance.new("Part")
| |
| 2235 | ||
| 2236 | local boooom = coroutine.wrap(function() | |
| 2237 | Swait() | |
| 2238 | ||
| 2239 | local bang = Instance.new("Explosion")
| |
| 2240 | ||
| 2241 | bang.BlastPressure = math.huge | |
| 2242 | bang.BlastRadius = 20 | |
| 2243 | bang.DestroyJointRadiusPercent = 100 | |
| 2244 | bang.Position = (spawner.Position) | |
| 2245 | bang.Visible = false | |
| 2246 | bang.Parent = spawner | |
| 2247 | ||
| 2248 | local sound2 = Instance.new("Sound")
| |
| 2249 | sound2.Parent = spawner | |
| 2250 | sound2.SoundId = "rbxassetid://168586586" | |
| 2251 | sound2.EmitterSize = 100 | |
| 2252 | sound2.MaxDistance = 1000 | |
| 2253 | sound2.TimePosition = 0 | |
| 2254 | sound2:Play() | |
| 2255 | sound2.Volume = 10 | |
| 2256 | ||
| 2257 | death.Parent = workspace | |
| 2258 | death.Transparency = 1 | |
| 2259 | death.CFrame = (spawner.CFrame) | |
| 2260 | death.Size = Vector3.new(20,20,20) | |
| 2261 | ||
| 2262 | death.Velocity = Vector3.new(math.huge,math.huge,math.huge) | |
| 2263 | ||
| 2264 | local size = coroutine.wrap(function() | |
| 2265 | ||
| 2266 | local p = 20 | |
| 2267 | ||
| 2268 | for i = 1,55 do | |
| 2269 | ||
| 2270 | ||
| 2271 | ||
| 2272 | death.CFrame = (spawner.CFrame) | |
| 2273 | death.Size = Vector3.new(p,p,p) | |
| 2274 | p = p + 1 | |
| 2275 | ||
| 2276 | Swait() | |
| 2277 | end | |
| 2278 | ||
| 2279 | ||
| 2280 | ||
| 2281 | end) | |
| 2282 | ||
| 2283 | size() | |
| 2284 | ||
| 2285 | ||
| 2286 | bang.Parent = spawner | |
| 2287 | ||
| 2288 | end) | |
| 2289 | ||
| 2290 | boooom() | |
| 2291 | ||
| 2292 | local RING, MESH, DELET = MakeRing() | |
| 2293 | local POS = spawner.Position | |
| 2294 | RING.CFrame = CF(spawner.Position + VT(MRANDOM(-25, 25), 200, MRANDOM(-25, 25)), spawner.Position) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 2295 | ||
| 2296 | local HITFLOOR, HITPOS = Raycast(RING.Position, CF(RING.Position, RING.CFrame * CF(0, -1, 0).p).lookVector, 500, Character) | |
| 2297 | ||
| 2298 | if HITFLOOR then | |
| 2299 | ||
| 2300 | local DIST = (RING.Position - HITPOS).Magnitude | |
| 2301 | ||
| 2302 | for i = 1, 5 do | |
| 2303 | WACKYEFFECT({
| |
| 2304 | EffectType = "Wave", | |
| 2305 | Size = VT(25, 0, 25), | |
| 2306 | Size2 = VT(40, 0, 40) + VT(i * 6, i / 5, i * 6), | |
| 2307 | Transparency = 0, | |
| 2308 | Transparency2 = 1, | |
| 2309 | CFrame = CF(spawner.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
| 2310 | MoveToPos = nil, | |
| 2311 | RotationX = 0, | |
| 2312 | RotationY = 3, | |
| 2313 | RotationZ = 0, | |
| 2314 | Material = "Neon", | |
| 2315 | ||
| 2316 | Color = C3(r1/255, g1/255, b1/255), | |
| 2317 | SoundID = nil, | |
| 2318 | SoundPitch = nil, | |
| 2319 | SoundVolume = nil | |
| 2320 | }) | |
| 2321 | WACKYEFFECT({
| |
| 2322 | EffectType = "Round Slash", | |
| 2323 | Size = VT(3, 0, 3) / 13, | |
| 2324 | Size2 = (VT(3, 0, 3) + VT(i, 0, i)) / 5, | |
| 2325 | Transparency = 0, | |
| 2326 | Transparency2 = 1, | |
| 2327 | CFrame = CF(spawner.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-35, 35)), RAD(0), RAD(MRANDOM(-35, 35))), | |
| 2328 | MoveToPos = nil, | |
| 2329 | RotationX = 0, | |
| 2330 | RotationY = 0, | |
| 2331 | RotationZ = 0, | |
| 2332 | Material = "Neon", | |
| 2333 | Color = C3(r1/255, g1/255, b1/255), | |
| 2334 | SoundID = nil, | |
| 2335 | SoundPitch = nil, | |
| 2336 | SoundVolume = nil | |
| 2337 | }) | |
| 2338 | WACKYEFFECT({
| |
| 2339 | Time = 35, | |
| 2340 | EffectType = "Sphere", | |
| 2341 | Size = VT(22, 22, 22), | |
| 2342 | Size2 = VT(45, 45, 45) + VT(i * 5, i * 5, i * 5), | |
| 2343 | Transparency = 0, | |
| 2344 | Transparency2 = 1, | |
| 2345 | CFrame = CF(spawner.Position), | |
| 2346 | MoveToPos = nil, | |
| 2347 | RotationX = 0, | |
| 2348 | RotationY = 0, | |
| 2349 | RotationZ = 0, | |
| 2350 | Material = "Neon", | |
| 2351 | ||
| 2352 | Color = C3(r1/255, g1/255, b1/255), | |
| 2353 | SoundID = 459523898, | |
| 2354 | SoundPitch = MRANDOM(9, 12) / 10, | |
| 2355 | SoundVolume = 10 | |
| 2356 | }) | |
| 2357 | end | |
| 2358 | SHAKECAM(spawner.Position, 100, 8, 15) | |
| 2359 | ApplyAoE(spawner.Position, 50) | |
| 2360 | ||
| 2361 | ||
| 2362 | ||
| 2363 | ||
| 2364 | ||
| 2365 | ||
| 2366 | ||
| 2367 | ||
| 2368 | ||
| 2369 | ||
| 2370 | ||
| 2371 | ||
| 2372 | ||
| 2373 | ||
| 2374 | ||
| 2375 | ||
| 2376 | for i = 1, 25 do | |
| 2377 | Swait() | |
| 2378 | ||
| 2379 | end | |
| 2380 | ||
| 2381 | end | |
| 2382 | ||
| 2383 | wait(0.2) | |
| 2384 | ||
| 2385 | death:Remove() | |
| 2386 | DELET() | |
| 2387 | wait(2) | |
| 2388 | spawner:Remove() | |
| 2389 | ||
| 2390 | end | |
| 2391 | ||
| 2392 | ||
| 2393 | ||
| 2394 | ||
| 2395 | ||
| 2396 | ||
| 2397 | ||
| 2398 | ||
| 2399 | ||
| 2400 | ||
| 2401 | ||
| 2402 | ||
| 2403 | ||
| 2404 | ||
| 2405 | ||
| 2406 | ||
| 2407 | ||
| 2408 | ||
| 2409 | ||
| 2410 | ||
| 2411 | ||
| 2412 | ||
| 2413 | ||
| 2414 | ||
| 2415 | ||
| 2416 | ||
| 2417 | ||
| 2418 | ||
| 2419 | ||
| 2420 | ||
| 2421 | ||
| 2422 | ||
| 2423 | ||
| 2424 | ||
| 2425 | ||
| 2426 | ||
| 2427 | ||
| 2428 | v = 0 | |
| 2429 | ||
| 2430 | ||
| 2431 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 2432 | if inputObject.KeyCode == Enum.KeyCode.E then | |
| 2433 | v = 0 | |
| 2434 | SKILL7TEXT.Text = "[CLICK] Cube of Rainbow" | |
| 2435 | end | |
| 2436 | end | |
| 2437 | ||
| 2438 | game:GetService("UserInputService").InputBegan:connect(onKeyPress)
| |
| 2439 | ||
| 2440 | ||
| 2441 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 2442 | if inputObject.KeyCode == Enum.KeyCode.R then | |
| 2443 | v = 1 | |
| 2444 | SKILL7TEXT.Text = "[CLICK] Explosion of Rainbow" | |
| 2445 | end | |
| 2446 | end | |
| 2447 | game:GetService("UserInputService").InputBegan:connect(onKeyPress)
| |
| 2448 | ||
| 2449 | ||
| 2450 | Mouse.Button1Down:connect(function() | |
| 2451 | ||
| 2452 | ||
| 2453 | ||
| 2454 | if v == 0 then | |
| 2455 | Dismantle() | |
| 2456 | ||
| 2457 | end | |
| 2458 | ||
| 2459 | if v == 1 then | |
| 2460 | implode() | |
| 2461 | Smite() | |
| 2462 | end | |
| 2463 | ||
| 2464 | end) | |
| 2465 | ||
| 2466 | Mouse.KeyDown:connect(function(key) | |
| 2467 | if key == "f" then | |
| 2468 | SpawnSmite(Mouse.Hit.p) | |
| 2469 | end | |
| 2470 | if Key == "z" then | |
| 2471 | Smite() | |
| 2472 | end | |
| 2473 | if Key == "x" then | |
| 2474 | implode() | |
| 2475 | end | |
| 2476 | if Key == "c" then | |
| 2477 | Dismantle() | |
| 2478 | end | |
| 2479 | if key == "q" then | |
| 2480 | local pos = RootPart.Position | |
| 2481 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos) | |
| 2482 | end | |
| 2483 | if Key == "g" then | |
| 2484 | Boom() | |
| 2485 | end | |
| 2486 | end) | |
| 2487 | ||
| 2488 | ||
| 2489 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 2490 | if inputObject.KeyCode == Enum.KeyCode.P then | |
| 2491 | ||
| 2492 | for _, c in pairs(Character:GetChildren()) do | |
| 2493 | c:Remove() | |
| 2494 | createstuff() | |
| 2495 | headness.Parent = Character | |
| 2496 | headness.CFrame = Torso.CFrame*CFrame.new(0,2,0) | |
| 2497 | weldBetween(headness,Head) | |
| 2498 | txt.Adornee = BlockHead | |
| 2499 | ||
| 2500 | ||
| 2501 | end | |
| 2502 | ||
| 2503 | sick.SoundId = "rbxassetid://556122490" | |
| 2504 | sick.Looped = true | |
| 2505 | sick.Pitch = 1 | |
| 2506 | sick.Volume = 2 | |
| 2507 | sick.Parent = Effects | |
| 2508 | sick.Playing = PLAYSONG | |
| 2509 | ||
| 2510 | local Effects = IT("Folder", Character)
| |
| 2511 | Effects.Name = "Effects" | |
| 2512 | ||
| 2513 | local Effects = IT("Folder", Character)
| |
| 2514 | Effects.Name = "Effects" | |
| 2515 | local deathpart = Instance.new("Part")
| |
| 2516 | deathpart.Parent = game.Workspace | |
| 2517 | deathpart.CFrame = (Torso.CFrame) | |
| 2518 | deathpart.Anchored = true | |
| 2519 | deathpart.Size = Vector3.new(2,2,2) | |
| 2520 | deathpart.Material = ("Neon")
| |
| 2521 | deathpart.CanCollide = false | |
| 2522 | deathpart.Transparency = 0 | |
| 2523 | deathpart.Shape = "Ball" | |
| 2524 | ||
| 2525 | ||
| 2526 | local stoptime = coroutine.wrap(function() | |
| 2527 | ||
| 2528 | local p = 2 | |
| 2529 | ||
| 2530 | ||
| 2531 | ||
| 2532 | for i = 1,10,0.1 do | |
| 2533 | ||
| 2534 | deathpart.CFrame = (Torso.CFrame) | |
| 2535 | ||
| 2536 | deathpart.Color = Color3.new(r/255,g/255,b/255) | |
| 2537 | deathpart.Size = Vector3.new(p,p,p) | |
| 2538 | Blockhead.Parent = headness | |
| 2539 | ||
| 2540 | p = p+2 | |
| 2541 | Swait() | |
| 2542 | end | |
| 2543 | ||
| 2544 | ||
| 2545 | ||
| 2546 | end) | |
| 2547 | ||
| 2548 | stoptime() | |
| 2549 | ||
| 2550 | ------------------------------------------ | |
| 2551 | ||
| 2552 | ||
| 2553 | ||
| 2554 | ||
| 2555 | local stoptime = coroutine.wrap(function() | |
| 2556 | ||
| 2557 | local p = 2 | |
| 2558 | ||
| 2559 | ||
| 2560 | ||
| 2561 | for i = 1,10,0.1 do | |
| 2562 | ||
| 2563 | ||
| 2564 | ||
| 2565 | ||
| 2566 | ||
| 2567 | deathpart.Transparency = p/30 | |
| 2568 | ||
| 2569 | p = p+1 | |
| 2570 | Swait() | |
| 2571 | end | |
| 2572 | ||
| 2573 | ||
| 2574 | ||
| 2575 | end) | |
| 2576 | ||
| 2577 | stoptime() | |
| 2578 | ||
| 2579 | ||
| 2580 | ||
| 2581 | ||
| 2582 | ||
| 2583 | ||
| 2584 | ||
| 2585 | ||
| 2586 | ||
| 2587 | ||
| 2588 | ||
| 2589 | ||
| 2590 | wait(1) | |
| 2591 | ||
| 2592 | deathpart:Remove() | |
| 2593 | ||
| 2594 | ||
| 2595 | end | |
| 2596 | ||
| 2597 | ||
| 2598 | ||
| 2599 | end | |
| 2600 | ||
| 2601 | game:GetService("UserInputService").InputBegan:connect(onKeyPress)
| |
| 2602 | ||
| 2603 | ||
| 2604 | ||
| 2605 | ||
| 2606 | ||
| 2607 | ||
| 2608 | ||
| 2609 | ||
| 2610 | ||
| 2611 | ||
| 2612 | local random4 = coroutine.wrap(function() | |
| 2613 | while true do | |
| 2614 | ||
| 2615 | RightArm.Color = Color3.new(r/255,g/255,b/255) | |
| 2616 | LeftArm.Color = Color3.new(r/255,g/255,b/255) | |
| 2617 | RightLeg.Color = Color3.new(r/255,g/255,b/255) | |
| 2618 | LeftLeg.Color = Color3.new(r/255,g/255,b/255) | |
| 2619 | headness.Color = Color3.new(r/255,g/255,b/255) | |
| 2620 | Torso.Color = Color3.new(r/255,g/255,b/255) | |
| 2621 | headness.Transparency = 0.5 | |
| 2622 | RootPart.Transparency = 1 | |
| 2623 | ||
| 2624 | ||
| 2625 | Swait() | |
| 2626 | end | |
| 2627 | end) | |
| 2628 | ||
| 2629 | random4() | |
| 2630 | ||
| 2631 | while true do | |
| 2632 | ||
| 2633 | ||
| 2634 | RightArm.Transparency = 0.3 | |
| 2635 | LeftArm.Transparency = 0.3 | |
| 2636 | RightLeg.Transparency = 0.3 | |
| 2637 | LeftLeg.Transparency = 0.3 | |
| 2638 | Torso.Transparency = 0.3 | |
| 2639 | Head.Transparency = 1 | |
| 2640 | RightArm.Material = ("Neon")
| |
| 2641 | LeftArm.Material = ("Neon")
| |
| 2642 | LeftLeg.Material = ("Neon")
| |
| 2643 | RightLeg.Material = ("Neon")
| |
| 2644 | Torso.Material = ("Neon")
| |
| 2645 | Head.Material = ("Neon")
| |
| 2646 | headness.Material = ("Neon")
| |
| 2647 | ||
| 2648 | ||
| 2649 | function fix() | |
| 2650 | ||
| 2651 | if Head.Size ~= Vector3.new(2,1,1)then | |
| 2652 | Head.Size = Vector3.new(1,1,1) | |
| 2653 | end | |
| 2654 | ||
| 2655 | ||
| 2656 | if RightArm.Size ~= Vector3.new(1,2,1)then | |
| 2657 | RightArm.Size = Vector3.new(1,2,1) | |
| 2658 | end | |
| 2659 | ||
| 2660 | ||
| 2661 | if LeftArm.Size ~= Vector3.new(1,2,1)then | |
| 2662 | LeftArm.Size = Vector3.new(1,2,1) | |
| 2663 | end | |
| 2664 | ||
| 2665 | if RightLeg.Size ~= Vector3.new(1,2,1)then | |
| 2666 | RightLeg.Size = Vector3.new(1,2,1) | |
| 2667 | end | |
| 2668 | ||
| 2669 | if LeftArm.Size ~= Vector3.new(1,2,1)then | |
| 2670 | LeftArm.Size = Vector3.new(1,2,1) | |
| 2671 | end | |
| 2672 | ||
| 2673 | if Torso.Size ~= Vector3.new(2,2,1)then | |
| 2674 | Torso.Size = Vector3.new(2,2,1) | |
| 2675 | end | |
| 2676 | end | |
| 2677 | ||
| 2678 | ||
| 2679 | ||
| 2680 | Swait() | |
| 2681 | ||
| 2682 | script.Parent = WEAPONGUI | |
| 2683 | ANIMATE.Parent = nil | |
| 2684 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 2685 | v:Stop(); | |
| 2686 | end | |
| 2687 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 2688 | Humanoid = IT("Humanoid",Character)
| |
| 2689 | end | |
| 2690 | ||
| 2691 | SINE = SINE + CHANGE | |
| 2692 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2693 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2694 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 2695 | local WALKSPEEDVALUE = 4 | |
| 2696 | ||
| 2697 | if ANIM == "Walk" and TORSOVELOCITY > 1 and PLAYSONG == true then | |
| 2698 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2699 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2700 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2701 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2702 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or PLAYSONG == false then | |
| 2703 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2704 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2705 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2706 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2707 | end | |
| 2708 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2709 | ANIM = "Jump" | |
| 2710 | if ATTACK == false then | |
| 2711 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2712 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2713 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2714 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2715 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 2716 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 2717 | end | |
| 2718 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2719 | ANIM = "Fall" | |
| 2720 | if ATTACK == false then | |
| 2721 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2722 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2723 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2724 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2725 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2726 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2727 | end | |
| 2728 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2729 | ANIM = "Idle" | |
| 2730 | if ATTACK == false then | |
| 2731 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2732 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2733 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2734 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2735 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2736 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2737 | end | |
| 2738 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2739 | ANIM = "Walk" | |
| 2740 | if ATTACK == false then | |
| 2741 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2742 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2743 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2744 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2745 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2746 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2747 | end | |
| 2748 | end | |
| 2749 | for _, c in pairs(Character:GetChildren()) do | |
| 2750 | if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "SelectionBox" or c.Name == "Body Colors" then | |
| 2751 | c:remove() | |
| 2752 | end | |
| 2753 | end | |
| 2754 | AntiTimeStop() | |
| 2755 | fix() | |
| 2756 | ||
| 2757 | Humanoid.MaxHealth = 10e10 | |
| 2758 | Humanoid.Health = 10e10 | |
| 2759 | ||
| 2760 | ||
| 2761 | ||
| 2762 | ||
| 2763 | if Rooted == false then | |
| 2764 | Disable_Jump = false | |
| 2765 | Humanoid.WalkSpeed = Speed | |
| 2766 | elseif Rooted == true then | |
| 2767 | Disable_Jump = true | |
| 2768 | Humanoid.WalkSpeed = 0 | |
| 2769 | end | |
| 2770 | ||
| 2771 | ||
| 2772 | --1383666704 | |
| 2773 | sick.SoundId = "rbxassetid://556122490" | |
| 2774 | sick.Looped = true | |
| 2775 | sick.Pitch = 1 | |
| 2776 | sick.Volume = 2 | |
| 2777 | sick.Parent = Effects | |
| 2778 | sick.Playing = PLAYSONG | |
| 2779 | Humanoid.PlatformStand = false | |
| 2780 | Humanoid.Name = "the god of shapes" | |
| 2781 | refit() | |
| 2782 | ||
| 2783 | for _, c in pairs(Character:GetChildren()) do | |
| 2784 | if c:IsA("BasePart") and ATTACK == false then
| |
| 2785 | for _, e in pairs(c:GetChildren()) do | |
| 2786 | if e:IsA("BodyPosition") or e:IsA("BodyGyro") or e:IsA("Decal") or e:IsA("ParticleEmitter") or e:IsA("Fire") or e:IsA("Smoke") or e:IsA("SelectionBox") or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" or c.ClassName == "ShirtGraphic" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
| |
| 2787 | e:remove() | |
| 2788 | end | |
| 2789 | end | |
| 2790 | end | |
| 2791 | end | |
| 2792 | end |