SHOW:
|
|
- or go back to the newest paste.
1 | - | print("Made by SezHu for Void's Script Builder And Leak also edited by zombieslayerwtf.") |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | local rp = RealPlayer | |
6 | script.Parent = rp.Character | |
7 | ||
8 | --RemoteEvent for communicating | |
9 | - | s.SoundId = "http://www.roblox.com/asset/?id=261558095" |
9 | + | local Event = Instance.new("RemoteEvent") |
10 | Event.Name = "UserInput_Event" | |
11 | ||
12 | --Fake event to make stuff like Mouse.KeyDown work | |
13 | local function fakeEvent() | |
14 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
15 | t.connect = t.Connect | |
16 | return t | |
17 | end | |
18 | ||
19 | --Creating fake input objects with fake variables | |
20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
22 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
23 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
24 | end} | |
25 | --Merged 2 functions into one by checking amount of arguments | |
26 | CAS.UnbindAction = CAS.BindAction | |
27 | ||
28 | --This function will trigger the events that have been :Connect()'ed | |
29 | local function te(self,ev,...) | |
30 | local t = m[ev] | |
31 | if t and t._fakeEvent then | |
32 | for _,f in pairs(t.Functions) do | |
33 | f(...) | |
34 | end | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=rp then return end | |
42 | m.Target = io.Target | |
43 | m.Hit = io.Hit | |
44 | if not io.isMouse then | |
45 | local b = io.UserInputState == Enum.UserInputState.Begin | |
46 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
47 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
48 | end | |
49 | for _,t in pairs(CAS.Actions) do | |
50 | for _,k in pairs(t.Keys) do | |
51 | if k==io.KeyCode then | |
52 | t.Function(t.Name,io.UserInputState,io) | |
53 | end | |
54 | end | |
55 | end | |
56 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
58 | end | |
59 | end) | |
60 | Event.Parent = NLS([==[ | |
61 | local Player = game:GetService("Players").LocalPlayer | |
62 | local Event = script:WaitForChild("UserInput_Event") | |
63 | ||
64 | local Mouse = Player:GetMouse() | |
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | --If player is not moving their mouse, client won't fire events | |
77 | while wait(1/30) do | |
78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
79 | h,t=Mouse.Hit,Mouse.Target | |
80 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
81 | end | |
82 | end]==],Player.Character) | |
83 | ||
84 | ----Sandboxed game object that allows the usage of client-side methods and services | |
85 | --Real game object | |
86 | local _rg = game | |
87 | ||
88 | --Metatable for fake service | |
89 | local fsmt = { | |
90 | __index = function(self,k) | |
91 | local s = rawget(self,"_RealService") | |
92 | if s then return s[k] end | |
93 | end, | |
94 | __newindex = function(self,k,v) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then s[k]=v end | |
97 | end, | |
98 | __call = function(self,...) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then return s(...) end | |
101 | end | |
102 | } | |
103 | local function FakeService(t,RealService) | |
104 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
105 | return setmetatable(t,fsmt) | |
106 | end | |
107 | ||
108 | --Fake game object | |
109 | local g = { | |
110 | GetService = function(self,s) | |
111 | return self[s] | |
112 | end, | |
113 | Players = FakeService({ | |
114 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
115 | },"Players"), | |
116 | UserInputService = FakeService(UIS,"UserInputService"), | |
117 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
118 | } | |
119 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
120 | g.service = g.GetService | |
121 | ||
122 | g.RunService = FakeService({ | |
123 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
124 | BindToRenderStep = function(self,name,_,fun) | |
125 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
126 | end, | |
127 | UnbindFromRenderStep = function(self,name) | |
128 | self._btrs[name]:Disconnect() | |
129 | end, | |
130 | },"RunService") | |
131 | ||
132 | setmetatable(g,{ | |
133 | __index=function(self,s) | |
134 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
135 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
136 | end, | |
137 | __newindex = fsmt.__newindex, | |
138 | __call = fsmt.__call | |
139 | }) | |
140 | --Changing owner to fake player object to support owner:GetMouse() | |
141 | game,owner = g,g.Players.LocalPlayer | |
142 | end | |
143 | ||
144 | ||
145 | Effects = {} | |
146 | local s = Instance.new("Sound") | |
147 | ||
148 | s.Name = "Sound" | |
149 | s.SoundId = "http://www.roblox.com/asset/?id=1276031734" | |
150 | s.Volume = 5 | |
151 | s.Looped = true | |
152 | s.archivable = true | |
153 | ||
154 | s.Parent = game.Workspace | |
155 | ||
156 | wait(3) | |
157 | ||
158 | s:play() | |
159 | local Player = game.Players.localPlayer | |
160 | local Character = Player.Character | |
161 | local Humanoid = Character.Humanoid | |
162 | Humanoid.WalkSpeed = 100 | |
163 | local Mouse = Player:GetMouse() | |
164 | local LeftArm = Character["Left Arm"] | |
165 | local RightArm = Character["Right Arm"] | |
166 | local LeftLeg = Character["Left Leg"] | |
167 | local RightLeg = Character["Right Leg"] | |
168 | local Head = Character.Head | |
169 | local Torso = Character.Torso | |
170 | local Camera = game.Workspace.CurrentCamera | |
171 | local RootPart = Character.HumanoidRootPart | |
172 | local RootJoint = RootPart.RootJoint | |
173 | local attack = false | |
174 | local Anim = "Idle" | |
175 | local attacktype = 1 | |
176 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
177 | local velocity = RootPart.Velocity.y | |
178 | local sine = 0 | |
179 | local change = 1 | |
180 | local Create = LoadLibrary("RbxUtility").Create | |
181 | Humanoid.Health = math.huge | |
182 | Instance.new("ForceField", Character).Visible = false | |
183 | hit = nil | |
184 | oof = false | |
185 | for y, t in pairs(Character:GetChildren()) do | |
186 | end | |
187 | DHandle = Instance.new("Part") | |
188 | DMesh = Instance.new("SpecialMesh") | |
189 | DWeld = Instance.new("Weld") | |
190 | DHandle.Parent = Character | |
191 | DHandle.Name = "Handle" | |
192 | DHandle.CanCollide = false | |
193 | DHandle.Locked = true | |
194 | DHandle.Size = Vector3.new(1.93, 1.77, 1.6) | |
195 | DMesh.Parent = DHandle | |
196 | DMesh.Scale = DMesh.Scale | |
197 | DWeld.Parent = DHandle | |
198 | DWeld.Name = "no" | |
199 | DWeld.Part0 = Head | |
200 | DWeld.Part1 = DHandle | |
201 | DWeld.C0 = CFrame.new(0, 0.4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-1), 0, 0) | |
202 | VertexColor = Vector3.new(1, 1, 1) | |
203 | DHandle.Transparency = 0 | |
204 | DMesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
205 | DMesh.TextureId = "http://www.roblox.com/asset/?id=0" | |
206 | local m = Create("Model")({ | |
207 | Parent = Character, | |
208 | Name = "WeaponModel" | |
209 | }) | |
210 | Humanoid.Animator.Parent = nil | |
211 | Character.Animate.Parent = nil | |
212 | local function newMotor(part0, part1, c0, c1) | |
213 | local w = Create("Motor")({ | |
214 | Parent = part0, | |
215 | Part0 = part0, | |
216 | Part1 = part1, | |
217 | C0 = c0, | |
218 | C1 = c1 | |
219 | }) | |
220 | return w | |
221 | end | |
222 | function clerp(a, b, t) | |
223 | return a:lerp(b, t) | |
224 | end | |
225 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
226 | NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
227 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
228 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
229 | local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) | |
230 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) | |
231 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
232 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
233 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
234 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
235 | local rarmc1 = RW.C1 | |
236 | local larmc1 = LW.C1 | |
237 | local rlegc1 = RH.C1 | |
238 | local llegc1 = LH.C1 | |
239 | local resetc1 = false | |
240 | function PlayAnimationFromTable(table, speed, bool) | |
241 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
242 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
243 | RW.C0 = clerp(RW.C0, table[3], speed) | |
244 | LW.C0 = clerp(LW.C0, table[4], speed) | |
245 | RH.C0 = clerp(RH.C0, table[5], speed) | |
246 | LH.C0 = clerp(LH.C0, table[6], speed) | |
247 | if bool == true and resetc1 == false then | |
248 | resetc1 = true | |
249 | RootJoint.C1 = RootJoint.C1 | |
250 | Torso.Neck.C1 = Torso.Neck.C1 | |
251 | RW.C1 = rarmc1 | |
252 | LW.C1 = larmc1 | |
253 | RH.C1 = rlegc1 | |
254 | LH.C1 = llegc1 | |
255 | end | |
256 | end | |
257 | ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"}) | |
258 | script:WaitForChild("Heartbeat") | |
259 | frame = 0.002 | |
260 | tf = 0 | |
261 | allowframeloss = false | |
262 | tossremainder = false | |
263 | lastframe = tick() | |
264 | script.Heartbeat:Fire() | |
265 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
266 | tf = tf + s | |
267 | if tf >= frame then | |
268 | if allowframeloss then | |
269 | script.Heartbeat:Fire() | |
270 | lastframe = tick() | |
271 | else | |
272 | for i = 1, math.floor(tf / frame) do | |
273 | script.Heartbeat:Fire() | |
274 | end | |
275 | lastframe = tick() | |
276 | end | |
277 | if tossremainder then | |
278 | tf = 0 | |
279 | else | |
280 | tf = tf - frame * math.floor(tf / frame) | |
281 | end | |
282 | end | |
283 | end) | |
284 | function swait(num) | |
285 | if num == 0 or num == nil then | |
286 | ArtificialHB.Event:wait() | |
287 | else | |
288 | for i = 0, num do | |
289 | ArtificialHB.Event:wait() | |
290 | end | |
291 | end | |
292 | end | |
293 | function RemoveOutlines(part) | |
294 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
295 | end | |
296 | CFuncs = { | |
297 | Part = { | |
298 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
299 | local Part = Create("Part")({ | |
300 | Parent = Parent, | |
301 | Reflectance = Reflectance, | |
302 | Transparency = Transparency, | |
303 | CanCollide = false, | |
304 | Locked = true, | |
305 | BrickColor = BrickColor.new(tostring(BColor)), | |
306 | Name = Name, | |
307 | Size = Size, | |
308 | Material = Material | |
309 | }) | |
310 | RemoveOutlines(Part) | |
311 | if Size == Vector3.new() then | |
312 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
313 | else | |
314 | Part.Size = Size | |
315 | end | |
316 | return Part | |
317 | end | |
318 | }, | |
319 | Mesh = { | |
320 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
321 | local Msh = Create(Mesh)({ | |
322 | Parent = Part, | |
323 | Offset = OffSet, | |
324 | Scale = Scale | |
325 | }) | |
326 | if Mesh == "SpecialMesh" then | |
327 | Msh.MeshType = MeshType | |
328 | Msh.MeshId = MeshId | |
329 | end | |
330 | return Msh | |
331 | end | |
332 | }, | |
333 | Weld = { | |
334 | Create = function(Parent, Part0, Part1, C0, C1) | |
335 | local Weld = Create("Weld")({ | |
336 | Parent = Parent, | |
337 | Part0 = Part0, | |
338 | Part1 = Part1, | |
339 | C0 = C0, | |
340 | C1 = C1 | |
341 | }) | |
342 | return Weld | |
343 | end | |
344 | }, | |
345 | Sound = { | |
346 | Create = function(id, par, vol, pit) | |
347 | local Sound = Create("Sound")({ | |
348 | Volume = vol, | |
349 | Pitch = pit or 1, | |
350 | SoundId = "rbxassetid://" .. id, | |
351 | Parent = par or workspace | |
352 | }) | |
353 | Sound:play() | |
354 | ||
355 | end | |
356 | }, | |
357 | Decal = { | |
358 | Create = function(Color, Texture, Transparency, Name, Parent) | |
359 | local Decal = Create("Decal")({ | |
360 | Color3 = Color, | |
361 | Texture = "rbxassetid://" .. Texture, | |
362 | Transparency = Transparency, | |
363 | Name = Name, | |
364 | Parent = Parent | |
365 | }) | |
366 | return Decal | |
367 | end | |
368 | }, | |
369 | BillboardGui = { | |
370 | Create = function(Parent, Image, Position, Size) | |
371 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
372 | BillPar.CFrame = CFrame.new(Position) | |
373 | local Bill = Create("BillboardGui")({ | |
374 | Parent = BillPar, | |
375 | Adornee = BillPar, | |
376 | Size = UDim2.new(1, 0, 1, 0), | |
377 | SizeOffset = Vector2.new(Size, Size) | |
378 | }) | |
379 | local d = Create("ImageLabel", Bill)({ | |
380 | Parent = Bill, | |
381 | BackgroundTransparency = 1, | |
382 | Size = UDim2.new(1, 0, 1, 0), | |
383 | Image = "rbxassetid://" .. Image | |
384 | }) | |
385 | return BillPar | |
386 | end | |
387 | }, | |
388 | ParticleEmitter = { | |
389 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
390 | local Particle = Create("ParticleEmitter")({ | |
391 | Parent = Parent, | |
392 | Color = ColorSequence.new(Color1, Color2), | |
393 | LightEmission = LightEmission, | |
394 | Size = Size, | |
395 | Texture = Texture, | |
396 | Transparency = Transparency, | |
397 | ZOffset = ZOffset, | |
398 | Acceleration = Accel, | |
399 | Drag = Drag, | |
400 | LockedToPart = LockedToPart, | |
401 | VelocityInheritance = VelocityInheritance, | |
402 | EmissionDirection = EmissionDirection, | |
403 | Enabled = Enabled, | |
404 | Lifetime = LifeTime, | |
405 | Rate = Rate, | |
406 | Rotation = Rotation, | |
407 | RotSpeed = RotSpeed, | |
408 | Speed = Speed, | |
409 | VelocitySpread = VelocitySpread | |
410 | }) | |
411 | return Particle | |
412 | end | |
413 | }, | |
414 | CreateTemplate = {} | |
415 | } | |
416 | function rayCast(Position, Direction, Range, Ignore) | |
417 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
418 | end | |
419 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
420 | if SinglePlayer then | |
421 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
422 | end | |
423 | local List = {} | |
424 | for i, v in pairs(workspace:GetChildren()) do | |
425 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then | |
426 | table.insert(List, v) | |
427 | end | |
428 | end | |
429 | return List | |
430 | end | |
431 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
432 | if hit.Parent == nil then | |
433 | return | |
434 | end | |
435 | local h = hit.Parent:FindFirstChild("Part") | |
436 | for _, v in pairs(hit.Parent:children()) do | |
437 | if v:IsA("Part") then | |
438 | h = v | |
439 | end | |
440 | end | |
441 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then | |
442 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
443 | return | |
444 | end | |
445 | local c = Create("ObjectValue")({ | |
446 | Name = "creator", | |
447 | Value = game:service("Players").LocalPlayer, | |
448 | Parent = h | |
449 | }) | |
450 | game:GetService("Debris"):AddItem(c, 0.5) | |
451 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
452 | local Damage = math.random(minim, maxim) | |
453 | local blocked = false | |
454 | local block = hit.Parent:findFirstChild("Block") | |
455 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
456 | blocked = true | |
457 | block.Value = block.Value - 1 | |
458 | print(block.Value) | |
459 | end | |
460 | if Type == "Knockdown" then | |
461 | local hum = hit.Parent.Humanoid | |
462 | hum.PlatformStand = true | |
463 | coroutine.resume(coroutine.create(function(HHumanoid) | |
464 | swait(1) | |
465 | HHumanoid.PlatformStand = false | |
466 | end), hum) | |
467 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
468 | local bodvol = Create("BodyVelocity")({ | |
469 | velocity = angle * knockback, | |
470 | P = 5000, | |
471 | maxForce = Vector3.new(8000, 8000, 8000), | |
472 | Parent = hit | |
473 | }) | |
474 | local rl = Create("BodyAngularVelocity")({ | |
475 | P = 3000, | |
476 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
477 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
478 | Parent = hit | |
479 | }) | |
480 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
481 | game:GetService("Debris"):AddItem(rl, 0.5) | |
482 | elseif Type == "Normal" then | |
483 | local vp = Create("BodyVelocity")({ | |
484 | P = 500, | |
485 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
486 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
487 | }) | |
488 | if knockback > 0 then | |
489 | vp.Parent = hit | |
490 | hit.Parent = workspace | |
491 | hit.Anchored = false | |
492 | hit.CanCollide = false | |
493 | hit:BreakJoints() | |
494 | end | |
495 | game:GetService("Debris"):AddItem(vp, 0.5) | |
496 | elseif Type == "Up" then | |
497 | local bodyVelocity = Create("BodyVelocity")({ | |
498 | velocity = Vector3.new(0, 20, 0), | |
499 | P = 5000, | |
500 | maxForce = Vector3.new(8000, 8000, 8000), | |
501 | Parent = hit | |
502 | }) | |
503 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
504 | elseif Type == "DarkUp" then | |
505 | coroutine.resume(coroutine.create(function() | |
506 | for i = 0, 1, 0.1 do | |
507 | swait() | |
508 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1) | |
509 | end | |
510 | end)) | |
511 | local bodyVelocity = Create("BodyVelocity")({ | |
512 | velocity = Vector3.new(0, 20, 0), | |
513 | P = 5000, | |
514 | maxForce = Vector3.new(8000, 8000, 8000), | |
515 | - | text.Text = "A minecraft pro but with a rainbow shovel" |
515 | + | |
516 | }) | |
517 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
518 | elseif Type == "Snare" then | |
519 | local bp = Create("BodyPosition")({ | |
520 | P = 2000, | |
521 | D = 100, | |
522 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
523 | position = hit.Parent.Torso.Position, | |
524 | Parent = hit.Parent.Torso | |
525 | }) | |
526 | game:GetService("Debris"):AddItem(bp, 1) | |
527 | elseif Type == "Freeze" then | |
528 | local BodPos = Create("BodyPosition")({ | |
529 | P = 50000, | |
530 | D = 1000, | |
531 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
532 | position = hit.Parent.Torso.Position, | |
533 | Parent = hit.Parent.Torso | |
534 | }) | |
535 | local BodGy = Create("BodyGyro")({ | |
536 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
537 | P = 20000, | |
538 | Parent = hit.Parent.Torso, | |
539 | cframe = hit.Parent.Torso.CFrame | |
540 | }) | |
541 | hit.Parent.Torso.Anchored = true | |
542 | coroutine.resume(coroutine.create(function(Part) | |
543 | swait(1.5) | |
544 | Part.Anchored = false | |
545 | end), hit.Parent.Torso) | |
546 | game:GetService("Debris"):AddItem(BodPos, 3) | |
547 | game:GetService("Debris"):AddItem(BodGy, 3) | |
548 | end | |
549 | local debounce = Create("BoolValue")({ | |
550 | Name = "DebounceHit", | |
551 | Parent = hit.Parent, | |
552 | Value = true | |
553 | }) | |
554 | game:GetService("Debris"):AddItem(debounce, Delay) | |
555 | c = Create("ObjectValue")({ | |
556 | Name = "creator", | |
557 | Value = Player, | |
558 | Parent = h | |
559 | }) | |
560 | game:GetService("Debris"):AddItem(c, 0.5) | |
561 | end | |
562 | end | |
563 | function ShowDamage(Pos, Text, Time, Color) | |
564 | local Rate = 0.03333333333333333 | |
565 | local Pos = Pos or Vector3.new(0, 0, 0) | |
566 | local Text = Text or "" | |
567 | local Time = Time or 2 | |
568 | local Color = Color or Color3.new(1, 0, 1) | |
569 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
570 | EffectPart.Anchored = true | |
571 | local BillboardGui = Create("BillboardGui")({ | |
572 | Size = UDim2.new(3, 0, 3, 0), | |
573 | Adornee = EffectPart, | |
574 | Parent = EffectPart | |
575 | }) | |
576 | local TextLabel = Create("TextLabel")({ | |
577 | BackgroundTransparency = 1, | |
578 | Size = UDim2.new(1, 0, 1, 0), | |
579 | Text = Text, | |
580 | Font = "Garamond", | |
581 | TextColor3 = Torso.Color, | |
582 | TextScaled = true, | |
583 | Parent = BillboardGui | |
584 | }) | |
585 | game.Debris:AddItem(EffectPart, Time) | |
586 | EffectPart.Parent = game:GetService("Workspace") | |
587 | delay(0, function() | |
588 | local Frames = Time / Rate | |
589 | for Frame = 1, Frames do | |
590 | wait(Rate) | |
591 | local Percent = Frame / Frames | |
592 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
593 | TextLabel.TextTransparency = Percent | |
594 | end | |
595 | if EffectPart and EffectPart.Parent then | |
596 | EffectPart:Destroy() | |
597 | end | |
598 | end) | |
599 | end | |
600 | sound = Instance.new("Sound", Character) | |
601 | sound.SoundId = "rbxassetid://1101468563" | |
602 | sound.Volume = 0 | |
603 | sound.EmitterSize = 25 | |
604 | sound:Play() | |
605 | sound.Looped = true | |
606 | CV = "Maroon" | |
607 | Player = game.Players.LocalPlayer | |
608 | char = Player.Character | |
609 | local txt = Instance.new("BillboardGui", Character) | |
610 | txt.Adornee = Character.Head | |
611 | txt.Name = "_status" | |
612 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
613 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
614 | local text = Instance.new("TextLabel", txt) | |
615 | text.Size = UDim2.new(10, 0, 7, 0) | |
616 | text.FontSize = "Size24" | |
617 | text.TextScaled = true | |
618 | text.TextTransparency = 0 | |
619 | text.BackgroundTransparency = 1 | |
620 | text.TextTransparency = 0 | |
621 | text.TextStrokeTransparency = 1 | |
622 | text.Font = "Cartoon" | |
623 | v = Instance.new("Part") | |
624 | v.Name = "ColorBrick" | |
625 | v.Parent = Player.Character | |
626 | v.FormFactor = "Symmetric" | |
627 | v.Anchored = true | |
628 | v.CanCollide = false | |
629 | v.BottomSurface = "Smooth" | |
630 | v.TopSurface = "Smooth" | |
631 | v.Size = Vector3.new(10, 5, 3) | |
632 | v.Transparency = 1 | |
633 | v.CFrame = Character.Torso.CFrame | |
634 | v.BrickColor = BrickColor.new(CV) | |
635 | v.Transparency = 1 | |
636 | touchCounter = 0 | |
637 | local cR=255 | |
638 | local cG=0 | |
639 | local cB=0 | |
640 | local flg5=1 local omgidk=1 | |
641 | local add=15 | |
642 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
643 | if omgidk>10000 then omgidk=0 end | |
644 | omgidk=omgidk+1 | |
645 | if cR>=255 then flg5=1 end | |
646 | if cG>=255 then flg5=2 end | |
647 | if cB>=255 then flg5=3 end | |
648 | if flg5==1 then cR=cR-add cG=cG+add end | |
649 | if flg5==2 then cG=cG-add cB=cB+add end | |
650 | if flg5==3 then cB=cB-add cR=cR+add end | |
651 | color=Color3.fromRGB(cR,cG,cB) | |
652 | text.TextColor3 = color | |
653 | end) | |
654 | v.Shape = "Block" | |
655 | text.Text = "Random minecraft player with GAY shovel" | |
656 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
657 | for _, c in pairs(workspace:children()) do | |
658 | local hum = c:findFirstChild("Humanoid") | |
659 | if hum ~= nil then | |
660 | local head = hit | |
661 | if head ~= nil then | |
662 | local targ = head.Position - Part.Position | |
663 | local mag = targ.magnitude | |
664 | if Magnitude >= mag and c.Name ~= Player.Name then | |
665 | CFuncs.Sound.Create("324867021", head, 1, 1) | |
666 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch) | |
667 | end | |
668 | end | |
669 | end | |
670 | end | |
671 | end | |
672 | Handle = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 1, "Bright green", "Handle", Vector3.new(1, 1.20000005, 1)) | |
673 | HandleWeld = CFuncs.Weld.Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.435136795, -0.716373444, -0.168147802, -0.184279382, -0.967371345, 0.173878923, -0.0978992507, -0.157963246, -0.982580066, 0.977986097, -0.198091835, -0.0655955523)) | |
674 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part", Vector3.new(1, 1.20000005, 1)) | |
675 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-8.36849213E-5, 4.00039482, -5.86509705E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6)) | |
676 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 1, 0.0500000007)) | |
677 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part1", Vector3.new(1, 1.20000005, 1)) | |
678 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.67979431E-5, -4.00035858, 0.499849081, -0.999994338, 5.56639861E-6, 1.65775418E-6, 5.24974894E-6, 0.999995232, -5.0291419E-6, -3.25776637E-6, -5.08874655E-6, -0.999990761)) | |
679 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0500000007, 1, 0.600000024)) | |
680 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part2", Vector3.new(1, 1.20000005, 1)) | |
681 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.17232513E-5, 3.20031929, -3.71932983E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6)) | |
682 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 0.400000006, 0.0500000007)) | |
683 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part3", Vector3.new(1, 1.20000005, 1)) | |
684 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.48905945E-5, -4.00033379, 0.499926567, 1, -5.21628408E-6, -3.65823939E-6, 5.21626544E-6, 1, -5.09625352E-6, 3.658266E-6, 5.09623442E-6, 1)) | |
685 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0500000007, 1, 0.600000024)) | |
686 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part4", Vector3.new(1, 1.20000005, 1)) | |
687 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.74724579E-5, 2.90030861, -2.95639038E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6)) | |
688 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
689 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part5", Vector3.new(1, 1.20000005, 1)) | |
690 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0976924896, -1.42856026, 1.57356262E-5, 3.90782952E-6, 0.275675088, -0.961250901, 5.61308116E-6, -0.96125102, -0.275675088, -1.00000012, -4.33286186E-6, -5.2973628E-6)) | |
691 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003)) | |
692 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part6", Vector3.new(1, 1.20000005, 1)) | |
693 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.93119049E-5, -0.700065613, 1.33514404E-5, 3.83518636E-6, 8.29994678E-6, -1, 4.9972441E-6, -1.00000012, -8.29994678E-6, -1.00000012, -4.9949158E-6, -3.83518636E-6)) | |
694 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 0.5)) | |
695 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part7", Vector3.new(1, 1.20000005, 1)) | |
696 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0726666451, 1.43006897, 1.62124634E-5, -5.01610339E-6, 0.258840203, 0.96592015, -3.55858356E-6, 0.96592021, -0.258840173, -1.00000012, -4.73321415E-6, -3.92459333E-6)) | |
697 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003)) | |
698 | Part = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 0, "Dark stone grey", "Part8", Vector3.new(1, 1.20000005, 1)) | |
699 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.14848328E-5, 4.36306E-5, 2.00019836, 1, -5.38327731E-6, -2.46055424E-6, -2.4586916E-6, 8.36700201E-6, -1, 5.40760811E-6, 1, 8.37445259E-6)) | |
700 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1, 0.200000003)) | |
701 | Shaft = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "Brown", "Shaft", Vector3.new(0.3, 3.60000014, 0.3)) | |
702 | ShaftWeld = CFuncs.Weld.Create(m, Handle, Shaft, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.21729279E-5, 1.20008087, -2.24113464E-5, 3.14228237E-6, 4.38094139E-6, -1.00000012, 2.94635538E-6, -1, -4.38839197E-6, -1, -2.95066275E-6, -3.14228237E-6)) | |
703 | Hitbox = CFuncs.Part.Create(m, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Hitbox", Vector3.new(7, 3, 3)) | |
704 | HitboxWeld = CFuncs.Weld.Create(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.19377899, -0.184207916, -0.14117223, -5.3447485E-4, 0.99471724, -0.102652542, -0.999858558, 0.00119461119, 0.0167820305, 0.0168160032, 0.102646977, 0.994575679)) | |
705 | sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
706 | sref.Anchored = true | |
707 | local cR=255 | |
708 | local cG=0 | |
709 | local cB=0 | |
710 | local flg5=1 local omgidk=1 | |
711 | local add=15 | |
712 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
713 | if omgidk>10000 then omgidk=0 end | |
714 | omgidk=omgidk+1 | |
715 | if cR>=255 then flg5=1 end | |
716 | if cG>=255 then flg5=2 end | |
717 | if cB>=255 then flg5=3 end | |
718 | if flg5==1 then cR=cR-add cG=cG+add end | |
719 | if flg5==2 then cG=cG-add cB=cB+add end | |
720 | if flg5==3 then cB=cB-add cR=cR+add end | |
721 | color=Color3.fromRGB(cR,cG,cB) | |
722 | local d = Character.WeaponModel | |
723 | d.Shaft.Color = color | |
724 | d.Part.Color = color | |
725 | d.Part1.Color = color | |
726 | d.Part2.Color = color | |
727 | d.Part3.Color = color | |
728 | d.Part4.Color = color | |
729 | d.Part5.Color = color | |
730 | d.Part6.Color = color | |
731 | d.Part7.Color = color | |
732 | d.Part8.Color = color | |
733 | d.Part.Material = Enum.Material.Neon | |
734 | d.Part1.Material = Enum.Material.Neon | |
735 | d.Part2.Material = Enum.Material.Neon | |
736 | d.Part3.Material = Enum.Material.Neon | |
737 | d.Part4.Material = Enum.Material.Neon | |
738 | d.Part5.Material = Enum.Material.Neon | |
739 | d.Part6.Material = Enum.Material.Neon | |
740 | d.Part7.Material = Enum.Material.Neon | |
741 | d.Part8.Material = Enum.Material.Neon | |
742 | end) | |
743 | EffectModel = Create("Model")({Parent = Character, Name = "Effects"}) | |
744 | Effects = { | |
745 | Block = { | |
746 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
747 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
748 | prt.Anchored = true | |
749 | prt.CFrame = cframe | |
750 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
751 | game:GetService("Debris"):AddItem(prt, 10) | |
752 | if Type == 1 or Type == nil then | |
753 | table.insert(Effects, { | |
754 | prt, | |
755 | "Block1", | |
756 | delay, | |
757 | x3, | |
758 | y3, | |
759 | z3, | |
760 | msh | |
761 | }) | |
762 | elseif Type == 2 then | |
763 | table.insert(Effects, { | |
764 | prt, | |
765 | "Block2", | |
766 | delay, | |
767 | x3, | |
768 | y3, | |
769 | z3, | |
770 | msh | |
771 | }) | |
772 | end | |
773 | end | |
774 | }, | |
775 | Cylinder = { | |
776 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
777 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
778 | prt.Anchored = true | |
779 | prt.CFrame = cframe | |
780 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
781 | game:GetService("Debris"):AddItem(prt, 2) | |
782 | table.insert(Effects, { | |
783 | prt, | |
784 | "Cylinder", | |
785 | delay, | |
786 | x3, | |
787 | y3, | |
788 | z3, | |
789 | msh | |
790 | }) | |
791 | end | |
792 | }, | |
793 | Head = { | |
794 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
795 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
796 | prt.Anchored = true | |
797 | prt.CFrame = cframe | |
798 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
799 | game:GetService("Debris"):AddItem(prt, 10) | |
800 | table.insert(Effects, { | |
801 | prt, | |
802 | "Cylinder", | |
803 | delay, | |
804 | x3, | |
805 | y3, | |
806 | z3, | |
807 | msh | |
808 | }) | |
809 | end | |
810 | }, | |
811 | Sphere = { | |
812 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
813 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
814 | prt.Anchored = true | |
815 | prt.CFrame = cframe | |
816 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
817 | game:GetService("Debris"):AddItem(prt, 10) | |
818 | table.insert(Effects, { | |
819 | prt, | |
820 | "Cylinder", | |
821 | delay, | |
822 | x3, | |
823 | y3, | |
824 | z3, | |
825 | msh | |
826 | }) | |
827 | end | |
828 | }, | |
829 | Elect = { | |
830 | Create = function(cff, x, y, z) | |
831 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1)) | |
832 | prt.Anchored = true | |
833 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
834 | prt.CFrame = CFrame.new(prt.Position) | |
835 | game:GetService("Debris"):AddItem(prt, 2) | |
836 | local xval = math.random() / 2 | |
837 | local yval = math.random() / 2 | |
838 | local zval = math.random() / 2 | |
839 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
840 | table.insert(Effects, { | |
841 | prt, | |
842 | "Elec", | |
843 | 0.1, | |
844 | x, | |
845 | y, | |
846 | z, | |
847 | xval, | |
848 | yval, | |
849 | zval | |
850 | }) | |
851 | end | |
852 | }, | |
853 | Ring = { | |
854 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
855 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
856 | prt.Anchored = true | |
857 | prt.CFrame = cframe | |
858 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
859 | game:GetService("Debris"):AddItem(prt, 10) | |
860 | table.insert(Effects, { | |
861 | prt, | |
862 | "Cylinder", | |
863 | delay, | |
864 | x3, | |
865 | y3, | |
866 | z3, | |
867 | msh | |
868 | }) | |
869 | end | |
870 | }, | |
871 | Wave = { | |
872 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
873 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
874 | prt.Anchored = true | |
875 | prt.CFrame = cframe | |
876 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
877 | game:GetService("Debris"):AddItem(prt, 10) | |
878 | table.insert(Effects, { | |
879 | prt, | |
880 | "Cylinder", | |
881 | delay, | |
882 | x3, | |
883 | y3, | |
884 | z3, | |
885 | msh | |
886 | }) | |
887 | end | |
888 | }, | |
889 | Break = { | |
890 | Create = function(brickcolor, cframe, x1, y1, z1) | |
891 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
892 | prt.Anchored = true | |
893 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
894 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
895 | local num = math.random(10, 50) / 1000 | |
896 | game:GetService("Debris"):AddItem(prt, 10) | |
897 | table.insert(Effects, { | |
898 | prt, | |
899 | "Shatter", | |
900 | num, | |
901 | prt.CFrame, | |
902 | math.random() - math.random(), | |
903 | 0, | |
904 | math.random(50, 100) / 100 | |
905 | }) | |
906 | end | |
907 | }, | |
908 | Fire = { | |
909 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
910 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
911 | prt.Anchored = true | |
912 | prt.CFrame = cframe | |
913 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
914 | game:GetService("Debris"):AddItem(prt, 10) | |
915 | table.insert(Effects, { | |
916 | prt, | |
917 | "Fire", | |
918 | delay, | |
919 | 1, | |
920 | 1, | |
921 | 1, | |
922 | msh | |
923 | }) | |
924 | end | |
925 | }, | |
926 | FireWave = { | |
927 | Create = function(brickcolor, cframe, x1, y1, z1) | |
928 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
929 | prt.Anchored = true | |
930 | prt.CFrame = cframe | |
931 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
932 | local d = Create("Decal")({ | |
933 | Parent = prt, | |
934 | Texture = "rbxassetid://26356434", | |
935 | Face = "Top" | |
936 | }) | |
937 | local d = Create("Decal")({ | |
938 | Parent = prt, | |
939 | Texture = "rbxassetid://26356434", | |
940 | Face = "Bottom" | |
941 | }) | |
942 | game:GetService("Debris"):AddItem(prt, 10) | |
943 | table.insert(Effects, { | |
944 | prt, | |
945 | "FireWave", | |
946 | 1, | |
947 | 30, | |
948 | math.random(400, 600) / 100, | |
949 | msh | |
950 | }) | |
951 | end | |
952 | }, | |
953 | Lightning = { | |
954 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
955 | local magz = (p0 - p1).magnitude | |
956 | local curpos = p0 | |
957 | local trz = { | |
958 | -ofs, | |
959 | ofs | |
960 | } | |
961 | for i = 1, tym do | |
962 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
963 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
964 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
965 | li.Material = "Neon" | |
966 | if tym == i then | |
967 | local magz2 = (curpos - p1).magnitude | |
968 | li.Size = Vector3.new(th, th, magz2) | |
969 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
970 | table.insert(Effects, { | |
971 | li, | |
972 | "Disappear", | |
973 | last | |
974 | }) | |
975 | else | |
976 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
977 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
978 | game.Debris:AddItem(li, 10) | |
979 | table.insert(Effects, { | |
980 | li, | |
981 | "Disappear", | |
982 | last | |
983 | }) | |
984 | end | |
985 | end | |
986 | end | |
987 | }, | |
988 | EffectTemplate = {} | |
989 | } | |
990 | function ears() | |
991 | local quote = math.random(1, 10) | |
992 | if quote == 1 then | |
993 | ow = CFuncs.Sound.Create("276916733", Character, 10, 1) | |
994 | Instance.new("DistortionSoundEffect", ow).Level = 0.95 | |
995 | elseif quote == 2 then | |
996 | ow = CFuncs.Sound.Create("222045669", Character, 10, 1) | |
997 | Instance.new("DistortionSoundEffect", ow).Level = 0.95 | |
998 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "I played college ball yaknow", 1.5, BrickColor.new("Grey").Color) | |
999 | elseif quote == 3 then | |
1000 | ow = CFuncs.Sound.Create("657527128", Character, 10, 1) | |
1001 | Instance.new("DistortionSoundEffect", ow).Level = 0.95 | |
1002 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "Oof", 1.5, BrickColor.new("Grey").Color) | |
1003 | elseif quote == 4 then | |
1004 | CFuncs.Sound.Create("230292394", Character, 10, 1) | |
1005 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "AAAAAH", 1.5, BrickColor.new("Grey").Color) | |
1006 | elseif quote == 5 then | |
1007 | CFuncs.Sound.Create("230255621", Character, 10, 1) | |
1008 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "SO", 1.5, BrickColor.new("Grey").Color) | |
1009 | wait(0.2) | |
1010 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "DAH", 1.5, BrickColor.new("Grey").Color) | |
1011 | elseif quote == 6 then | |
1012 | CFuncs.Sound.Create("230255698", Character, 10, 1) | |
1013 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "Y E S", 1.5, BrickColor.new("Grey").Color) | |
1014 | elseif quote == 7 then | |
1015 | CFuncs.Sound.Create("230255738", Character, 10, 1) | |
1016 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "OH", 1.5, BrickColor.new("Grey").Color) | |
1017 | elseif quote == 8 then | |
1018 | CFuncs.Sound.Create("230292118", Character, 10, 1) | |
1019 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "AAAAAAAA", 1.5, BrickColor.new("Grey").Color) | |
1020 | elseif quote == 9 then | |
1021 | CFuncs.Sound.Create("230292073", Character, 10, 1) | |
1022 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "UWEEEEEEEEEEH", 1.5, BrickColor.new("Grey").Color) | |
1023 | elseif quote == 10 then | |
1024 | ow = CFuncs.Sound.Create("225279648", Character, 10, 1) | |
1025 | Instance.new("DistortionSoundEffect", ow).Level = 0.95 | |
1026 | ShowDamage(Head.CFrame * CFrame.new(0, 0, Head.Size.Z / 2).p + Vector3.new(0, 1.5, 0), "help", 1.5, BrickColor.new("Grey").Color) | |
1027 | end | |
1028 | end | |
1029 | function joj() | |
1030 | while oof == true do | |
1031 | attack = true | |
1032 | local con = Hitbox.Touched:connect(function(hit) | |
1033 | Damage(Hitbox, hit, 0, 0, math.random(300, 300), "Normal", RootPart, 0.1, "146163534", 1) | |
1034 | end) | |
1035 | CFuncs.Sound.Create("1102186681", Hitbox, 10, 1) | |
1036 | for i = 0, 1, 0.1 do | |
1037 | swait() | |
1038 | PlayAnimationFromTable({ | |
1039 | CFrame.new(0.318533748, 1.11758709E-8, -0.186876655, 0.571150839, -0.107324705, 0.813798547, -0.321393877, 0.883022606, 0.342018932, -0.755309701, -0.456894249, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1040 | CFrame.new(-0.136643112, 1.46224117, -0.102674514, 0.571150839, -0.321393877, -0.755309701, -0.107324705, 0.883022606, -0.456894249, 0.813798547, 0.342018932, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1041 | CFrame.new(1.34420753, 1.19733691, -0.575926542, -0.0377464592, -0.0365618169, 0.998618245, -0.0365605801, -0.998610795, -0.0379435122, 0.998618245, -0.0379423201, 0.0363572836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1042 | CFrame.new(-1.54852927, 1.0183481, -0.403962731, 0.992945313, -0.0193823874, 0.11697869, 0.0193829238, -0.946746707, -0.321395338, 0.116978586, 0.321395338, -0.93969202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1043 | CFrame.new(1.30056286, -1.52663183, -0.684036016, 0.872286201, -0.321393877, -0.368541837, 0.13550131, 0.883022606, -0.449344397, 0.469847292, 0.342018932, 0.813797712) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1044 | CFrame.new(-0.0819230229, -1.98630714, -0.796365142, 0.843013644, -0.321393877, 0.431316614, 0.431316495, 0.883022606, -0.185032547, -0.321394026, 0.342018932, 0.883022547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1045 | }, 0.3, false) | |
1046 | end | |
1047 | for i = 0, 1, 0.1 do | |
1048 | swait() | |
1049 | PlayAnimationFromTable({ | |
1050 | CFrame.new(-0.70452857, 1.34110451E-7, -0.85472101, 0.0479760207, 0.375900865, -0.925417125, -0.321394145, 0.883022726, 0.342018545, 0.945729494, 0.281014919, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1051 | CFrame.new(-0.332258016, 1.42813265, -0.198432297, 0.0479760207, -0.321394145, 0.945729494, 0.375900865, 0.883022726, 0.281014919, -0.925417125, 0.342018545, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1052 | CFrame.new(1.3427434, 0.740131199, -1.01291919, 0.0505371541, -0.0144109726, 0.998618364, 0.883102953, 0.467642725, -0.0379427671, -0.466449738, 0.883800209, 0.0363596678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1053 | CFrame.new(-1.46270001, 0.38253215, -1.0271579, 0.992945492, -0.11697793, -0.01938124, 0.0193838775, 0.321395963, -0.946746528, 0.116977483, 0.939691901, 0.321396172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1054 | CFrame.new(1.30056417, -1.52663159, -0.684035659, 0.872286379, -0.321394145, -0.368541002, 0.1355021, 0.883022726, -0.449344009, 0.469846606, 0.342018545, 0.813798249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1055 | CFrame.new(-0.0819211155, -1.98630702, -0.796365023, 0.84301424, -0.321394145, 0.431315303, 0.431316257, 0.883022726, -0.18503274, -0.321392775, 0.342018545, 0.883023262) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1056 | }, 0.3, false) | |
1057 | end | |
1058 | con:Disconnect() | |
1059 | attack = false | |
1060 | end | |
1061 | end | |
1062 | Mouse.Button1Down:connect(function() | |
1063 | if attack == false and oof == false then | |
1064 | oof = true | |
1065 | joj() | |
1066 | end | |
1067 | end) | |
1068 | Mouse.Button1Up:connect(function() | |
1069 | if attack == true and oof == true then | |
1070 | oof = false | |
1071 | end | |
1072 | end) | |
1073 | Mouse.KeyDown:connect(function(k) | |
1074 | k = k:lower() | |
1075 | if k == "t" then | |
1076 | ears() | |
1077 | end | |
1078 | end) | |
1079 | while true do | |
1080 | swait() | |
1081 | sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0) | |
1082 | for i, v in pairs(Character:GetChildren()) do | |
1083 | if v:IsA("Part") then | |
1084 | v.Material = "SmoothPlastic" | |
1085 | elseif v:IsA("Accessory") then | |
1086 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1087 | end | |
1088 | end | |
1089 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1090 | velocity = RootPart.Velocity.y | |
1091 | sine = sine + change | |
1092 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
1093 | if RootPart.Velocity.y > 1 and hit == nil then | |
1094 | Anim = "Jump" | |
1095 | if attack == false then | |
1096 | PlayAnimationFromTable({ | |
1097 | CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1098 | CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, 0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1099 | CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1100 | CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1101 | CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392E-7, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1102 | CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1103 | }, 0.3, false) | |
1104 | end | |
1105 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1106 | Anim = "Fall" | |
1107 | if attack == false then | |
1108 | PlayAnimationFromTable({ | |
1109 | CFrame.new(0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1110 | CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1111 | CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1112 | CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1113 | CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1114 | CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1115 | }, 0.3, false) | |
1116 | end | |
1117 | elseif Torsovelocity < 1 and hit ~= nil then | |
1118 | Anim = "Idle" | |
1119 | if attack == false then | |
1120 | change = 1 | |
1121 | PlayAnimationFromTable({ | |
1122 | CFrame.new(1.90734863E-6, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1123 | CFrame.new(-1.90734863E-6, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1124 | CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1125 | CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, 0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1126 | CFrame.new(0.699996471, -1.87938261, -0.684038877, 0.866025388, 0, -0.500000238, -0.171010032, 0.939692736, -0.296197921, 0.469846606, 0.342019886, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1127 | CFrame.new(-0.756342053, -1.83849907, -0.79636544, 0.939692736, 0, 0.342019886, 0.116977625, 0.939692736, -0.321393639, -0.321393639, 0.342019886, 0.883022428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1128 | }, 0.3, false) | |
1129 | end | |
1130 | elseif Torsovelocity > 2 and hit ~= nil then | |
1131 | Anim = "Walk" | |
1132 | if attack == false then | |
1133 | change = 2 | |
1134 | PlayAnimationFromTable({ | |
1135 | CFrame.new(1.90734863E-6, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1136 | CFrame.new(-1.90734863E-6, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1137 | CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1138 | CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, 0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1139 | CFrame.new(0.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)), | |
1140 | CFrame.new(-0.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)) | |
1141 | }, 0.3, false) | |
1142 | end | |
1143 | end | |
1144 | if 0 < #Effects then | |
1145 | for e = 1, #Effects do | |
1146 | if Effects[e] ~= nil then | |
1147 | local Thing = Effects[e] | |
1148 | if Thing ~= nil then | |
1149 | local Part = Thing[1] | |
1150 | local Mode = Thing[2] | |
1151 | local Delay = Thing[3] | |
1152 | local IncX = Thing[4] | |
1153 | local IncY = Thing[5] | |
1154 | local IncZ = Thing[6] | |
1155 | if Thing[2] == "Shoot" then | |
1156 | local Look = Thing[1] | |
1157 | local move = 5 | |
1158 | local hit, pos = rayCast(Thing[4], Thing[1], move, Character) | |
1159 | if Thing[10] ~= nil then | |
1160 | da = pos | |
1161 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
1162 | cfa = CFrame.new(Thing[4], pos) | |
1163 | tehCF = cfa:lerp(cf2, 0.2) | |
1164 | Thing[1] = tehCF.lookVector | |
1165 | end | |
1166 | local mag = (Thing[4] - pos).magnitude | |
1167 | Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4) | |
1168 | Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15) | |
1169 | Thing[4] = Thing[4] + Look * move | |
1170 | Thing[3] = Thing[3] - 1 | |
1171 | if 2 < Thing[5] then | |
1172 | Thing[5] = Thing[5] - 0.3 | |
1173 | Thing[6] = Thing[6] - 0.3 | |
1174 | end | |
1175 | if hit ~= nil then | |
1176 | Thing[3] = 0 | |
1177 | MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8) | |
1178 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1179 | ref.Anchored = true | |
1180 | ref.CFrame = CFrame.new(pos) | |
1181 | Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, 0.05) | |
1182 | Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03) | |
1183 | game:GetService("Debris"):AddItem(ref, 1) | |
1184 | end | |
1185 | end | |
1186 | end | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | end | |
1191 | while true do | |
1192 | game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge | |
1193 | wait() | |
1194 | game.Players.LocalPlayer.Character.Humanoid.Health = math.huge | |
1195 | end |