SHOW:
|
|
- or go back to the newest paste.
| 1 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 1 | + | |
| 2 | - | local Player,game,owner = owner,game |
| 2 | + | |
| 3 | - | local RealPlayer = Player |
| 3 | + | |
| 4 | - | do |
| 4 | + | |
| 5 | - | print("FE Compatibility code by Mokiros")
|
| 5 | + | |
| 6 | - | local rp = RealPlayer |
| 6 | + | |
| 7 | - | script.Parent = rp.Character |
| 7 | + | |
| 8 | print("[Click] Void Fist")
| |
| 9 | - | --RemoteEvent for communicating |
| 9 | + | |
| 10 | - | local Event = Instance.new("RemoteEvent")
|
| 10 | + | |
| 11 | - | Event.Name = "UserInput_Event" |
| 11 | + | Player = game.players.LocalPlayer |
| 12 | local mouse = Player:Getmouse() | |
| 13 | - | --Fake event to make stuff like Mouse.KeyDown work |
| 13 | + | |
| 14 | - | local function fakeEvent() |
| 14 | + | |
| 15 | - | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
|
| 15 | + | |
| 16 | - | t.connect = t.Connect |
| 16 | + | |
| 17 | - | return t |
| 17 | + | |
| 18 | Mouse = Player:GetMouse() | |
| 19 | RootPart = Character.HumanoidRootPart | |
| 20 | - | --Creating fake input objects with fake variables |
| 20 | + | |
| 21 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 21 | + | |
| 22 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 22 | + | |
| 23 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 23 | + | |
| 24 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 24 | + | |
| 25 | - | end} |
| 25 | + | |
| 26 | - | --Merged 2 functions into one by checking amount of arguments |
| 26 | + | |
| 27 | - | CAS.UnbindAction = CAS.BindAction |
| 27 | + | |
| 28 | RightShoulder = Torso["Right Shoulder"] | |
| 29 | - | --This function will trigger the events that have been :Connect()'ed |
| 29 | + | |
| 30 | - | local function te(self,ev,...) |
| 30 | + | |
| 31 | - | local t = m[ev] |
| 31 | + | |
| 32 | - | if t and t._fakeEvent then |
| 32 | + | |
| 33 | - | for _,f in pairs(t.Functions) do |
| 33 | + | |
| 34 | - | f(...) |
| 34 | + | |
| 35 | sick.Name = "BGM" | |
| 36 | sick.Looped = true | |
| 37 | sick.Pitch = 1 | |
| 38 | - | m.TrigEvent = te |
| 38 | + | |
| 39 | - | UIS.TrigEvent = te |
| 39 | + | |
| 40 | musictime = 0 | |
| 41 | - | Event.OnServerEvent:Connect(function(plr,io) |
| 41 | + | |
| 42 | - | if plr~=rp then return end |
| 42 | + | |
| 43 | - | m.Target = io.Target |
| 43 | + | |
| 44 | - | m.Hit = io.Hit |
| 44 | + | |
| 45 | - | if not io.isMouse then |
| 45 | + | |
| 46 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
| 46 | + | |
| 47 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 47 | + | |
| 48 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 48 | + | |
| 49 | sick.TimePosition = musictime | |
| 50 | - | for _,t in pairs(CAS.Actions) do |
| 50 | + | |
| 51 | - | for _,k in pairs(t.Keys) do |
| 51 | + | |
| 52 | - | if k==io.KeyCode then |
| 52 | + | |
| 53 | - | t.Function(t.Name,io.UserInputState,io) |
| 53 | + | |
| 54 | CF = CFrame.new | |
| 55 | VT = Vector3.new | |
| 56 | RAD = math.rad | |
| 57 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 57 | + | |
| 58 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 58 | + | |
| 59 | - | end |
| 59 | + | |
| 60 | - | end) |
| 60 | + | |
| 61 | - | Event.Parent = NLS([==[ |
| 61 | + | |
| 62 | - | local Player = game:GetService("Players").LocalPlayer
|
| 62 | + | |
| 63 | - | local Event = script:WaitForChild("UserInput_Event")
|
| 63 | + | |
| 64 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 65 | - | local Mouse = Player:GetMouse() |
| 65 | + | |
| 66 | - | local UIS = game:GetService("UserInputService")
|
| 66 | + | |
| 67 | - | local input = function(io,a) |
| 67 | + | |
| 68 | - | if a then return end |
| 68 | + | |
| 69 | - | --Since InputObject is a client-side instance, we create and pass table instead |
| 69 | + | |
| 70 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
|
| 70 | + | |
| 71 | FLOOR = math.floor | |
| 72 | - | UIS.InputBegan:Connect(input) |
| 72 | + | |
| 73 | - | UIS.InputEnded:Connect(input) |
| 73 | + | |
| 74 | ||
| 75 | - | local h,t |
| 75 | + | |
| 76 | - | --Give the server mouse data 30 times every second, but only if the values changed |
| 76 | + | |
| 77 | - | --If player is not moving their mouse, client won't fire events |
| 77 | + | |
| 78 | - | while wait(1/30) do |
| 78 | + | |
| 79 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
| 79 | + | |
| 80 | - | h,t=Mouse.Hit,Mouse.Target |
| 80 | + | |
| 81 | - | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 81 | + | |
| 82 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 83 | - | end]==],Player.Character) |
| 83 | + | |
| 84 | end | |
| 85 | - | ----Sandboxed game object that allows the usage of client-side methods and services |
| 85 | + | |
| 86 | - | --Real game object |
| 86 | + | |
| 87 | - | local _rg = game |
| 87 | + | |
| 88 | NEWMESH.Parent = PARENT | |
| 89 | - | --Metatable for fake service |
| 89 | + | |
| 90 | - | local fsmt = {
|
| 90 | + | |
| 91 | - | __index = function(self,k) |
| 91 | + | |
| 92 | - | local s = rawget(self,"_RealService") |
| 92 | + | |
| 93 | - | if s then return s[k] end |
| 93 | + | |
| 94 | - | end, |
| 94 | + | |
| 95 | - | __newindex = function(self,k,v) |
| 95 | + | |
| 96 | - | local s = rawget(self,"_RealService") |
| 96 | + | |
| 97 | - | if s then s[k]=v end |
| 97 | + | |
| 98 | - | end, |
| 98 | + | |
| 99 | - | __call = function(self,...) |
| 99 | + | |
| 100 | - | local s = rawget(self,"_RealService") |
| 100 | + | |
| 101 | - | if s then return s(...) end |
| 101 | + | |
| 102 | end | |
| 103 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 104 | - | local function FakeService(t,RealService) |
| 104 | + | |
| 105 | - | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService |
| 105 | + | |
| 106 | - | return setmetatable(t,fsmt) |
| 106 | + | |
| 107 | NEWPART.Material = MATERIAL | |
| 108 | NEWPART:BreakJoints() | |
| 109 | - | --Fake game object |
| 109 | + | |
| 110 | - | local g = {
|
| 110 | + | |
| 111 | - | GetService = function(self,s) |
| 111 | + | |
| 112 | - | return self[s] |
| 112 | + | |
| 113 | - | end, |
| 113 | + | |
| 114 | - | Players = FakeService({
|
| 114 | + | |
| 115 | - | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
|
| 115 | + | |
| 116 | - | },"Players"), |
| 116 | + | |
| 117 | - | UserInputService = FakeService(UIS,"UserInputService"), |
| 117 | + | |
| 118 | - | ContextActionService = FakeService(CAS,"ContextActionService"), |
| 118 | + | |
| 119 | weldd.Part0 = a | |
| 120 | - | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) |
| 120 | + | |
| 121 | - | g.service = g.GetService |
| 121 | + | |
| 122 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 123 | - | g.RunService = FakeService({
|
| 123 | + | |
| 124 | - | RenderStepped = _rg:GetService("RunService").Heartbeat,
|
| 124 | + | |
| 125 | - | BindToRenderStep = function(self,name,_,fun) |
| 125 | + | |
| 126 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 127 | - | end, |
| 127 | + | |
| 128 | - | UnbindFromRenderStep = function(self,name) |
| 128 | + | |
| 129 | - | self._btrs[name]:Disconnect() |
| 129 | + | |
| 130 | - | end, |
| 130 | + | |
| 131 | - | },"RunService") |
| 131 | + | |
| 132 | local CHANGEMOVEMENT = 0 | |
| 133 | - | setmetatable(g,{
|
| 133 | + | |
| 134 | - | __index=function(self,s) |
| 134 | + | |
| 135 | - | return _rg:GetService(s) or typeof(_rg[s])=="function" |
| 135 | + | |
| 136 | - | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
| 136 | + | |
| 137 | - | end, |
| 137 | + | |
| 138 | - | __newindex = fsmt.__newindex, |
| 138 | + | |
| 139 | - | __call = fsmt.__call |
| 139 | + | |
| 140 | - | }) |
| 140 | + | |
| 141 | - | --Changing owner to fake player object to support owner:GetMouse() |
| 141 | + | |
| 142 | - | game,owner = g,g.Players.LocalPlayer |
| 142 | + | |
| 143 | local WALK = 0 | |
| 144 | local VALUE1 = false | |
| 145 | local VALUE2 = false | |
| 146 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 147 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 148 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 149 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 150 | WEAPONGUI.Name = "Weapon GUI" | |
| 151 | local Effects = IT("Folder", Character)
| |
| 152 | Effects.Name = "Effects" | |
| 153 | local ANIMATOR = Humanoid.Animator | |
| 154 | - | Player = owner |
| 154 | + | |
| 155 | ||
| 156 | local UNANCHOR = true | |
| 157 | ||
| 158 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 159 | ArtificialHB.Name = "ArtificialHB" | |
| 160 | script:WaitForChild("ArtificialHB")
| |
| 161 | frame = Frame_Speed | |
| 162 | tf = 0 | |
| 163 | allowframeloss = false | |
| 164 | tossremainder = false | |
| 165 | lastframe = tick() | |
| 166 | script.ArtificialHB:Fire() | |
| 167 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 168 | tf = tf + s | |
| 169 | if tf >= frame then | |
| 170 | if allowframeloss then | |
| 171 | script.ArtificialHB:Fire() | |
| 172 | lastframe = tick() | |
| 173 | else | |
| 174 | for i = 1, math.floor(tf / frame) do | |
| 175 | script.ArtificialHB:Fire() | |
| 176 | end | |
| 177 | lastframe = tick() | |
| 178 | end | |
| 179 | if tossremainder then | |
| 180 | tf = 0 | |
| 181 | else | |
| 182 | tf = tf - frame * math.floor(tf / frame) | |
| 183 | end | |
| 184 | end | |
| 185 | end) | |
| 186 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 187 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 188 | end | |
| 189 | function PositiveAngle(NUMBER) | |
| 190 | if NUMBER >= 0 then | |
| 191 | NUMBER = 0 | |
| 192 | end | |
| 193 | return NUMBER | |
| 194 | end | |
| 195 | function NegativeAngle(NUMBER) | |
| 196 | if NUMBER <= 0 then | |
| 197 | NUMBER = 0 | |
| 198 | end | |
| 199 | return NUMBER | |
| 200 | end | |
| 201 | function Swait(NUMBER) | |
| 202 | if NUMBER == 0 or NUMBER == nil then | |
| 203 | ArtificialHB.Event:wait() | |
| 204 | else | |
| 205 | for i = 1, NUMBER do | |
| 206 | ArtificialHB.Event:wait() | |
| 207 | end | |
| 208 | end | |
| 209 | end | |
| 210 | function QuaternionFromCFrame(cf) | |
| 211 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 212 | local trace = m00 + m11 + m22 | |
| 213 | if trace > 0 then | |
| 214 | local s = math.sqrt(1 + trace) | |
| 215 | local recip = 0.5 / s | |
| 216 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 217 | else | |
| 218 | local i = 0 | |
| 219 | if m00 < m11 then | |
| 220 | i = 1 | |
| 221 | end | |
| 222 | if m22 > (i == 0 and m00 or m11) then | |
| 223 | i = 2 | |
| 224 | end | |
| 225 | if i == 0 then | |
| 226 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 227 | local recip = 0.5 / s | |
| 228 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 229 | elseif i == 1 then | |
| 230 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 231 | local recip = 0.5 / s | |
| 232 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 233 | elseif i == 2 then | |
| 234 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 235 | local recip = 0.5 / s | |
| 236 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 237 | end | |
| 238 | end | |
| 239 | end | |
| 240 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 241 | local xs, ys, zs = x + x, y + y, z + z | |
| 242 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 243 | local xx = x * xs | |
| 244 | local xy = x * ys | |
| 245 | local xz = x * zs | |
| 246 | local yy = y * ys | |
| 247 | local yz = y * zs | |
| 248 | local zz = z * zs | |
| 249 | 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)) | |
| 250 | end | |
| 251 | Head.Color = C3(0,0,0) | |
| 252 | Torso.Color = C3(0,0,0) | |
| 253 | LeftArm.Color = C3(0,0,0) | |
| 254 | RightArm.Color = C3(0,0,0) | |
| 255 | LeftLeg.Color = C3(0,0,0) | |
| 256 | RightLeg.Color = C3(0,0,0) | |
| 257 | function QuaternionSlerp(a, b, t) | |
| 258 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 259 | local startInterp, finishInterp | |
| 260 | if cosTheta >= 1.0E-4 then | |
| 261 | if 1 - cosTheta > 1.0E-4 then | |
| 262 | local theta = ACOS(cosTheta) | |
| 263 | local invSinTheta = 1 / SIN(theta) | |
| 264 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 265 | finishInterp = SIN(t * theta) * invSinTheta | |
| 266 | else | |
| 267 | startInterp = 1 - t | |
| 268 | finishInterp = t | |
| 269 | end | |
| 270 | elseif 1 + cosTheta > 1.0E-4 then | |
| 271 | local theta = ACOS(-cosTheta) | |
| 272 | local invSinTheta = 1 / SIN(theta) | |
| 273 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 274 | finishInterp = SIN(t * theta) * invSinTheta | |
| 275 | else | |
| 276 | startInterp = t - 1 | |
| 277 | finishInterp = t | |
| 278 | end | |
| 279 | 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 | |
| 280 | end | |
| 281 | function Clerp(a, b, t) | |
| 282 | local qa = {
| |
| 283 | QuaternionFromCFrame(a) | |
| 284 | } | |
| 285 | local qb = {
| |
| 286 | QuaternionFromCFrame(b) | |
| 287 | } | |
| 288 | local ax, ay, az = a.x, a.y, a.z | |
| 289 | local bx, by, bz = b.x, b.y, b.z | |
| 290 | local _t = 1 - t | |
| 291 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 292 | end | |
| 293 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 294 | local frame = IT("Frame")
| |
| 295 | frame.BackgroundTransparency = TRANSPARENCY | |
| 296 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 297 | frame.Position = POSITION | |
| 298 | frame.Size = SIZE | |
| 299 | frame.BackgroundColor3 = COLOR | |
| 300 | frame.BorderColor3 = BORDERCOLOR | |
| 301 | frame.Name = NAME | |
| 302 | frame.Parent = PARENT | |
| 303 | return frame | |
| 304 | end | |
| 305 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 306 | local label = IT("TextLabel")
| |
| 307 | label.BackgroundTransparency = 1 | |
| 308 | label.Size = UD2(1, 0, 1, 0) | |
| 309 | label.Position = UD2(0, 0, 0, 0) | |
| 310 | label.TextColor3 = TEXTCOLOR | |
| 311 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 312 | label.TextTransparency = TRANSPARENCY | |
| 313 | label.FontSize = TEXTFONTSIZE | |
| 314 | label.Font = TEXTFONT | |
| 315 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 316 | label.TextScaled = false | |
| 317 | label.Text = TEXT | |
| 318 | label.Name = NAME | |
| 319 | label.Parent = PARENT | |
| 320 | return label | |
| 321 | end | |
| 322 | function NoOutlines(PART) | |
| 323 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 324 | end | |
| 325 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 326 | local NEWWELD = IT(TYPE) | |
| 327 | NEWWELD.Part0 = PART0 | |
| 328 | NEWWELD.Part1 = PART1 | |
| 329 | NEWWELD.C0 = C0 | |
| 330 | NEWWELD.C1 = C1 | |
| 331 | NEWWELD.Parent = PARENT | |
| 332 | return NEWWELD | |
| 333 | end | |
| 334 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 335 | local NEWWELD = IT(TYPE) | |
| 336 | NEWWELD.Part0 = PART0 | |
| 337 | NEWWELD.Part1 = PART1 | |
| 338 | NEWWELD.C0 = C0 | |
| 339 | NEWWELD.C1 = C1 | |
| 340 | NEWWELD.Parent = PARENT | |
| 341 | return NEWWELD | |
| 342 | end | |
| 343 | local S = IT("Sound")
| |
| 344 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 345 | local NEWSOUND | |
| 346 | coroutine.resume(coroutine.create(function() | |
| 347 | NEWSOUND = S:Clone() | |
| 348 | NEWSOUND.Parent = PARENT | |
| 349 | NEWSOUND.Volume = VOLUME | |
| 350 | NEWSOUND.Pitch = PITCH | |
| 351 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
| 352 | Swait() | |
| 353 | NEWSOUND:play() | |
| 354 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 355 | end)) | |
| 356 | return NEWSOUND | |
| 357 | end | |
| 358 | function CFrameFromTopBack(at, top, back) | |
| 359 | local right = top:Cross(back) | |
| 360 | 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) | |
| 361 | end | |
| 362 | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) | |
| 363 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
| 364 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
| |
| 365 | wave.CFrame = CFRAME | |
| 366 | coroutine.resume(coroutine.create(function(PART) | |
| 367 | for i = 1, WAIT do | |
| 368 | Swait() | |
| 369 | mesh.Scale = mesh.Scale + GROW | |
| 370 | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) | |
| 371 | if DOESROT == true then | |
| 372 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
| 373 | end | |
| 374 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 375 | if wave.Transparency > 0.99 then | |
| 376 | wave:remove() | |
| 377 | end | |
| 378 | end | |
| 379 | end)) | |
| 380 | end | |
| 381 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
| 382 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
| 383 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
| |
| 384 | wave.CFrame = CFRAME | |
| 385 | coroutine.resume(coroutine.create(function(PART) | |
| 386 | for i = 1, WAIT do | |
| 387 | Swait() | |
| 388 | mesh.Scale = mesh.Scale + GROW | |
| 389 | if DOESROT == true then | |
| 390 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
| 391 | end | |
| 392 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 393 | if wave.Transparency > 0.99 then | |
| 394 | wave:remove() | |
| 395 | end | |
| 396 | end | |
| 397 | end)) | |
| 398 | end | |
| 399 | ||
| 400 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 401 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
| 402 | local mesh | |
| 403 | if KIND == "Base" then | |
| 404 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
| |
| 405 | elseif KIND == "Thin" then | |
| 406 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 407 | elseif KIND == "Round" then | |
| 408 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 409 | end | |
| 410 | wave.CFrame = CFRAME | |
| 411 | coroutine.resume(coroutine.create(function(PART) | |
| 412 | for i = 1, WAIT do | |
| 413 | Swait() | |
| 414 | mesh.Scale = mesh.Scale + GROW / 10 | |
| 415 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 416 | if wave.Transparency > 0.99 then | |
| 417 | wave:remove() | |
| 418 | end | |
| 419 | end | |
| 420 | end)) | |
| 421 | end | |
| 422 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
| 423 | for _, c in pairs(PARENT:GetChildren()) do | |
| 424 | if c.ClassName == "Model" then | |
| 425 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
| |
| 426 | local HUMANOID = c:FindFirstChildOfClass("Humanoid")
| |
| 427 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
| |
| 428 | if DIST > (TORSO.Position - FROM).Magnitude then | |
| 429 | table.insert(TABLE, c) | |
| 430 | end | |
| 431 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
| 432 | elseif c.ClassName == "Folder" then | |
| 433 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
| 434 | end | |
| 435 | end | |
| 436 | end | |
| 437 | end | |
| 438 | function MakeForm(PART, TYPE) | |
| 439 | if TYPE == "Cyl" then | |
| 440 | local MSH = IT("CylinderMesh", PART)
| |
| 441 | elseif TYPE == "Ball" then | |
| 442 | local MSH = IT("SpecialMesh", PART)
| |
| 443 | MSH.MeshType = "Sphere" | |
| 444 | elseif TYPE == "Wedge" then | |
| 445 | local MSH = IT("SpecialMesh", PART)
| |
| 446 | MSH.MeshType = "Wedge" | |
| 447 | end | |
| 448 | end | |
| 449 | ||
| 450 | local Particle = IT("ParticleEmitter",nil)
| |
| 451 | Particle.Enabled = false | |
| 452 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
| |
| 453 | Particle.LightEmission = 5 | |
| 454 | Particle.Rate = 200 | |
| 455 | Particle.ZOffset = 1 | |
| 456 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 457 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 458 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 459 | Particle.Color = ColorSequence.new(C3(1, 1, 1),C3(1, 1, 1)) | |
| 460 | ||
| 461 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 462 | function ParticleEmitter(Table) | |
| 463 | local PRTCL = Particle:Clone() | |
| 464 | local Speed = Table.Speed or 5 | |
| 465 | local Drag = Table.Drag or 0 | |
| 466 | local Size1 = Table.Size1 or 1 | |
| 467 | local Size2 = Table.Size2 or 5 | |
| 468 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 469 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 470 | local Parent = Table.Parent or Torso | |
| 471 | local Emit = Table.Emit or 100 | |
| 472 | local Offset = Table.Offset or 360 | |
| 473 | local Acel = Table.Acel or VT(0,0,0) | |
| 474 | local Enabled = Table.Enabled or false | |
| 475 | PRTCL.Parent = Parent | |
| 476 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 477 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 478 | PRTCL.Speed = NumberRange.new(Speed) | |
| 479 | PRTCL.VelocitySpread = Offset | |
| 480 | PRTCL.Drag = Drag | |
| 481 | PRTCL.Acceleration = Acel | |
| 482 | if Enabled == false then | |
| 483 | PRTCL:Emit(Emit) | |
| 484 | Debris:AddItem(PRTCL,Lifetime2) | |
| 485 | else | |
| 486 | PRTCL.Enabled = true | |
| 487 | end | |
| 488 | return PRTCL | |
| 489 | end | |
| 490 | ||
| 491 | local PRT = ParticleEmitter({Speed = 0.9, Drag = 100, Size1 = 0.6, Size2 = 0.9, Lifetime1 = 1.5, Lifetime2 = 1.5, Parent = RightLeg, Emit = 1000, Offset = 360, Enabled = true})
| |
| 492 | PRT.LockedToPart = true | |
| 493 | local PRT = ParticleEmitter({Speed = 0.9, Drag = 100, Size1 = 0.6, Size2 = 0.9, Lifetime1 = 1.5, Lifetime2 = 1.5, Parent = LeftLeg, Emit = 1000, Offset = 360, Enabled = true})
| |
| 494 | PRT.LockedToPart = true | |
| 495 | local PRT = ParticleEmitter({Speed = 0.9, Drag = 100, Size1 = 0.6, Size2 = 0.9, Lifetime1 = 1.5, Lifetime2 = 1.5, Parent = Torso, Emit = 1000, Offset = 360, Enabled = true})
| |
| 496 | PRT.LockedToPart = true | |
| 497 | local PRT = ParticleEmitter({Speed = 0.9, Drag = 100, Size1 = 0.6, Size2 = 0.9, Lifetime1 = 1.5, Lifetime2 = 1.5, Parent = RightArm, Emit = 1000, Offset = 360, Enabled = true})
| |
| 498 | PRT.LockedToPart = true | |
| 499 | local PRT = ParticleEmitter({Speed = 0.9, Drag = 100, Size1 = 0.6, Size2 = 0.9, Lifetime1 = 1.5, Lifetime2 = 1.5, Parent = LeftArm, Emit = 1000, Offset = 360, Enabled = true})
| |
| 500 | PRT.LockedToPart = true | |
| 501 | ||
| 502 | ||
| 503 | ||
| 504 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(1,0.4,1.8)/2,false) | |
| 505 | MakeForm(Eye,"Ball") | |
| 506 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0))
| |
| 507 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(1,0.4,1.8)/2,false) | |
| 508 | MakeForm(Eye,"Ball") | |
| 509 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0))
| |
| 510 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(0.1,1,1)/2,false) | |
| 511 | MakeForm(Eye,"Ball") | |
| 512 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0))
| |
| 513 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(0.1,1,1)/2,false) | |
| 514 | MakeForm(Eye,"Ball") | |
| 515 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0))
| |
| 516 | ||
| 517 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
| 518 | if DoesCourontine == false then | |
| 519 | local Direction = CF(Part.Position, ToLocation) | |
| 520 | local Distance = (Part.Position - ToLocation).magnitude | |
| 521 | for i = 1, AmountOfTime do | |
| 522 | Swait() | |
| 523 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
| 524 | Direction = Part.CFrame | |
| 525 | end | |
| 526 | Part:remove() | |
| 527 | elseif DoesCourontine == true then | |
| 528 | coroutine.resume(coroutine.create(function() | |
| 529 | local Direction = CF(Part.Position, ToLocation) | |
| 530 | local Distance = (Part.Position - ToLocation).magnitude | |
| 531 | for i = 1, AmountOfTime do | |
| 532 | Swait() | |
| 533 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
| 534 | Direction = Part.CFrame | |
| 535 | end | |
| 536 | Part:remove() | |
| 537 | end)) | |
| 538 | end | |
| 539 | end | |
| 540 | function CheckTableForString(Table, String) | |
| 541 | for i, v in pairs(Table) do | |
| 542 | if string.find(string.lower(String), string.lower(v)) then | |
| 543 | return true | |
| 544 | end | |
| 545 | end | |
| 546 | return false | |
| 547 | end | |
| 548 | function CheckIntangible(Hit) | |
| 549 | local ProjectileNames = {
| |
| 550 | "Water", | |
| 551 | "Arrow", | |
| 552 | "Projectile", | |
| 553 | "Effect", | |
| 554 | "Rail", | |
| 555 | "Lightning", | |
| 556 | "Bullet" | |
| 557 | } | |
| 558 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
| |
| 559 | return true | |
| 560 | end | |
| 561 | return false | |
| 562 | end | |
| 563 | Debris = game:GetService("Debris")
| |
| 564 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 565 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 566 | local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
| |
| 567 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 568 | if RayHit and CheckIntangible(RayHit) then | |
| 569 | if DelayIfHit then | |
| 570 | wait() | |
| 571 | end | |
| 572 | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) | |
| 573 | end | |
| 574 | return RayHit, RayPos, RayNormal | |
| 575 | end | |
| 576 | function turnto(position) | |
| 577 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
| 578 | end | |
| 579 | local naeeym2 = Instance.new("BillboardGui", Character)
| |
| 580 | naeeym2.AlwaysOnTop = true | |
| 581 | naeeym2.Size = UDim2.new(15, 35, 2, 15) | |
| 582 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
| 583 | naeeym2.Adornee = Character.Head | |
| 584 | naeeym2.Name = "Name" | |
| 585 | local tecks2 = Instance.new("TextLabel", naeeym2)
| |
| 586 | tecks2.BackgroundTransparency = 1 | |
| 587 | tecks2.TextScaled = true | |
| 588 | tecks2.BorderSizePixel = 0 | |
| 589 | tecks2.Text = "The Remaker" | |
| 590 | tecks2.Font = "Arcade" | |
| 591 | tecks2.TextSize = 30 | |
| 592 | tecks2.TextStrokeTransparency = 0 | |
| 593 | tecks2.TextColor3 = Color3.new(255/255,255/0,255/255) | |
| 594 | tecks2.TextStrokeColor3 = BrickColor.new("Yellow").Color
| |
| 595 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
| 596 | tecks2.Parent = naeeym2 | |
| 597 | Humanoid.Died:connect(function() | |
| 598 | Humanoid.Parent = nil | |
| 599 | Humanoid.MaxHealth = "inf" | |
| 600 | Humanoid.Health = "inf" | |
| 601 | refit() | |
| 602 | Humanoid.Parent = Character | |
| 603 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8) | |
| 604 | for i = 1, 5 do | |
| 605 | end | |
| 606 | killnearest(Torso.Position, 25, 180) | |
| 607 | end) | |
| 608 | ||
| 609 | function killnearest(position, range, maxstrength) | |
| 610 | for i, v in ipairs(workspace:GetChildren()) do | |
| 611 | local body = v:GetChildren() | |
| 612 | for part = 1, #body do | |
| 613 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then | |
| 614 | if v.ClassName == "Model" then | |
| 615 | v:BreakJoints() | |
| 616 | end | |
| 617 | local bv = Instance.new("BodyVelocity")
| |
| 618 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 619 | bv.velocity = CF(position, body[part].Position).lookVector * maxstrength | |
| 620 | bv.Parent = body[part] | |
| 621 | Debris:AddItem(bv, 0.2) | |
| 622 | end | |
| 623 | end | |
| 624 | if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then | |
| 625 | v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength | |
| 626 | end | |
| 627 | end | |
| 628 | end | |
| 629 | function Transparency(TRANS) | |
| 630 | tecks2.TextTransparency = TRANS | |
| 631 | tecks2.TextStrokeTransparency = TRANS | |
| 632 | for _, c in pairs(Character:GetChildren()) do | |
| 633 | if c.ClassName == "Part" and c ~= RootPart then | |
| 634 | c.Transparency = TRANS | |
| 635 | if c:FindFirstChildOfClass("Decal") then
| |
| 636 | c:FindFirstChildOfClass("Decal").Transparency = TRANS
| |
| 637 | end | |
| 638 | elseif c.ClassName == "Accessory" then | |
| 639 | c.Handle.Transparency = TRANS | |
| 640 | elseif c.ClassName == "Model" then | |
| 641 | for _, q in pairs(c:GetChildren()) do | |
| 642 | if q.ClassName == "Part" then | |
| 643 | q.Transparency = TRANS | |
| 644 | if q:FindFirstChildOfClass("Decal") then
| |
| 645 | q:FindFirstChildOfClass("Decal").Transparency = TRANS
| |
| 646 | end | |
| 647 | end | |
| 648 | end | |
| 649 | end | |
| 650 | end | |
| 651 | end | |
| 652 | ||
| 653 | function Savage_Fire() | |
| 654 | ATTACK = true | |
| 655 | Rooted = true | |
| 656 | VALUE1 = true | |
| 657 | local HITBODIES = {}
| |
| 658 | ||
| 659 | for i = 0, 1.2, 0.1 / Animation_Speed do | |
| 660 | Swait() | |
| 661 | ||
| 662 | if MRANDOM(1, 2) == 1 then | |
| 663 | do | |
| 664 | ||
| 665 | end | |
| 666 | end | |
| 667 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 668 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 669 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 670 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 671 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 672 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 673 | end | |
| 674 | Character.Archivable = true | |
| 675 | local CLONE = Character:Clone() | |
| 676 | CLONE.BGM:remove() | |
| 677 | CLONE.Effects:remove() | |
| 678 | CLONE.Parent = Effects | |
| 679 | ||
| 680 | local ORIGINPOS = RootPart.Position | |
| 681 | Transparency(1) | |
| 682 | VALUE2 = true | |
| 683 | RootPart.CFrame = CF(Mouse.Hit.p + VT(0, 5, 0), ORIGINPOS) | |
| 684 | for i = 1, 50 do | |
| 685 | Swait() | |
| 686 | ||
| 687 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 688 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 689 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 690 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 691 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 692 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 693 | end | |
| 694 | ||
| 695 | coroutine.resume(coroutine.create(function() | |
| 696 | local PITS = {}
| |
| 697 | local HITFLOOR, HITPOS, NORMAL = Raycast(CLONE.Torso.Position, CF(CLONE.Torso.Position, CLONE.Torso.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) | |
| 698 | ||
| 699 | if HITFLOOR ~= nil then | |
| 700 | local POS = CLONE.Torso.Position | |
| 701 | CLONE:remove() | |
| 702 | for i = 1, 150 do | |
| 703 | Swait() | |
| 704 | local PEWSOUND = {
| |
| 705 | "907527750", | |
| 706 | "907527912", | |
| 707 | "907528019", | |
| 708 | "907530553" | |
| 709 | } | |
| 710 | AddChildrenToTable(HITPOS, workspace, i, HITBODIES) | |
| 711 | if MRANDOM(1, 2) == 1 then | |
| 712 | local ICICLE = IT("CornerWedgePart", Effects)
| |
| 713 | ICICLE.Locked = true | |
| 714 | ICICLE.CanCollide = false | |
| 715 | ICICLE.Anchored = true | |
| 716 | ICICLE.BrickColor = BRICKC("Ice White")
| |
| 717 | ICICLE.Material = "Neon" | |
| 718 | ICICLE.Size = VT(i / 10, i / 2, i / 10) | |
| 719 | ||
| 720 | ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 2, i / 2), 0, MRANDOM(-i / 2, i / 2)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25))) | |
| 721 | table.insert(PITS, ICICLE) | |
| 722 | for e = 1, #HITBODIES do | |
| 723 | if HITBODIES[e] ~= nil then | |
| 724 | local BOD = HITBODIES[e] | |
| 725 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
| |
| 726 | if TORS then | |
| 727 | BOD:BreakJoints() | |
| 728 | for _, c in pairs(BOD:GetChildren()) do | |
| 729 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
| 730 | local bv = Instance.new("BodyVelocity")
| |
| 731 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 732 | bv.velocity = CF(POS, c.Position).lookVector * 250 | |
| 733 | bv.Parent = c | |
| 734 | Debris:AddItem(bv, 0.2) | |
| 735 | end | |
| 736 | end | |
| 737 | end | |
| 738 | end | |
| 739 | end | |
| 740 | HITBODIES = {}
| |
| 741 | end | |
| 742 | end | |
| 743 | coroutine.resume(coroutine.create(function() | |
| 744 | for i = 1, 10 do | |
| 745 | Swait() | |
| 746 | for e = 1, #PITS do | |
| 747 | if PITS[e] ~= nil then | |
| 748 | local E = PITS[e] | |
| 749 | E.Transparency = E.Transparency + 0.1 | |
| 750 | end | |
| 751 | end | |
| 752 | end | |
| 753 | for e = 1, #PITS do | |
| 754 | if PITS[e] ~= nil then | |
| 755 | local E = PITS[e] | |
| 756 | E:remove() | |
| 757 | end | |
| 758 | end | |
| 759 | end)) | |
| 760 | end | |
| 761 | end)) | |
| 762 | VALUE2 = false | |
| 763 | VALUE1 = false | |
| 764 | ATTACK = false | |
| 765 | Rooted = false | |
| 766 | for i = 1, 10 do | |
| 767 | Swait() | |
| 768 | Transparency(1 - i / 10) | |
| 769 | end | |
| 770 | end | |
| 771 | function Grave_Encounter() | |
| 772 | local HITBODIES = {}
| |
| 773 | local PEWSOUND = {
| |
| 774 | "907527750", | |
| 775 | "907527912", | |
| 776 | "907528019", | |
| 777 | "907530553" | |
| 778 | } | |
| 779 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
| 780 | if HITFLOOR ~= nil then | |
| 781 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8) | |
| 782 | ATTACK = true | |
| 783 | Rooted = false | |
| 784 | local GYRO = IT("BodyGyro", RootPart)
| |
| 785 | GYRO.D = 100 | |
| 786 | GYRO.P = 2000 | |
| 787 | GYRO.MaxTorque = VT(0, 4000000, 0) | |
| 788 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
| 789 | for i = 0, 3.5, 0.1 / Animation_Speed do | |
| 790 | Swait() | |
| 791 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
| 792 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 793 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 794 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 795 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 796 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 797 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 798 | end | |
| 799 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
| 800 | Swait() | |
| 801 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
| 802 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 803 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 804 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 805 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 806 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 807 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 808 | end | |
| 809 | Rooted = true | |
| 810 | GYRO:remove() | |
| 811 | coroutine.resume(coroutine.create(function() | |
| 812 | local PITS = {}
| |
| 813 | local FRAME = RootPart.CFrame | |
| 814 | for i = 1, 200 do | |
| 815 | Swait() | |
| 816 | for e = 1, #HITBODIES do | |
| 817 | if HITBODIES[e] ~= nil then | |
| 818 | local BOD = HITBODIES[e] | |
| 819 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
| |
| 820 | if TORS then | |
| 821 | BOD:BreakJoints() | |
| 822 | table.remove(HITBODIES, e) | |
| 823 | end | |
| 824 | end | |
| 825 | end | |
| 826 | local GLITCH = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Puddle", VT(2 + i / 2, 0, 2 + i / 2)) | |
| 827 | MakeForm(GLITCH, "Cyl") | |
| 828 | GLITCH.CFrame = FRAME * CF(MRANDOM(-5, 5), 0, 5 - i * 3) | |
| 829 | local HITFLOOR, HITPOS, NORMAL = Raycast(GLITCH.Position, CF(GLITCH.Position, GLITCH.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) | |
| 830 | if HITFLOOR ~= nil then | |
| 831 | table.insert(PITS, GLITCH) | |
| 832 | GLITCH.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 833 | AddChildrenToTable(HITPOS, workspace, i / 2, HITBODIES) | |
| 834 | if MRANDOM(1, 2) == 1 then | |
| 835 | local ICICLE = IT("CornerWedgePart", Effects)
| |
| 836 | ICICLE.Locked = true | |
| 837 | ICICLE.CanCollide = false | |
| 838 | ICICLE.Anchored = true | |
| 839 | ICICLE.BrickColor = BRICKC("Ice White")
| |
| 840 | ICICLE.Material = "Neon" | |
| 841 | ICICLE.Size = VT(i / 10, i / 2, i / 10) | |
| 842 | CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8) | |
| 843 | ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 10, i / 10), 0, MRANDOM(-i / 10, i / 10)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25))) | |
| 844 | table.insert(PITS, ICICLE) | |
| 845 | end | |
| 846 | else | |
| 847 | GLITCH:remove() | |
| 848 | break | |
| 849 | end | |
| 850 | end | |
| 851 | coroutine.resume(coroutine.create(function() | |
| 852 | for i = 1, 10 do | |
| 853 | Swait() | |
| 854 | for e = 1, #PITS do | |
| 855 | if PITS[e] ~= nil then | |
| 856 | local E = PITS[e] | |
| 857 | E.Transparency = E.Transparency + 0.1 | |
| 858 | end | |
| 859 | end | |
| 860 | end | |
| 861 | for e = 1, #PITS do | |
| 862 | if PITS[e] ~= nil then | |
| 863 | local E = PITS[e] | |
| 864 | E:remove() | |
| 865 | end | |
| 866 | end | |
| 867 | end)) | |
| 868 | end)) | |
| 869 | for i = 0, 1, 0.1 / Animation_Speed do | |
| 870 | Swait() | |
| 871 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 872 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 873 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 874 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 875 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 876 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 877 | end | |
| 878 | ATTACK = false | |
| 879 | Rooted = false | |
| 880 | end | |
| 881 | end | |
| 882 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 883 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Ice White"), "Effect", VT(1,1,1), true)
| |
| 884 | local mesh = IT("SpecialMesh",wave)
| |
| 885 | mesh.MeshType = "Sphere" | |
| 886 | mesh.Scale = SIZE | |
| 887 | mesh.Offset = VT(0,0,0) | |
| 888 | wave.CFrame = CFRAME | |
| 889 | coroutine.resume(coroutine.create(function(PART) | |
| 890 | for i = 1, WAIT do | |
| 891 | Swait() | |
| 892 | mesh.Scale = mesh.Scale + GROW | |
| 893 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 894 | if wave.Transparency > 0.99 then | |
| 895 | wave:remove() | |
| 896 | end | |
| 897 | end | |
| 898 | end)) | |
| 899 | end | |
| 900 | Player_Size = 1 | |
| 901 | function DeathAgreement() | |
| 902 | ATTACK = true | |
| 903 | Rooted = false | |
| 904 | local SPEED = Speed | |
| 905 | Speed = 10 | |
| 906 | CreateSound("926261373", Torso, 8, 1)
| |
| 907 | for i=0, 0, 0.1 / Animation_Speed do | |
| 908 | Swait() | |
| 909 | turnto(Mouse.Hit.p) | |
| 910 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Magenta",VT(-1/15,-1/15,-1/15)) | |
| 911 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Magenta",VT(-2/15,-2/15,-2/15)) | |
| 912 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
| 913 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 914 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 915 | end | |
| 916 | for i=0, 0.15, 0.1 / Animation_Speed do | |
| 917 | Swait() | |
| 918 | turnto(Mouse.Hit.p) | |
| 919 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
| 920 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 921 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 922 | ||
| 923 | end | |
| 924 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Ice White", "Punch", VT(50,50,50),false) | |
| 925 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
| 926 | PART.Shape = "Ball" | |
| 927 | local bv = Instance.new("BodyVelocity")
| |
| 928 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 929 | bv.velocity = RootPart.CFrame.lookVector*600 | |
| 930 | bv.Parent = PART | |
| 931 | bv.Name = "PROJECTILEVELOCITY" | |
| 932 | coroutine.resume(coroutine.create(function() | |
| 933 | for i = 1, 10 do | |
| 934 | Swait() | |
| 935 | PART.Transparency = PART.Transparency + 0.2/10 | |
| 936 | PART.Size = PART.Size + VT(5,5,5) | |
| 937 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
| 938 | end | |
| 939 | PART:Destroy() | |
| 940 | end)) | |
| 941 | for i=0, 1, 0.1 / Animation_Speed do | |
| 942 | Swait() | |
| 943 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
| 944 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
| 945 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 946 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 947 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 948 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 949 | end | |
| 950 | Speed = SPEED | |
| 951 | ATTACK = false | |
| 952 | Rooted = false | |
| 953 | end | |
| 954 | function Kill(Char) | |
| 955 | local NewCharacter = IT("Model",Effects)
| |
| 956 | NewCharacter.Name = "Ow im ded ;-;" | |
| 957 | for _, c in pairs(Char:GetDescendants()) do | |
| 958 | if c:IsA("BasePart") and c.Transparency == 0 then
| |
| 959 | if c.Parent == Char then | |
| 960 | ||
| 961 | end | |
| 962 | c:BreakJoints() | |
| 963 | c.Material = "Glass" | |
| 964 | c.Color = C3(255/255,255/0,255/255) | |
| 965 | c.CanCollide = true | |
| 966 | c.Transparency = 0.3 | |
| 967 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 968 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 969 | end | |
| 970 | if c.Name == "Head" then | |
| 971 | c:ClearAllChildren() | |
| 972 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
| 973 | end | |
| 974 | if c.ClassName == "MeshPart" then | |
| 975 | c.TextureID = "" | |
| 976 | end | |
| 977 | if c:FindFirstChildOfClass("BodyPosition") then
| |
| 978 | c:FindFirstChildOfClass("BodyPosition"):remove()
| |
| 979 | end | |
| 980 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 981 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 982 | end | |
| 983 | c.Parent = NewCharacter | |
| 984 | c.Name = "DeadPart" | |
| 985 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
| 986 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
| 987 | end | |
| 988 | end | |
| 989 | Char:remove() | |
| 990 | Debris:AddItem(NewCharacter,5) | |
| 991 | end | |
| 992 | INSTAKILL = true | |
| 993 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
| 994 | local CHILDREN = workspace:GetDescendants() | |
| 995 | for index, CHILD in pairs(CHILDREN) do | |
| 996 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 997 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 998 | if HUM then | |
| 999 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1000 | if TORSO then | |
| 1001 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1002 | if BRUTAL == true then | |
| 1003 | Kill(CHILD) | |
| 1004 | else | |
| 1005 | CHILD:BreakJoints() | |
| 1006 | end | |
| 1007 | end | |
| 1008 | end | |
| 1009 | end | |
| 1010 | end | |
| 1011 | end | |
| 1012 | end | |
| 1013 | function Morning_Star() | |
| 1014 | ATTACK = true | |
| 1015 | Rooted = true | |
| 1016 | ||
| 1017 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1018 | Swait() | |
| 1019 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1020 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1021 | end | |
| 1022 | coroutine.resume(coroutine.create(function() | |
| 1023 | local POS = Mouse.Hit.p | |
| 1024 | ||
| 1025 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Ice White", "Strike", VT(0,0,0)) | |
| 1026 | MakeForm(SPHERE,"Ball") | |
| 1027 | ||
| 1028 | ||
| 1029 | ||
| 1030 | SPHERE.CFrame = CF(POS) | |
| 1031 | CreateSound(144699494, SPHERE, 10, 0.8, false) | |
| 1032 | CreateSound(1146688617, SPHERE, 10, 0.8, false) | |
| 1033 | for i = 1, 200 do | |
| 1034 | Swait() | |
| 1035 | ||
| 1036 | ||
| 1037 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
| 1038 | ||
| 1039 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
| 1040 | end | |
| 1041 | for i = 1, 45 do | |
| 1042 | Swait() | |
| 1043 | ||
| 1044 | SPHERE.Transparency = SPHERE.Transparency + 1/45 | |
| 1045 | ||
| 1046 | end | |
| 1047 | ||
| 1048 | ||
| 1049 | SPHERE:remove() | |
| 1050 | end)) | |
| 1051 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1052 | Swait() | |
| 1053 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
| 1054 | end | |
| 1055 | ATTACK = false | |
| 1056 | Rooted = false | |
| 1057 | end | |
| 1058 | function KillChildren(Char) | |
| 1059 | local NewCharacter = IT("Model",Effects)
| |
| 1060 | NewCharacter.Name = "Ow im ded ;-;" | |
| 1061 | for _, c in pairs(Char:GetDescendants()) do | |
| 1062 | if c:IsA("BasePart") and c.Transparency == 0 then
| |
| 1063 | if c.Parent == Char then | |
| 1064 | ||
| 1065 | end | |
| 1066 | c:BreakJoints() | |
| 1067 | c.Material = "Glass" | |
| 1068 | c.Color = C3(255/255,255/0,255/255) | |
| 1069 | c.CanCollide = true | |
| 1070 | c.Transparency = 0.3 | |
| 1071 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 1072 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 1073 | end | |
| 1074 | if c.Name == "Head" then | |
| 1075 | c:ClearAllChildren() | |
| 1076 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
| 1077 | end | |
| 1078 | if c.ClassName == "MeshPart" then | |
| 1079 | c.TextureID = "" | |
| 1080 | end | |
| 1081 | if c:FindFirstChildOfClass("BodyPosition") then
| |
| 1082 | c:FindFirstChildOfClass("BodyPosition"):remove()
| |
| 1083 | end | |
| 1084 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 1085 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 1086 | end | |
| 1087 | c.Parent = NewCharacter | |
| 1088 | c.Name = "DeadPart" | |
| 1089 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
| 1090 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
| 1091 | end | |
| 1092 | end | |
| 1093 | Char:remove() | |
| 1094 | Debris:AddItem(NewCharacter,5) | |
| 1095 | end | |
| 1096 | ||
| 1097 | ||
| 1098 | local Decal = IT("Decal")
| |
| 1099 | BODY = {}
| |
| 1100 | function Teleport() | |
| 1101 | ATTACK = true | |
| 1102 | Rooted = false | |
| 1103 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1104 | Swait() | |
| 1105 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1106 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1107 | end | |
| 1108 | for e = 1, #BODY do | |
| 1109 | if BODY[e] ~= nil then | |
| 1110 | local STUFF = BODY[e] | |
| 1111 | local PART = STUFF[1] | |
| 1112 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
| |
| 1113 | local PRT = PART:Clone() | |
| 1114 | PRT.Anchored = true | |
| 1115 | PRT.CanCollide = false | |
| 1116 | PRT.Material = "Neon" | |
| 1117 | PRT.Color = C3(255/255,255/0,255/255) | |
| 1118 | PRT.Name = "WarpEffect" | |
| 1119 | PRT.Parent = Effects | |
| 1120 | PRT.CFrame = PART.CFrame | |
| 1121 | PRT:BreakJoints() | |
| 1122 | if PRT:FindFirstChildOfClass("Sound") then
| |
| 1123 | PRT:FindFirstChildOfClass("Sound"):remove()
| |
| 1124 | end | |
| 1125 | if PRT:FindFirstChildOfClass("Decal") then
| |
| 1126 | PRT:FindFirstChildOfClass("Decal"):remove()
| |
| 1127 | end | |
| 1128 | coroutine.resume(coroutine.create(function() | |
| 1129 | for i = 1, 100 do | |
| 1130 | Swait() | |
| 1131 | PRT.Transparency = PRT.Transparency + 1/100 | |
| 1132 | end | |
| 1133 | PRT:remove() | |
| 1134 | end)) | |
| 1135 | end | |
| 1136 | end | |
| 1137 | end | |
| 1138 | CreateSound(217767125, Torso, 10, 1) | |
| 1139 | local POS = RootPart.Orientation | |
| 1140 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
| 1141 | RootPart.Orientation = POS | |
| 1142 | RootJoint.Parent = RootPart | |
| 1143 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1144 | Swait() | |
| 1145 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1146 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 1147 | end | |
| 1148 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1149 | Swait() | |
| 1150 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
| 1151 | end | |
| 1152 | ATTACK = false | |
| 1153 | Rooted = false | |
| 1154 | end | |
| 1155 | function TAUNT1() | |
| 1156 | ATTACK = true | |
| 1157 | Humanoid.WalkSpeed = 0 | |
| 1158 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8) | |
| 1159 | wait(2.5) | |
| 1160 | for i = 0,12.5,0.08 do | |
| 1161 | Swait() | |
| 1162 | RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * COS(SINE / 2)) * ANGLES(RAD(-30), RAD(0), RAD(0)), 0.15) | |
| 1163 | Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(RAD(-30 - 2.5 * SIN(SINE / 2)), RAD(0), RAD(0)), 0.3) | |
| 1164 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * RHCF * ANGLES(RAD(-4.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(-30)), 0.15) | |
| 1165 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * LHCF * ANGLES(RAD(-6.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(30)), 0.15) | |
| 1166 | end | |
| 1167 | ATTACK = false | |
| 1168 | Humanoid.WalkSpeed = 20 | |
| 1169 | end | |
| 1170 | function Petrify(Foe) | |
| 1171 | local STONEMODEL = IT("Model", Effects)
| |
| 1172 | local CHILDREN = Foe:GetDescendants() | |
| 1173 | for index, CHILD in pairs(CHILDREN) do | |
| 1174 | if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
| |
| 1175 | CHILD.Parent = STONEMODEL | |
| 1176 | CHILD.Material = "Neon" | |
| 1177 | CHILD.Color = C3(0, 0, 0) | |
| 1178 | if CHILD:FindFirstChildOfClass("SpecialMesh") then
| |
| 1179 | local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
| |
| 1180 | mesh.TextureId = "" | |
| 1181 | end | |
| 1182 | if CHILD:FindFirstChildOfClass("Decal") then
| |
| 1183 | local mesh = CHILD:FindFirstChildOfClass("Decal")
| |
| 1184 | mesh:remove() | |
| 1185 | end | |
| 1186 | if CHILD.ClassName == "MeshPart" then | |
| 1187 | CHILD.TextureID = "" | |
| 1188 | end | |
| 1189 | if CHILD.ClassName == "UnionOperation" then | |
| 1190 | CHILD.UsePartColor = true | |
| 1191 | end | |
| 1192 | CHILD.CanCollide = true | |
| 1193 | end | |
| 1194 | end | |
| 1195 | Debris:AddItem(STONEMODEL, 5) | |
| 1196 | end | |
| 1197 | function Voided() | |
| 1198 | ATTACK = true | |
| 1199 | Rooted = true | |
| 1200 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 1201 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1202 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 1203 | if TORSO then | |
| 1204 | local GYRO = IT("BodyGyro", RootPart)
| |
| 1205 | GYRO.D = 750 | |
| 1206 | GYRO.P = 2000 | |
| 1207 | GYRO.MaxTorque = VT(0, 40000, 0) | |
| 1208 | CreateSound("907329669", Torso, 10, 1)
| |
| 1209 | for i = 0, 1.6, 0.1 / Animation_Speed do | |
| 1210 | Swait() | |
| 1211 | ||
| 1212 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
| 1213 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed) | |
| 1214 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed) | |
| 1215 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1216 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1217 | if ANIM == "Idle" then | |
| 1218 | 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.5 / Animation_Speed) | |
| 1219 | 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.5 / Animation_Speed) | |
| 1220 | elseif ANIM == "Walk" then | |
| 1221 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1222 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1223 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1224 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1226 | end | |
| 1227 | end | |
| 1228 | GYRO:remove() | |
| 1229 | for i = 1, 15 do | |
| 1230 | ||
| 1231 | end | |
| 1232 | local bv = Instance.new("BodyVelocity")
| |
| 1233 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 1234 | bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5 | |
| 1235 | bv.Parent = TORSO | |
| 1236 | Debris:AddItem(bv, 0.05) | |
| 1237 | CreateSound("1222405264", TORSO, 10, 1)
| |
| 1238 | Petrify(HUM.Parent) | |
| 1239 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
| 1240 | Swait() | |
| 1241 | ||
| 1242 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
| 1243 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
| 1244 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed) | |
| 1245 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1246 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1247 | if ANIM == "Idle" then | |
| 1248 | 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.5 / Animation_Speed) | |
| 1249 | 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.5 / Animation_Speed) | |
| 1250 | elseif ANIM == "Walk" then | |
| 1251 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1252 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1253 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1254 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1255 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1256 | end | |
| 1257 | end | |
| 1258 | end | |
| 1259 | end | |
| 1260 | ATTACK = false | |
| 1261 | Rooted = false | |
| 1262 | end | |
| 1263 | ||
| 1264 | function TAUNT2() | |
| 1265 | CreateSound("907329044", Torso, 10, 1)
| |
| 1266 | end | |
| 1267 | function TAUNT3() | |
| 1268 | CreateSound("907329293", Torso, 10, 1)
| |
| 1269 | end | |
| 1270 | function TAUNT4() | |
| 1271 | CreateSound("907332525", Torso, 10, 1)
| |
| 1272 | end | |
| 1273 | function TAUNT5() | |
| 1274 | CreateSound("907333406", Torso, 10, 1)
| |
| 1275 | end | |
| 1276 | function TAUNT6() | |
| 1277 | CreateSound("907330011", Torso, 10, 1)
| |
| 1278 | end | |
| 1279 | function TAUNT7() | |
| 1280 | CreateSound("907329532", Torso, 10, 1)
| |
| 1281 | end | |
| 1282 | function TAUNT8() | |
| 1283 | CreateSound("907328384", Torso, 10, 1)
| |
| 1284 | end | |
| 1285 | function TAUNT9() | |
| 1286 | CreateSound("907333294", Torso, 10, 1)
| |
| 1287 | end | |
| 1288 | function TAUNT0() | |
| 1289 | CreateSound("907332856", Torso, 10, 1)
| |
| 1290 | end | |
| 1291 | function TAUNT10() | |
| 1292 | CreateSound("907332670", Torso, 10, 1)
| |
| 1293 | end | |
| 1294 | function TAUNT11() | |
| 1295 | CreateSound("907332235", Torso, 10, 1)
| |
| 1296 | end | |
| 1297 | function TAUNT12() | |
| 1298 | CreateSound("907332040", Torso, 10, 1)
| |
| 1299 | end | |
| 1300 | function TAUNT13() | |
| 1301 | CreateSound("907331575", Torso, 10, 1)
| |
| 1302 | end | |
| 1303 | function TAUNT14() | |
| 1304 | CreateSound("907331038", Torso, 10, 1)
| |
| 1305 | end | |
| 1306 | function TAUNT15() | |
| 1307 | CreateSound("907330447", Torso, 10, 1)
| |
| 1308 | end | |
| 1309 | function TAUNT16() | |
| 1310 | CreateSound("907330198", Torso, 10, 1)
| |
| 1311 | end | |
| 1312 | function TAUNT17() | |
| 1313 | CreateSound("907329669", Torso, 10, 1)
| |
| 1314 | end | |
| 1315 | function TAUNT18() | |
| 1316 | CreateSound("907332997", Torso, 10, 1)
| |
| 1317 | end | |
| 1318 | function TAUNT19() | |
| 1319 | CreateSound("907328689", Torso, 10, 1)
| |
| 1320 | end | |
| 1321 | function TAUNT20() | |
| 1322 | CreateSound("907328516", Torso, 10, 1)
| |
| 1323 | end | |
| 1324 | function TAUNT21() | |
| 1325 | CreateSound("907328262", Torso, 10, 1)
| |
| 1326 | end | |
| 1327 | function TAUNT22() | |
| 1328 | CreateSound("907328147", Torso, 10, 1)
| |
| 1329 | end | |
| 1330 | function TAUNT23() | |
| 1331 | CreateSound("907331307", Torso, 10, 1)
| |
| 1332 | end | |
| 1333 | ||
| 1334 | local HEADLERP = Instance.new("ManualWeld")
| |
| 1335 | HEADLERP.Parent = Head | |
| 1336 | HEADLERP.Part0 = Head | |
| 1337 | HEADLERP.Part1 = Head | |
| 1338 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1339 | MseGuide = true | |
| 1340 | RunSrv = game:GetService("RunService")
| |
| 1341 | RenderStepped = game:GetService("RunService").RenderStepped
| |
| 1342 | OrgnC0 = Neck.C0 | |
| 1343 | local movelimbs = coroutine.wrap(function() | |
| 1344 | while RunSrv.RenderStepped:wait() do | |
| 1345 | TrsoLV = Torso.CFrame.lookVector | |
| 1346 | Dist = nil | |
| 1347 | Diff = nil | |
| 1348 | if not MseGuide then | |
| 1349 | print("Failed to recognize")
| |
| 1350 | else | |
| 1351 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, Mouse.Hit.lookVector), Workspace, false, true) | |
| 1352 | Dist = (Head.CFrame.p-Point).magnitude | |
| 1353 | Diff = Head.CFrame.Y-Point.Y | |
| 1354 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1355 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
| 1356 | end | |
| 1357 | end | |
| 1358 | end) | |
| 1359 | movelimbs() | |
| 1360 | ||
| 1361 | ||
| 1362 | ||
| 1363 | ||
| 1364 | ||
| 1365 | ||
| 1366 | function MouseDown(Mouse) | |
| 1367 | if ATTACK == false then | |
| 1368 | end | |
| 1369 | end | |
| 1370 | function MouseUp(Mouse) | |
| 1371 | HOLD = false | |
| 1372 | end | |
| 1373 | function KeyDown(Key) | |
| 1374 | KEYHOLD = true | |
| 1375 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
| 1376 | if Key == "z" and ATTACK == false then | |
| 1377 | Voided() | |
| 1378 | ||
| 1379 | elseif Key == "b" and ATTACK == false then | |
| 1380 | Savage_Fire() | |
| 1381 | ||
| 1382 | elseif Key == "c" and ATTACK == false then | |
| 1383 | Grave_Encounter() | |
| 1384 | ||
| 1385 | elseif Key == "x" and ATTACK == false then | |
| 1386 | Morning_Star() | |
| 1387 | ||
| 1388 | elseif Key == "q" and ATTACK == false then | |
| 1389 | Teleport() | |
| 1390 | ||
| 1391 | ||
| 1392 | elseif Key == "r" and ATTACK == false then | |
| 1393 | TAUNT1() | |
| 1394 | elseif Key == "u" and ATTACK == false then | |
| 1395 | TAUNT2() | |
| 1396 | elseif Key == "y" and ATTACK == false then | |
| 1397 | TAUNT3() | |
| 1398 | elseif Key == "j" and ATTACK == false then | |
| 1399 | TAUNT4() | |
| 1400 | elseif Key == "h" and ATTACK == false then | |
| 1401 | TAUNT5() | |
| 1402 | elseif Key == "p" and ATTACK == false then | |
| 1403 | TAUNT6() | |
| 1404 | elseif Key == "[" and ATTACK == false then | |
| 1405 | TAUNT7() | |
| 1406 | elseif Key == "]" and ATTACK == false then | |
| 1407 | TAUNT8() | |
| 1408 | elseif Key == "f" and ATTACK == false then | |
| 1409 | TAUNT9() | |
| 1410 | elseif Key == "=" and ATTACK == false then | |
| 1411 | TAUNT0() | |
| 1412 | elseif Key == "-" and ATTACK == false then | |
| 1413 | TAUNT10() | |
| 1414 | elseif Key == "g" and ATTACK == false then | |
| 1415 | TAUNT11() | |
| 1416 | elseif Key == "o" and ATTACK == false then | |
| 1417 | TAUNT12() | |
| 1418 | elseif Key == "i" and ATTACK == false then | |
| 1419 | TAUNT13() | |
| 1420 | elseif Key == "7" and ATTACK == false then | |
| 1421 | TAUNT14() | |
| 1422 | elseif Key == "6" and ATTACK == false then | |
| 1423 | TAUNT15() | |
| 1424 | elseif Key == "t" and ATTACK == false then | |
| 1425 | TAUNT16() | |
| 1426 | elseif Key == "4" and ATTACK == false then | |
| 1427 | TAUNT17() | |
| 1428 | elseif Key == "3" and ATTACK == false then | |
| 1429 | TAUNT18() | |
| 1430 | elseif Key == "2" and ATTACK == false then | |
| 1431 | TAUNT19() | |
| 1432 | elseif Key == "1" and ATTACK == false then | |
| 1433 | TAUNT20() | |
| 1434 | elseif Key == "e" and ATTACK == false then | |
| 1435 | TAUNT21() | |
| 1436 | elseif Key == "l" and ATTACK == false then | |
| 1437 | TAUNT22() | |
| 1438 | elseif Key == "k" and ATTACK == false then | |
| 1439 | TAUNT23() | |
| 1440 | end | |
| 1441 | end | |
| 1442 | end | |
| 1443 | function KeyUp(Key) | |
| 1444 | KEYHOLD = false | |
| 1445 | end | |
| 1446 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1447 | MouseDown(NEWKEY) | |
| 1448 | DeathAgreement() | |
| 1449 | end) | |
| 1450 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1451 | MouseUp(NEWKEY) | |
| 1452 | end) | |
| 1453 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1454 | KeyDown(NEWKEY) | |
| 1455 | end) | |
| 1456 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1457 | KeyUp(NEWKEY) | |
| 1458 | end) | |
| 1459 | function unanchor() | |
| 1460 | if UNANCHOR == true then | |
| 1461 | g = Character:GetChildren() | |
| 1462 | for i = 1, #g do | |
| 1463 | if g[i].ClassName == "Part" then | |
| 1464 | g[i].Anchored = false | |
| 1465 | end | |
| 1466 | end | |
| 1467 | end | |
| 1468 | end | |
| 1469 | local FF = IT("ForceField", Character)
| |
| 1470 | FF.Visible = false | |
| 1471 | function refit() | |
| 1472 | RootJoint.Parent = RootPart | |
| 1473 | Neck.Parent = Torso | |
| 1474 | RightShoulder.Parent = Torso | |
| 1475 | LeftShoulder.Parent = Torso | |
| 1476 | RightHip.Parent = Torso | |
| 1477 | LeftHip.Parent = Torso | |
| 1478 | RootPart.Parent = Character | |
| 1479 | LeftArm.Parent = Character | |
| 1480 | RightArm.Parent = Character | |
| 1481 | RightLeg.Parent = Character | |
| 1482 | LeftLeg.Parent = Character | |
| 1483 | Torso.Parent = Character | |
| 1484 | Head.Parent = Character | |
| 1485 | FF.Parent = Character | |
| 1486 | end | |
| 1487 | ||
| 1488 | Humanoid.Changed:connect(function(Jump) | |
| 1489 | if Jump == "Jump" and Disable_Jump == true then | |
| 1490 | Humanoid.Jump = false | |
| 1491 | end | |
| 1492 | end) | |
| 1493 | ||
| 1494 | sick.Parent = Character | |
| 1495 | script.Parent = WEAPONGUI | |
| 1496 | Character.Parent = workspace | |
| 1497 | Humanoid.PlatformStand = false | |
| 1498 | Humanoid.Name = "Unmaker" | |
| 1499 | Humanoid.DisplayDistanceType = "None" | |
| 1500 | Humanoid.HipHeight = 2 | |
| 1501 | Head:ClearAllChildren() | |
| 1502 | ||
| 1503 | Speed = 100 | |
| 1504 | for _, c in pairs(Character:GetChildren()) do | |
| 1505 | if c.ClassName == "Part" then | |
| 1506 | c.Material = "Neon" | |
| 1507 | ||
| 1508 | SIZE = 1 | |
| 1509 | ||
| 1510 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
| 1511 | PRT.Color = C3(0,0,0) | |
| 1512 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
| |
| 1513 | CreateMesh("SpecialMesh", PRT, "FileMesh", "636922328", "636922344", VT(0.06,0.06,0.06)*SIZE, VT(0,0.08,1))
| |
| 1514 | ||
| 1515 | if c == Head then | |
| 1516 | if c:FindFirstChild("Dominus-Aureus-with-two-horns") == nil then
| |
| 1517 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "", "", VT(1.05,1.05,1.05) * 1.05, VT(0,0,0))
| |
| 1518 | M.Name = "Dominus-Aureus-with-two-horns" | |
| 1519 | end | |
| 1520 | if c:FindFirstChild("face") then
| |
| 1521 | c.face:remove() | |
| 1522 | end | |
| 1523 | end | |
| 1524 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" then | |
| 1525 | c:remove() | |
| 1526 | end | |
| 1527 | end | |
| 1528 | Humanoid.MaxHealth = "inf" | |
| 1529 | Humanoid.Health = "inf" | |
| 1530 | ||
| 1531 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 1532 | while true do | |
| 1533 | Swait() | |
| 1534 | ANIMATE.Parent = nil | |
| 1535 | IDLEANIMATION:Play() | |
| 1536 | SINE = SINE + CHANGE | |
| 1537 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1538 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1539 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1540 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
| 1541 | if TORSOVELOCITY < 1 then | |
| 1542 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1543 | ||
| 1544 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1545 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1546 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
| 1547 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(25)), 0.15 / Animation_Speed) | |
| 1548 | elseif TORSOVELOCITY > 1 then | |
| 1549 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(30 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 1550 | ||
| 1551 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1552 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1553 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1554 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1555 | end | |
| 1556 | ||
| 1557 | unanchor() | |
| 1558 | end |