SHOW:
|
|
- or go back to the newest paste.
1 | - | plr = game.Players.LocalPlayer |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | ||
87 | local h,t | |
88 | --Give the server mouse data every second frame, but only if the values changed | |
89 | --If player is not moving their mouse, client won't fire events | |
90 | local HB = game:GetService("RunService").Heartbeat | |
91 | while true do | |
92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
93 | h,t=Mouse.Hit,Mouse.Target | |
94 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
95 | end | |
96 | --Wait 2 frames | |
97 | for i=1,2 do | |
98 | HB:Wait() | |
99 | end | |
100 | end]==],script) | |
101 | ||
102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
103 | --Real game object | |
104 | local RealGame = game | |
105 | ||
106 | --Metatable for fake service | |
107 | local FakeService_Metatable = { | |
108 | __index = function(self,k) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then | |
111 | return typeof(s[k])=="function" | |
112 | and function(_,...)return s[k](s,...)end or s[k] | |
113 | end | |
114 | end, | |
115 | __newindex = function(self,k,v) | |
116 | local s = rawget(self,"_RealService") | |
117 | if s then s[k]=v end | |
118 | end | |
119 | } | |
120 | local function FakeService(t,RealService) | |
121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
122 | return setmetatable(t,FakeService_Metatable) | |
123 | end | |
124 | ||
125 | --Fake game object | |
126 | local FakeGame = { | |
127 | GetService = function(self,s) | |
128 | return rawget(self,s) or RealGame:GetService(s) | |
129 | end, | |
130 | Players = FakeService({ | |
131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
132 | },"Players"), | |
133 | UserInputService = FakeService(UIS,"UserInputService"), | |
134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
135 | RunService = FakeService({ | |
136 | _btrs = {}, | |
137 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
138 | BindToRenderStep = function(self,name,_,fun) | |
139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
140 | end, | |
141 | UnbindFromRenderStep = function(self,name) | |
142 | self._btrs[name]:Disconnect() | |
143 | end, | |
144 | },"RunService") | |
145 | } | |
146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
147 | FakeGame.service = FakeGame.GetService | |
148 | FakeService(FakeGame,game) | |
149 | --Changing owner to fake player object to support owner:GetMouse() | |
150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
151 | end | |
152 | ||
153 | plr = owner | |
154 | repeat | |
155 | wait(0.4) | |
156 | until plr.Character | |
157 | chr = plr.Character | |
158 | human = chr:FindFirstChild("Humanoid") | |
159 | mouse = plr:GetMouse() | |
160 | selected = false | |
161 | equipd = false | |
162 | tors = chr.Torso | |
163 | rarm = chr["Right Arm"] | |
164 | larm = chr["Left Arm"] | |
165 | rleg = chr["Right Leg"] | |
166 | lleg = chr["Left Leg"] | |
167 | hrp = chr.HumanoidRootPart | |
168 | head = chr.Head | |
169 | anim = human.Animator | |
170 | activu = false | |
171 | torrent = false | |
172 | boxingu = false | |
173 | Heartbeat = Instance.new("BindableEvent") | |
174 | Heartbeat.Name = "Heartbeat" | |
175 | Heartbeat.Parent = script | |
176 | frame = 0.03333333333333333 | |
177 | tf = 0 | |
178 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
179 | tf = tf + s | |
180 | if tf >= frame then | |
181 | for i = 1, math.floor(tf / frame) do | |
182 | Heartbeat:Fire() | |
183 | end | |
184 | tf = tf - frame * math.floor(tf / frame) | |
185 | end | |
186 | end) | |
187 | function swait(num) | |
188 | if num == 0 or num == nil then | |
189 | Heartbeat.Event:wait() | |
190 | else | |
191 | for i = 1, num do | |
192 | Heartbeat.Event:wait() | |
193 | end | |
194 | end | |
195 | end | |
196 | tool = Instance.new("Tool") | |
197 | tool.CanBeDropped = false | |
198 | tool.RequiresHandle = false | |
199 | tool.TextureId = "rbxassetid://37338767" | |
200 | tool.ToolTip = "hehe yea boi" | |
201 | tool.Name = "fir" | |
202 | tool.Parent = plr.Backpack | |
203 | modz = Instance.new("Model") | |
204 | modz.Name = "memes" | |
205 | modz.Parent = chr | |
206 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
207 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
208 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
209 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
210 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
211 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
212 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
213 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
214 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
215 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
216 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
217 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
218 | RS = tors:FindFirstChild("Right Shoulder") | |
219 | LS = tors:FindFirstChild("Left Shoulder") | |
220 | RH = tors:FindFirstChild("Right Hip") | |
221 | LH = tors:FindFirstChild("Left Hip") | |
222 | RJ = hrp:FindFirstChild("RootJoint") | |
223 | N = tors:FindFirstChild("Neck") | |
224 | cf = CFrame.new | |
225 | ang = CFrame.Angles | |
226 | rd = math.rad | |
227 | rd2 = math.random | |
228 | function nooutline(p) | |
229 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 | |
230 | end | |
231 | function makepart(color, name, reflec, mater, parnt, cfram) | |
232 | local port = Instance.new("Part") | |
233 | port.BrickColor = BrickColor.new(color) | |
234 | port.Name = name | |
235 | port.Transparency = 1 | |
236 | nooutline(port) | |
237 | port.Reflectance = reflec | |
238 | port.Material = mater | |
239 | port.Anchored = false | |
240 | port.CanCollide = false | |
241 | port.Locked = true | |
242 | port.Size = Vector3.new(0.2, 0.2, 0.2) | |
243 | port.Parent = parnt | |
244 | return port | |
245 | end | |
246 | function makemesh(meshtype, scale, meshid, parent) | |
247 | local mes = Instance.new("SpecialMesh") | |
248 | mes.MeshType = meshtype | |
249 | mes.Scale = scale | |
250 | if meshtype == "FileMesh" then | |
251 | mes.MeshId = meshid | |
252 | end | |
253 | mes.Parent = parent | |
254 | return mes | |
255 | end | |
256 | function makeweld(parent, p0, p1, c0, c1) | |
257 | local wel = Instance.new("Weld") | |
258 | wel.Part0 = p0 | |
259 | wel.Part1 = p1 | |
260 | wel.C0 = c0 | |
261 | if c1 ~= nil then | |
262 | wel.C1 = c1 | |
263 | end | |
264 | wel.Parent = parent | |
265 | return wel | |
266 | end | |
267 | function vidp(prnt) | |
268 | local s = Instance.new("ParticleEmitter") | |
269 | s.Enabled = false | |
270 | s.LockedToPart = true | |
271 | s.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
272 | s.LightEmission = 0.6 | |
273 | s.Size = NumberSequence.new({ | |
274 | NumberSequenceKeypoint.new(0, 0.275, 0), | |
275 | NumberSequenceKeypoint.new(0.406, 0.762, 0), | |
276 | NumberSequenceKeypoint.new(0.433, 2.05, 0.75), | |
277 | NumberSequenceKeypoint.new(0.476, 0.625, 0), | |
278 | NumberSequenceKeypoint.new(1, 0.05, 0) | |
279 | }) | |
280 | s.Texture = "rbxassetid://31270182" | |
281 | s.Transparency = NumberSequence.new({ | |
282 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
283 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
284 | NumberSequenceKeypoint.new(1, 1, 0) | |
285 | }) | |
286 | s.Name = "vid" | |
287 | s.Lifetime = NumberRange.new(0.2) | |
288 | s.Rate = 25 | |
289 | s.Speed = NumberRange.new(7, 10) | |
290 | s.VelocitySpread = 360 | |
291 | s.Parent = prnt | |
292 | local s2 = Instance.new("ParticleEmitter") | |
293 | s2.Enabled = false | |
294 | s2.LockedToPart = false | |
295 | s2.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
296 | s2.LightEmission = 0.6 | |
297 | s2.Size = NumberSequence.new({ | |
298 | NumberSequenceKeypoint.new(0, 0, 0), | |
299 | NumberSequenceKeypoint.new(0.853, 0.125, 0.1), | |
300 | NumberSequenceKeypoint.new(1, 0, 0) | |
301 | }) | |
302 | s2.Texture = "rbxassetid://31270182" | |
303 | s2.Transparency = NumberSequence.new({ | |
304 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
305 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
306 | NumberSequenceKeypoint.new(1, 1, 0) | |
307 | }) | |
308 | s2.Name = "vid2" | |
309 | s2.Lifetime = NumberRange.new(0.5) | |
310 | s2.Rate = 150 | |
311 | s2.Speed = NumberRange.new(2, 6) | |
312 | s2.VelocitySpread = 360 | |
313 | s2.Parent = prnt | |
314 | end | |
315 | function glow(tz, paz, length) | |
316 | if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then | |
317 | do | |
318 | local s = Instance.new("Sound") | |
319 | s.SoundId = "rbxassetid://221727606" | |
320 | s.Volume = 0.25 | |
321 | s.Pitch = math.random(9, 11) / 10 | |
322 | s.Parent = paz | |
323 | s:Play() | |
324 | local hmesh = Instance.new("SpecialMesh") | |
325 | hmesh.MeshType = "FileMesh" | |
326 | hmesh.MeshId = "NOSSIN" | |
327 | hmesh.Parent = paz.Parent | |
328 | paz.Transparency = 0.55 | |
329 | paz.vid.Enabled = true | |
330 | paz.vid2.Enabled = true | |
331 | delay(length, function() | |
332 | paz.Transparency = 1 | |
333 | paz.vid.Enabled = false | |
334 | paz.vid2.Enabled = false | |
335 | hmesh:Destroy() | |
336 | s:Destroy() | |
337 | end) | |
338 | end | |
339 | end | |
340 | end | |
341 | function makeglow() | |
342 | for _, p in pairs(chr:GetChildren()) do | |
343 | if p.ClassName == "Accessory" then | |
344 | do | |
345 | local h = p:FindFirstChildOfClass("Part") | |
346 | local nh = h:Clone() | |
347 | for _, n in ipairs(nh:GetChildren()) do | |
348 | if n.ClassName == "Attachment" or n.ClassName == "Motor6D" then | |
349 | n:Destroy() | |
350 | end | |
351 | end | |
352 | nooutline(nh) | |
353 | nh.Parent = nil | |
354 | nh.CFrame = h.CFrame | |
355 | nh.Transparency = 1 | |
356 | nh.Name = "Glow" | |
357 | nh.Material = "Neon" | |
358 | nh.BrickColor = BrickColor.new("Teal") | |
359 | nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) | |
360 | nh.CanCollide = false | |
361 | nh.Parent = h | |
362 | makeweld(nh, nh, h, cf(0, 0, 0)) | |
363 | local m = nh:FindFirstChildOfClass("SpecialMesh") | |
364 | m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06) | |
365 | m.TextureId = "" | |
366 | vidp(nh) | |
367 | nh.Touched:connect(function(po) | |
368 | glow(po, nh, 0.8) | |
369 | end) | |
370 | end | |
371 | elseif p.ClassName == "Part" and p ~= hrp then | |
372 | do | |
373 | local n = p:Clone() | |
374 | for _, m in ipairs(n:GetChildren()) do | |
375 | if m.ClassName == "Attachment" or m.ClassName == "Motor6D" then | |
376 | m:Destroy() | |
377 | end | |
378 | end | |
379 | nooutline(n) | |
380 | n.Parent = nil | |
381 | n.Transparency = 1 | |
382 | n.Material = "Neon" | |
383 | n.Name = "Glow" | |
384 | n.BrickColor = BrickColor.new("Teal") | |
385 | n.CFrame = p.CFrame | |
386 | n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) | |
387 | n.CanCollide = false | |
388 | n.Parent = p | |
389 | makeweld(n, n, p, cf(0, 0, 0)) | |
390 | vidp(n) | |
391 | n.Touched:connect(function(po) | |
392 | glow(po, n, 0.8) | |
393 | end) | |
394 | if n:FindFirstChildOfClass("Decal") then | |
395 | n:FindFirstChildOfClass("Decal"):Destroy() | |
396 | end | |
397 | if p:FindFirstChildOfClass("SpecialMesh") then | |
398 | local c = p:FindFirstChildOfClass("SpecialMesh"):Clone() | |
399 | c.Parent = nil | |
400 | c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05) | |
401 | c.Parent = n | |
402 | else | |
403 | local m = Instance.new("BlockMesh") | |
404 | m.Scale = Vector3.new(1.05, 1.025, 1.05) | |
405 | if p == tors then | |
406 | m.Scale = Vector3.new(1.05, 1.05, 1.05) | |
407 | end | |
408 | m.Parent = n | |
409 | end | |
410 | end | |
411 | end | |
412 | end | |
413 | end | |
414 | makeglow() | |
415 | function lerpz(joint, prop, cfrmz, alp) | |
416 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
417 | end | |
418 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
419 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
420 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
421 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
422 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
423 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
424 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
425 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
426 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
427 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
428 | function resetlerp() | |
429 | RJ.C0 = RJC0 | |
430 | RJ.C1 = RJC1 | |
431 | N.C0 = NC0 | |
432 | N.C1 = NC1 | |
433 | RS.C0 = RSC0 | |
434 | RS.C1 = RSC1 | |
435 | LS.C0 = LSC0 | |
436 | LS.C1 = LSC1 | |
437 | RH.C0 = RHC0 | |
438 | RH.C1 = RHC1 | |
439 | LH.C0 = LHC0 | |
440 | end | |
441 | local ign = {chr} | |
442 | function proj(cframe) | |
443 | coroutine.resume(coroutine.create(function() | |
444 | local mis = Instance.new("Part") | |
445 | mis.Anchored = true | |
446 | mis.CanCollide = false | |
447 | mis.Size = Vector3.new(1, 1, 1) | |
448 | mis.Transparency = 1 | |
449 | mis.Name = "pew" | |
450 | mis.CFrame = cframe | |
451 | mis.Parent = workspace | |
452 | local s = Instance.new("ParticleEmitter") | |
453 | s.Enabled = true | |
454 | s.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
455 | s.LightEmission = 0.6 | |
456 | s.Size = NumberSequence.new({ | |
457 | NumberSequenceKeypoint.new(0, 0.4, 0), | |
458 | NumberSequenceKeypoint.new(0.0241, 0.0625, 0), | |
459 | NumberSequenceKeypoint.new(0.0299, 0.66, 0.22), | |
460 | NumberSequenceKeypoint.new(0.0344, 0.0225, 0), | |
461 | NumberSequenceKeypoint.new(1, 0, 0) | |
462 | }) | |
463 | s.Texture = "rbxassetid://31270182" | |
464 | s.Transparency = NumberSequence.new({ | |
465 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
466 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
467 | NumberSequenceKeypoint.new(1, 1, 0) | |
468 | }) | |
469 | s.Name = "vid" | |
470 | s.Lifetime = NumberRange.new(1) | |
471 | s.ZOffset = 0 | |
472 | s.Rate = 3000 | |
473 | s.Speed = NumberRange.new(25, 50) | |
474 | s.VelocitySpread = 20 | |
475 | s.EmissionDirection = "Back" | |
476 | s.Parent = mis | |
477 | game.Debris:AddItem(mis, 10) | |
478 | table.insert(ign, mis) | |
479 | local wat = 0 | |
480 | local derp = false | |
481 | local v = Instance.new("Sound") | |
482 | v.SoundId = "rbxassetid://221727606" | |
483 | v.Volume = 0.5 | |
484 | v.Looped = true | |
485 | v.EmitterSize = 15 | |
486 | v.MaxDistance = 40 | |
487 | v.Pitch = math.random(12, 13) / 10 | |
488 | v.Parent = mis | |
489 | v:Play() | |
490 | repeat | |
491 | swait() | |
492 | wat = wat + 1 | |
493 | local ry = Ray.new(mis.Position, mis.CFrame.lookVector * 8) | |
494 | local prt, pos = workspace:FindPartOnRayWithIgnoreList(ry, ign, false, true) | |
495 | if prt and pos and 1 > prt.Transparency then | |
496 | derp = true | |
497 | mis.CFrame = CFrame.new(pos) | |
498 | v:Stop() | |
499 | s.Enabled = false | |
500 | s.Speed = NumberRange.new(15, 25) | |
501 | s.Lifetime = NumberRange.new(5) | |
502 | s.VelocitySpread = 360 | |
503 | s:Emit(40) | |
504 | local n = Instance.new("Sound") | |
505 | n.Volume = 0.75 | |
506 | n.Pitch = rd2(9, 11) / 10 | |
507 | n.SoundId = "rbxassetid://184374162" | |
508 | n.Parent = mis | |
509 | n:Play() | |
510 | hito(mis, 300, 500000, 0.01) | |
511 | else | |
512 | mis.CFrame = mis.CFrame * CFrame.new(0, 0, -5) | |
513 | end | |
514 | until wat == 50 or derp == true | |
515 | if wat == 50 then | |
516 | mis:Destroy() | |
517 | end | |
518 | if derp == true then | |
519 | game.Debris:AddItem(mis, 1) | |
520 | end | |
521 | end)) | |
522 | end | |
523 | function makesword(swocfrm, weldp1, cframe0) | |
524 | local ay = function(name, size, parnt, cfram) | |
525 | local port = Instance.new("Part") | |
526 | port.BrickColor = BrickColor.new("Teal") | |
527 | port.Name = name | |
528 | port.Transparency = 1 | |
529 | nooutline(port) | |
530 | port.Material = "Neon" | |
531 | port.Anchored = false | |
532 | port.CanCollide = false | |
533 | port.Locked = true | |
534 | port.Size = size | |
535 | port.Parent = parnt | |
536 | return port | |
537 | end | |
538 | local swordmo = Instance.new("Model") | |
539 | swordmo.Name = "swod" | |
540 | swordmo.Parent = modz | |
541 | local booval = Instance.new("BoolValue") | |
542 | booval.Value = true | |
543 | booval.Name = "mememem" | |
544 | booval.Parent = swordmo | |
545 | local function pr(par, amt, sped) | |
546 | local s = Instance.new("ParticleEmitter") | |
547 | s.Enabled = false | |
548 | s.LockedToPart = true | |
549 | s.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
550 | s.LightEmission = 0.6 | |
551 | s.Size = NumberSequence.new({ | |
552 | NumberSequenceKeypoint.new(0, 0.15, 0), | |
553 | NumberSequenceKeypoint.new(0.05, 0.3, 0.3), | |
554 | NumberSequenceKeypoint.new(0.1, 0.15, 0), | |
555 | NumberSequenceKeypoint.new(0.8, 0.2, 0), | |
556 | NumberSequenceKeypoint.new(1, 0, 0) | |
557 | }) | |
558 | s.Texture = "rbxassetid://31270182" | |
559 | s.Transparency = NumberSequence.new({ | |
560 | NumberSequenceKeypoint.new(0, 0.7, 0), | |
561 | NumberSequenceKeypoint.new(0.89, 0.7, 0), | |
562 | NumberSequenceKeypoint.new(1, 1, 0) | |
563 | }) | |
564 | s.Name = "vid" | |
565 | s.Lifetime = NumberRange.new(0.75) | |
566 | s.Rate = 1 | |
567 | s.Speed = sped | |
568 | s.VelocitySpread = 3 | |
569 | s.Parent = par | |
570 | coroutine.resume(coroutine.create(function() | |
571 | while booval.Value do | |
572 | swait() | |
573 | s:Emit(amt) | |
574 | end | |
575 | end)) | |
576 | return s | |
577 | end | |
578 | local ping = function(derp) | |
579 | local s3 = Instance.new("ParticleEmitter") | |
580 | s3.Enabled = false | |
581 | s3.LockedToPart = false | |
582 | s3.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
583 | s3.LightEmission = 0.6 | |
584 | s3.Size = NumberSequence.new({ | |
585 | NumberSequenceKeypoint.new(0, 0.35, 0), | |
586 | NumberSequenceKeypoint.new(0.2, 0.25, 0.25), | |
587 | NumberSequenceKeypoint.new(0.4, 0.15, 0), | |
588 | NumberSequenceKeypoint.new(0.853, 0.25, 0.1), | |
589 | NumberSequenceKeypoint.new(1, 0, 0) | |
590 | }) | |
591 | s3.Texture = "rbxassetid://31270182" | |
592 | s3.Transparency = NumberSequence.new({ | |
593 | NumberSequenceKeypoint.new(0, 0.4, 0), | |
594 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
595 | NumberSequenceKeypoint.new(1, 1, 0) | |
596 | }) | |
597 | s3.Name = "vid3" | |
598 | s3.Lifetime = NumberRange.new(0.5) | |
599 | s3.Acceleration = Vector3.new(0, 5, 0) | |
600 | s3.Rate = 350 | |
601 | s3.Speed = NumberRange.new(10, 15) | |
602 | s3.VelocitySpread = 360 | |
603 | s3.Parent = derp | |
604 | swait() | |
605 | s3:Emit(120) | |
606 | end | |
607 | local b1 = ay("b1", Vector3.new(0.3, 2.5, 0.3), swordmo, swocfrm) | |
608 | local p1 = pr(b1, 5, NumberRange.new(0, 1)) | |
609 | if weldp1 then | |
610 | local w1 = makeweld(b1, b1, weldp1, cframe0, nil) | |
611 | end | |
612 | local bla = Instance.new("Sound") | |
613 | bla.SoundId = "rbxassetid://61425219" | |
614 | bla.Volume = 0.75 | |
615 | bla.Pitch = math.random(7, 9) / 10 | |
616 | bla.Parent = b1 | |
617 | bla:Play() | |
618 | local b2 = ay("b2", Vector3.new(0.6, 0.75, 0.4), swordmo, swocfrm) | |
619 | local p2 = pr(b2, 1, NumberRange.new(0, 1)) | |
620 | local w2 = makeweld(b2, b2, b1, ang(rd(180), rd(0), rd(0)) * cf(0, 1.5, 0), nil) | |
621 | local b3 = ay("b3", Vector3.new(0.7, 0.75, 0.5), swordmo, swocfrm) | |
622 | local p3 = pr(b3, 1, NumberRange.new(0, 3)) | |
623 | local w3 = makeweld(b3, b3, b1, ang(rd(180), rd(90), rd(0)) * cf(0, -1.5, 0), nil) | |
624 | local b4 = ay("b4", Vector3.new(0.3, 0.75, 0.3), swordmo, swocfrm) | |
625 | local p4 = pr(b4, 1, NumberRange.new(1, 2)) | |
626 | local w4 = makeweld(b4, b4, b3, cf(0, -0.5, 0) * ang(rd(70), rd(0), rd(0)), nil) | |
627 | local b5 = ay("b5", Vector3.new(0.3, 0.75, 0.3), swordmo, swocfrm) | |
628 | local p5 = pr(b5, 1, NumberRange.new(1, 2)) | |
629 | local w5 = makeweld(b5, b5, b3, cf(0, -0.5, 0) * ang(rd(290), rd(0), rd(0)), nil) | |
630 | local b6 = ay("b6", Vector3.new(0.3, 0.5, 0.3), swordmo, swocfrm) | |
631 | local p6 = pr(b6, 1, NumberRange.new(1, 2)) | |
632 | local w6 = makeweld(b6, b6, b3, cf(0, -0.25, 0) * ang(rd(35), rd(0), rd(0)), nil) | |
633 | local b7 = ay("b7", Vector3.new(0.3, 0.5, 0.3), swordmo, swocfrm) | |
634 | local p7 = pr(b7, 1, NumberRange.new(1, 2)) | |
635 | local w7 = makeweld(b7, b7, b3, cf(0, -0.25, 0) * ang(rd(325), rd(0), rd(0)), nil) | |
636 | local b8 = ay("b8", Vector3.new(0.5, 5.5, 0.2), swordmo, swocfrm) | |
637 | local p8 = pr(b8, 9, NumberRange.new(1, 3)) | |
638 | local w8 = makeweld(b8, b8, b1, ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), nil) | |
639 | local anbo = Instance.new("Part") | |
640 | anbo.Anchored = true | |
641 | anbo.CanCollide = false | |
642 | anbo.Size = Vector3.new(2.5, 9, 1) | |
643 | anbo.CFrame = b8.CFrame * cf(0, -1.5, 0) | |
644 | anbo.Transparency = 1 | |
645 | anbo.Parent = workspace | |
646 | game.Debris:AddItem(anbo, 2) | |
647 | ping(anbo) | |
648 | local whos = Instance.new("ParticleEmitter") | |
649 | whos.Enabled = false | |
650 | whos.LockedToPart = false | |
651 | whos.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
652 | whos.LightEmission = 0.6 | |
653 | whos.Size = NumberSequence.new({ | |
654 | NumberSequenceKeypoint.new(0, 0.15, 0), | |
655 | NumberSequenceKeypoint.new(0.05, 0.3, 0.3), | |
656 | NumberSequenceKeypoint.new(0.1, 0.15, 0), | |
657 | NumberSequenceKeypoint.new(0.8, 0.2, 0), | |
658 | NumberSequenceKeypoint.new(1, 0, 0) | |
659 | }) | |
660 | whos.Texture = "rbxassetid://31270182" | |
661 | whos.Transparency = NumberSequence.new({ | |
662 | NumberSequenceKeypoint.new(0, 0.7, 0), | |
663 | NumberSequenceKeypoint.new(0.89, 0.7, 0), | |
664 | NumberSequenceKeypoint.new(1, 1, 0) | |
665 | }) | |
666 | whos.Name = "whoos" | |
667 | whos.Lifetime = NumberRange.new(0.75) | |
668 | whos.Rate = 2000 | |
669 | whos.Speed = NumberRange.new(0) | |
670 | whos.VelocityInheritance = 0.8 | |
671 | whos.VelocitySpread = 3 | |
672 | whos.Parent = b8 | |
673 | return swordmo | |
674 | end | |
675 | function removesword(swordmodel) | |
676 | swordmodel.mememem.Value = false | |
677 | local hn = swordmodel.b1 | |
678 | hn.Anchored = true | |
679 | if hn:FindFirstChildOfClass("Weld") then | |
680 | hn:FindFirstChildOfClass("Weld"):Destroy() | |
681 | end | |
682 | local bla = Instance.new("Sound") | |
683 | bla.SoundId = "rbxassetid://192783601" | |
684 | bla.Volume = 1.25 | |
685 | bla.Pitch = math.random(9, 10) / 10 | |
686 | bla.Parent = hn | |
687 | bla:Play() | |
688 | local ping = function(derp) | |
689 | local s3 = Instance.new("ParticleEmitter") | |
690 | s3.Enabled = false | |
691 | s3.LockedToPart = false | |
692 | s3.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
693 | s3.LightEmission = 0.6 | |
694 | s3.Size = NumberSequence.new({ | |
695 | NumberSequenceKeypoint.new(0, 0.35, 0), | |
696 | NumberSequenceKeypoint.new(0.2, 0.25, 0.25), | |
697 | NumberSequenceKeypoint.new(0.4, 0.15, 0), | |
698 | NumberSequenceKeypoint.new(0.853, 0.25, 0.1), | |
699 | NumberSequenceKeypoint.new(1, 0, 0) | |
700 | }) | |
701 | s3.Texture = "rbxassetid://31270182" | |
702 | s3.Transparency = NumberSequence.new({ | |
703 | NumberSequenceKeypoint.new(0, 0.4, 0), | |
704 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
705 | NumberSequenceKeypoint.new(1, 1, 0) | |
706 | }) | |
707 | s3.Name = "vid3" | |
708 | s3.Lifetime = NumberRange.new(0.5) | |
709 | s3.Acceleration = Vector3.new(0, 5, 0) | |
710 | s3.Rate = 350 | |
711 | s3.Speed = NumberRange.new(10, 15) | |
712 | s3.VelocitySpread = 360 | |
713 | s3.Parent = derp | |
714 | swait() | |
715 | s3:Emit(180) | |
716 | end | |
717 | local anbo = Instance.new("Part") | |
718 | anbo.Anchored = true | |
719 | anbo.CanCollide = false | |
720 | anbo.Size = Vector3.new(2.5, 9, 1) | |
721 | anbo.CFrame = swordmodel.b8.CFrame * cf(0, -1.5, 0) | |
722 | anbo.Transparency = 1 | |
723 | anbo.Parent = workspace | |
724 | game.Debris:AddItem(anbo, 2) | |
725 | ping(anbo) | |
726 | game.Debris:AddItem(swordmodel, 1.25) | |
727 | end | |
728 | function eswing() | |
729 | if activu == true or selected == false then | |
730 | return | |
731 | end | |
732 | activu = true | |
733 | local sw = makesword(hrp.CFrame, rarm, ang(rd(90), rd(0), rd(90)) * cf(0, 1, 0.5)) | |
734 | animo(false) | |
735 | local hwel = sw.b1:FindFirstChildOfClass("Weld") | |
736 | local hwelc0 = hwel.C0 | |
737 | local whoo = sw.b8:FindFirstChild("whoos") | |
738 | for _ = 1, 12 do | |
739 | swait() | |
740 | lerpz(RJ, "C0", RJC0 * cf(0, 0.75, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
741 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(-6), rd(70)), 0.5) | |
742 | lerpz(N, "C1", NC1 * cf(0, 0, 0) * ang(rd(-13), rd(0), rd(0)), 0.5) | |
743 | lerpz(RS, "C0", RSC0 * cf(0.3, 0.25, 0.55) * ang(rd(-30), rd(-70), rd(15)), 0.5) | |
744 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(0)), 0.5) | |
745 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(10), rd(5), rd(10)), 0.5) | |
746 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
747 | lerpz(RH, "C0", RHC0 * cf(0.45, 0.05, -0.15) * ang(rd(-5), rd(60), rd(0)), 0.5) | |
748 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
749 | lerpz(LH, "C0", LHC0 * cf(0.45, 0.05, -0.35) * ang(rd(-5), rd(75), rd(0)), 0.5) | |
750 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
751 | hwel.C0 = hwel.C0:lerp(cf(-0.25, 0.25, 0) * ang(rd(0), rd(0), rd(40)) * hwelc0, 0.5) | |
752 | end | |
753 | for c = 1, 3 do | |
754 | swait() | |
755 | lerpz(RJ, "C0", RJC0 * cf(0, -0.25, 0) * ang(rd(0), rd(0), rd(10)), 0.1 + c / 5) | |
756 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(-10)), 0.1 + c / 5) | |
757 | lerpz(N, "C1", NC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + c / 5) | |
758 | lerpz(RS, "C0", RSC0 * cf(-0.2, 0.35, 0.9) * ang(rd(-20), rd(170), rd(15)), 0.1 + c / 5) | |
759 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + c / 5) | |
760 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(5), rd(10)), 0.1 + c / 5) | |
761 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + c / 5) | |
762 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(1)), 0.1 + c / 5) | |
763 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + c / 5) | |
764 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(-1)), 0.1 + c / 5) | |
765 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + c / 5) | |
766 | hwel.C0 = hwel.C0:lerp(cf(-0.15, 0.15, 0) * ang(rd(0), rd(0), rd(10)) * hwelc0, 0.1 + c / 5) | |
767 | end | |
768 | whoo.Enabled = true | |
769 | for _ = 1, 14 do | |
770 | swait() | |
771 | hito(sw.b8, 3, 35, 0.8) | |
772 | lerpz(RJ, "C0", RJC0 * cf(0, -0.75, 0) * ang(rd(0), rd(0), rd(60)), 0.6) | |
773 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-40)), 0.6) | |
774 | lerpz(N, "C1", NC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
775 | lerpz(RS, "C0", RSC0 * cf(-0.1, 0.65, 0.9) * ang(rd(-15), rd(135), rd(-165)), 0.6) | |
776 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
777 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-30), rd(5), rd(10)), 0.6) | |
778 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
779 | lerpz(RH, "C0", RHC0 * cf(-0.25, 0, 0) * ang(rd(-5), rd(-50), rd(1)), 0.6) | |
780 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
781 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(-1)), 0.6) | |
782 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
783 | hwel.C0 = hwel.C0:lerp(cf(-0.25, 0.25, 0) * ang(rd(0), rd(0), rd(40)) * hwelc0, 0.6) | |
784 | end | |
785 | whoo.Enabled = false | |
786 | removesword(sw) | |
787 | animo(true) | |
788 | for _ = 1, 10 do | |
789 | swait() | |
790 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
791 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
792 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
793 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
794 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
795 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
796 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
797 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
798 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
799 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
800 | end | |
801 | resetlerp() | |
802 | activu = false | |
803 | end | |
804 | function torentmod() | |
805 | if selected == false or activu == true then | |
806 | return | |
807 | end | |
808 | if torrent == false then | |
809 | torrent = true | |
810 | do | |
811 | local viarm = Instance.new("Part") | |
812 | nooutline(viarm) | |
813 | viarm.CanCollide = false | |
814 | viarm.Transparency = 1 | |
815 | viarm.Name = "shootingu" | |
816 | viarm.Size = Vector3.new(1.25, 1, 1.25) | |
817 | viarm.CFrame = rarm.CFrame | |
818 | viarm.Parent = modz | |
819 | makeweld(viarm, viarm, rarm, cf(0, 1, 0)) | |
820 | s = Instance.new("ParticleEmitter") | |
821 | s.Enabled = true | |
822 | s.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
823 | s.LightEmission = 0.6 | |
824 | s.Size = NumberSequence.new({ | |
825 | NumberSequenceKeypoint.new(0, 0, 0), | |
826 | NumberSequenceKeypoint.new(0.0241, 0.0925, 0), | |
827 | NumberSequenceKeypoint.new(0.0299, 0.56, 0.25), | |
828 | NumberSequenceKeypoint.new(0.0344, 0.0925, 0), | |
829 | NumberSequenceKeypoint.new(1, 0, 0) | |
830 | }) | |
831 | s.Texture = "rbxassetid://31270182" | |
832 | s.Transparency = NumberSequence.new({ | |
833 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
834 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
835 | NumberSequenceKeypoint.new(1, 1, 0) | |
836 | }) | |
837 | s.Name = "vid" | |
838 | s.Acceleration = viarm.CFrame.upVector * 5 | |
839 | s.Lifetime = NumberRange.new(1) | |
840 | s.ZOffset = 1 | |
841 | s.Rate = 1250 | |
842 | s.Speed = NumberRange.new(2, 3) | |
843 | s.VelocitySpread = 180 | |
844 | s.Parent = viarm | |
845 | coroutine.resume(coroutine.create(function() | |
846 | while s do | |
847 | swait() | |
848 | s.Acceleration = viarm.CFrame.upVector * 6 | |
849 | end | |
850 | end)) | |
851 | coroutine.resume(coroutine.create(function() | |
852 | while torrent == true do | |
853 | swait() | |
854 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
855 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
856 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
857 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
858 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
859 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
860 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
861 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
862 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
863 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
864 | end | |
865 | end)) | |
866 | local shootinz = false | |
867 | hd = tool.Activated:connect(function() | |
868 | shootinz = true | |
869 | repeat | |
870 | swait(3) | |
871 | lerpz(RS, "C0", RSC0 * cf(rd2(-3, -1) / 10, 0, 0) * ang(rd(rd2(-5, 5)), rd(rd2(-5, 5)), rd(rd2(95, 105))), 0.8) | |
872 | proj(CFrame.new(viarm.Position, mouse.Hit.p + Vector3.new(rd2(-1, 1), rd2(-1, 1), 0))) | |
873 | local sd = Instance.new("Sound") | |
874 | sd.Volume = 0.3 | |
875 | sd.Pitch = rd2(11, 13) / 10 | |
876 | sd.SoundId = "rbxassetid://221727606" | |
877 | sd.Parent = viarm | |
878 | local sd2 = sd:Clone() | |
879 | sd2.SoundId = "rbxassetid://238381567" | |
880 | sd2.Parent = viarm | |
881 | sd:Play() | |
882 | sd2:Play() | |
883 | game.Debris:AddItem(sd, 1) | |
884 | game.Debris:AddItem(sd2, 1) | |
885 | until shootinz == false or torrent == false | |
886 | end) | |
887 | hu = tool.Deactivated:connect(function() | |
888 | shootinz = false | |
889 | end) | |
890 | end | |
891 | elseif torrent == true then | |
892 | hd:Disconnect() | |
893 | hu:Disconnect() | |
894 | torrent = false | |
895 | modz:FindFirstChild("shootingu"):FindFirstChild("vid").Enabled = false | |
896 | for _ = 1, 10 do | |
897 | swait() | |
898 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
899 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
900 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
901 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
902 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
903 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
904 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
905 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
906 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
907 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
908 | end | |
909 | resetlerp() | |
910 | modz:FindFirstChild("shootingu"):Destroy() | |
911 | end | |
912 | end | |
913 | function suprfast() | |
914 | if selected == false or activu == true then | |
915 | return | |
916 | end | |
917 | activu = true | |
918 | human.WalkSpeed = human.WalkSpeed + 30 | |
919 | human.JumpPower = human.JumpPower + 45 | |
920 | for _, d in ipairs(chr:GetChildren()) do | |
921 | if d.ClassName == "Accessory" then | |
922 | swait() | |
923 | glow(hrp, d:FindFirstChildOfClass("Part"):FindFirstChild("Glow"), 2) | |
924 | coroutine.resume(coroutine.create(function() | |
925 | local clones = {} | |
926 | for i = 1, 5 do | |
927 | local v = d:FindFirstChildOfClass("Part"):FindFirstChild("Glow"):Clone() | |
928 | v.Name = "nyoo" | |
929 | v.vid:Destroy() | |
930 | v.vid2:Destroy() | |
931 | v.AccessoryWeld:Destroy() | |
932 | v.Weld:Destroy() | |
933 | v.Transparency = 0.9 | |
934 | v.Anchored = true | |
935 | v.Parent = modz | |
936 | table.insert(clones, v) | |
937 | end | |
938 | num = 0 | |
939 | repeat | |
940 | swait() | |
941 | num = num % 5 + 1 | |
942 | clones[num].CFrame = d:FindFirstChildOfClass("Part"):FindFirstChild("Glow").CFrame | |
943 | until activu == false | |
944 | for _, b in ipairs(clones) do | |
945 | swait() | |
946 | b:Destroy() | |
947 | end | |
948 | end)) | |
949 | elseif d.ClassName == "Part" and d ~= hrp then | |
950 | swait() | |
951 | glow(hrp, d:FindFirstChild("Glow"), 2) | |
952 | coroutine.resume(coroutine.create(function() | |
953 | local clones = {} | |
954 | for i = 1, 5 do | |
955 | local v = d:FindFirstChild("Glow"):Clone() | |
956 | v.Name = "lel" | |
957 | v.vid:Destroy() | |
958 | v.vid2:Destroy() | |
959 | v.Weld:Destroy() | |
960 | v.Transparency = 0.9 | |
961 | v.Anchored = true | |
962 | v.Parent = modz | |
963 | table.insert(clones, v) | |
964 | end | |
965 | num = 0 | |
966 | repeat | |
967 | swait() | |
968 | num = num % 5 + 1 | |
969 | clones[num].CFrame = d:FindFirstChild("Glow").CFrame | |
970 | until activu == false | |
971 | for _, b in ipairs(clones) do | |
972 | swait() | |
973 | b:Destroy() | |
974 | end | |
975 | end)) | |
976 | end | |
977 | end | |
978 | wait(2) | |
979 | activu = false | |
980 | human.WalkSpeed = human.WalkSpeed - 30 | |
981 | human.JumpPower = human.JumpPower - 45 | |
982 | end | |
983 | function fly() | |
984 | if selected == false or activu == true or torrent == true then | |
985 | return | |
986 | end | |
987 | local memedon = {} | |
988 | activu = true | |
989 | local emi = true | |
990 | local mp = Instance.new("Part") | |
991 | mp.Size = Vector3.new(0.2, 0.2, 0.2) | |
992 | mp.CanCollide = false | |
993 | mp.Transparency = 1 | |
994 | mp.Parent = modz | |
995 | table.insert(memedon, mp) | |
996 | makeweld(mp, mp, tors, ang(rd(-30), rd(0), rd(0)) * CFrame.new(0, -0.5, -0.5), nil) | |
997 | local function pr(par, amt) | |
998 | local s = Instance.new("ParticleEmitter") | |
999 | s.Enabled = false | |
1000 | s.LockedToPart = true | |
1001 | s.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
1002 | s.LightEmission = 0.6 | |
1003 | s.Size = NumberSequence.new({ | |
1004 | NumberSequenceKeypoint.new(0, 0.3, 0), | |
1005 | NumberSequenceKeypoint.new(0.8, 0.3, 0), | |
1006 | NumberSequenceKeypoint.new(1, 0, 0) | |
1007 | }) | |
1008 | s.Texture = "rbxassetid://31270182" | |
1009 | s.Transparency = NumberSequence.new({ | |
1010 | NumberSequenceKeypoint.new(0, 0.7, 0), | |
1011 | NumberSequenceKeypoint.new(0.89, 0.7, 0), | |
1012 | NumberSequenceKeypoint.new(1, 1, 0) | |
1013 | }) | |
1014 | s.Name = "vid" | |
1015 | s.Lifetime = NumberRange.new(0.75) | |
1016 | s.Rate = 1 | |
1017 | s.Speed = NumberRange.new(10, 15) | |
1018 | s.VelocitySpread = 3 | |
1019 | s.Parent = par | |
1020 | coroutine.resume(coroutine.create(function() | |
1021 | while emi do | |
1022 | swait() | |
1023 | s:Emit(amt) | |
1024 | end | |
1025 | end)) | |
1026 | return s | |
1027 | end | |
1028 | for _, d in ipairs(chr:GetChildren()) do | |
1029 | if d.ClassName == "Accessory" then | |
1030 | glow(hrp, d:FindFirstChildOfClass("Part"):FindFirstChild("Glow"), 1.5) | |
1031 | elseif d.ClassName == "Part" and d ~= hrp then | |
1032 | glow(hrp, d:FindFirstChild("Glow"), 1.5) | |
1033 | end | |
1034 | end | |
1035 | local f1 = makepart("Teal", "w1", 1, "Neon", modz, hrp.CFrame) | |
1036 | f1.Size = Vector3.new(0.4, 0.4, 0.4) | |
1037 | local p1 = pr(f1, 12) | |
1038 | p1.Acceleration = Vector3.new(-15, 0, 15) | |
1039 | local w1 = makeweld(f1, f1, mp, CFrame.Angles(rd(-5), rd(10), rd(-50)) * CFrame.new(0.25, 0, 0), nil) | |
1040 | local f2 = makepart("Teal", "w2", 1, "Neon", modz, hrp.CFrame) | |
1041 | f2.Size = Vector3.new(0.4, 0.4, 0.4) | |
1042 | local p2 = pr(f2, 12) | |
1043 | p2.Acceleration = Vector3.new(15, 0, 15) | |
1044 | local w2 = makeweld(f2, f2, mp, CFrame.Angles(rd(-5), rd(-10), rd(50)) * CFrame.new(-0.25, 0, 0), nil) | |
1045 | local f3 = makepart("Teal", "w3", 1, "Neon", modz, hrp.CFrame) | |
1046 | f3.Size = Vector3.new(1.3, 0.6, 0.6) | |
1047 | p3 = pr(f3, 4) | |
1048 | p3.Speed = NumberRange.new(10, 12) | |
1049 | local w3 = makeweld(f3, f3, mp, CFrame.Angles(rd(-40), rd(10), rd(-145)) * CFrame.new(2, -1, -0.5), nil) | |
1050 | local f4 = makepart("Teal", "w4", 1, "Neon", modz, hrp.CFrame) | |
1051 | f4.Size = Vector3.new(1.3, 0.6, 0.6) | |
1052 | p4 = pr(f4, 4) | |
1053 | p4.Speed = NumberRange.new(10, 12) | |
1054 | local w4 = makeweld(f4, f4, mp, CFrame.Angles(rd(-40), rd(-10), rd(145)) * CFrame.new(-2, -1, -0.5), nil) | |
1055 | local f5 = makepart("Teal", "w5", 1, "Neon", modz, hrp.CFrame) | |
1056 | f5.Size = Vector3.new(1.3, 0.6, 0.6) | |
1057 | p5 = pr(f5, 4) | |
1058 | p5.Speed = NumberRange.new(10, 12) | |
1059 | local w5 = makeweld(f5, f5, mp, CFrame.Angles(rd(-30), rd(-10), rd(-115)) * CFrame.new(3, -1.75, -1), nil) | |
1060 | local f6 = makepart("Teal", "w6", 1, "Neon", modz, hrp.CFrame) | |
1061 | f6.Size = Vector3.new(1.3, 0.6, 0.6) | |
1062 | p6 = pr(f6, 4) | |
1063 | p6.Speed = NumberRange.new(10, 12) | |
1064 | local w6 = makeweld(f6, f6, mp, CFrame.Angles(rd(-30), rd(10), rd(115)) * CFrame.new(-3, -1.75, -1), nil) | |
1065 | local f7 = makepart("Teal", "w7", 1, "Neon", modz, hrp.CFrame) | |
1066 | f7.Size = Vector3.new(1.9, 0.6, 0.6) | |
1067 | p7 = pr(f7, 6) | |
1068 | p7.Speed = NumberRange.new(10, 12) | |
1069 | local w7 = makeweld(f7, f7, mp, CFrame.Angles(rd(-40), rd(-5), rd(-140)) * CFrame.new(2.5, -1.65, -0.65), nil) | |
1070 | local f8 = makepart("Teal", "w8", 1, "Neon", modz, hrp.CFrame) | |
1071 | f8.Size = Vector3.new(1.9, 0.6, 0.6) | |
1072 | p8 = pr(f8, 6) | |
1073 | p8.Speed = NumberRange.new(10, 12) | |
1074 | local w8 = makeweld(f8, f8, mp, CFrame.Angles(rd(-40), rd(5), rd(140)) * CFrame.new(-2.5, -1.65, -0.65), nil) | |
1075 | t1 = pr(f1, 2) | |
1076 | t1.LockedToPart = false | |
1077 | t2 = pr(f2, 2) | |
1078 | t2.LockedToPart = false | |
1079 | t3 = pr(f3, 2) | |
1080 | t3.LockedToPart = false | |
1081 | t4 = pr(f4, 2) | |
1082 | t4.LockedToPart = false | |
1083 | t5 = pr(f5, 2) | |
1084 | t5.LockedToPart = false | |
1085 | t6 = pr(f6, 2) | |
1086 | t6.LockedToPart = false | |
1087 | t7 = pr(f7, 2) | |
1088 | t7.LockedToPart = false | |
1089 | t8 = pr(f8, 2) | |
1090 | t8.LockedToPart = false | |
1091 | table.insert(memedon, f1) | |
1092 | table.insert(memedon, f2) | |
1093 | table.insert(memedon, f3) | |
1094 | table.insert(memedon, f4) | |
1095 | table.insert(memedon, f5) | |
1096 | table.insert(memedon, f6) | |
1097 | table.insert(memedon, f7) | |
1098 | table.insert(memedon, f8) | |
1099 | local sd = Instance.new("Sound") | |
1100 | sd.Volume = 1.5 | |
1101 | sd.Pitch = rd2(10, 12) / 10 | |
1102 | sd.SoundId = "rbxassetid://201858072" | |
1103 | sd.Parent = hrp | |
1104 | sd:Play() | |
1105 | game.Debris:AddItem(sd, 1) | |
1106 | human.PlatformStand = true | |
1107 | local bg = Instance.new("BodyGyro") | |
1108 | bg.MaxTorque = Vector3.new(15000, 15000, 15000) | |
1109 | bg.P = 2500 | |
1110 | bg.D = 100 | |
1111 | bg.CFrame = CFrame.new(hrp.Position, mouse.Hit.p) | |
1112 | bg.Parent = hrp | |
1113 | local bf = Instance.new("BodyVelocity") | |
1114 | bf.MaxForce = Vector3.new(15000, 15000, 15000) | |
1115 | bf.P = 2500 | |
1116 | bf.Velocity = mouse.Hit.p - hrp.Position.unit * 200 | |
1117 | bf.Parent = hrp | |
1118 | for d = 1, 100 do | |
1119 | swait() | |
1120 | bg.CFrame = CFrame.new(hrp.Position, mouse.Hit.p) | |
1121 | bf.Velocity = mouse.Hit.p - hrp.Position.unit * (200 - d * 2) | |
1122 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(80), rd(0), math.sin(-hrp.RotVelocity.Y / 5)), 0.4) | |
1123 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-70), rd(0), rd(0)), 0.4) | |
1124 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1125 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1126 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1127 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1128 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1129 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1130 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1131 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1132 | end | |
1133 | bf:Destroy() | |
1134 | bg:Destroy() | |
1135 | human.PlatformStand = false | |
1136 | emi = false | |
1137 | p1.LockedToPart = false | |
1138 | p2.LockedToPart = false | |
1139 | p3.LockedToPart = false | |
1140 | p4.LockedToPart = false | |
1141 | p5.LockedToPart = false | |
1142 | p6.LockedToPart = false | |
1143 | p7.LockedToPart = false | |
1144 | p8.LockedToPart = false | |
1145 | for _ = 1, 10 do | |
1146 | swait() | |
1147 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1148 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1149 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1150 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1151 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1152 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1153 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1154 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1155 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1156 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1157 | end | |
1158 | delay(0.5, function() | |
1159 | for _, l in ipairs(memedon) do | |
1160 | l:Destroy() | |
1161 | end | |
1162 | end) | |
1163 | resetlerp() | |
1164 | activu = false | |
1165 | end | |
1166 | function musiclel() | |
1167 | if selected == false or activu == true then | |
1168 | return | |
1169 | end | |
1170 | if boxingu == false then | |
1171 | boxingu = true | |
1172 | do | |
1173 | local watz = 1 | |
1174 | local hmm = 1 | |
1175 | local intens = 30 | |
1176 | local deg = 20 | |
1177 | local derp = makepart("Teal", "hurr", 0.25, "Neon", modz, hrp.CFrame) | |
1178 | derp.Locked = true | |
1179 | local s = Instance.new("ParticleEmitter") | |
1180 | s.Enabled = true | |
1181 | s.LockedToPart = true | |
1182 | s.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
1183 | s.LightEmission = 0.6 | |
1184 | s.Size = NumberSequence.new({ | |
1185 | NumberSequenceKeypoint.new(0, 0.275, 0), | |
1186 | NumberSequenceKeypoint.new(0.406, 0.762, 0), | |
1187 | NumberSequenceKeypoint.new(0.433, 1.5, 0.75), | |
1188 | NumberSequenceKeypoint.new(0.476, 0.625, 0), | |
1189 | NumberSequenceKeypoint.new(1, 0.05, 0) | |
1190 | }) | |
1191 | s.Texture = "rbxassetid://31270182" | |
1192 | s.Transparency = NumberSequence.new({ | |
1193 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
1194 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
1195 | NumberSequenceKeypoint.new(1, 1, 0) | |
1196 | }) | |
1197 | s.Name = "vid" | |
1198 | s.Lifetime = NumberRange.new(0.2) | |
1199 | s.Rate = 75 | |
1200 | s.Speed = NumberRange.new(7, 10) | |
1201 | s.VelocitySpread = 360 | |
1202 | s.ZOffset = 1 | |
1203 | s.Parent = derp | |
1204 | local s2 = Instance.new("ParticleEmitter") | |
1205 | s2.Enabled = true | |
1206 | s2.LockedToPart = false | |
1207 | s2.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
1208 | s2.LightEmission = 0.6 | |
1209 | s2.Size = NumberSequence.new({ | |
1210 | NumberSequenceKeypoint.new(0, 0, 0), | |
1211 | NumberSequenceKeypoint.new(0.853, 0.125, 0.1), | |
1212 | NumberSequenceKeypoint.new(1, 0, 0) | |
1213 | }) | |
1214 | s2.Texture = "rbxassetid://31270182" | |
1215 | s2.Transparency = NumberSequence.new({ | |
1216 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
1217 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
1218 | NumberSequenceKeypoint.new(1, 1, 0) | |
1219 | }) | |
1220 | s2.Name = "vid2" | |
1221 | s2.Lifetime = NumberRange.new(0.5) | |
1222 | s2.Rate = 350 | |
1223 | s2.Speed = NumberRange.new(2, 6) | |
1224 | s2.VelocitySpread = 360 | |
1225 | s2.ZOffset = 1 | |
1226 | s2.Parent = derp | |
1227 | local s3 = Instance.new("ParticleEmitter") | |
1228 | s3.Enabled = false | |
1229 | s3.LockedToPart = false | |
1230 | s3.Color = ColorSequence.new(Color3.new(0.1411764705882353, 0.9215686274509803, 0.9215686274509803)) | |
1231 | s3.LightEmission = 0.6 | |
1232 | s3.Size = NumberSequence.new({ | |
1233 | NumberSequenceKeypoint.new(0, 0.45, 0), | |
1234 | NumberSequenceKeypoint.new(0.853, 0.25, 0.1), | |
1235 | NumberSequenceKeypoint.new(1, 0, 0) | |
1236 | }) | |
1237 | s3.Texture = "rbxassetid://31270182" | |
1238 | s3.Transparency = NumberSequence.new({ | |
1239 | NumberSequenceKeypoint.new(0, 0.6, 0), | |
1240 | NumberSequenceKeypoint.new(0.89, 0.6, 0), | |
1241 | NumberSequenceKeypoint.new(1, 1, 0) | |
1242 | }) | |
1243 | s3.Name = "vid3" | |
1244 | s3.Lifetime = NumberRange.new(0.5) | |
1245 | s3.Acceleration = Vector3.new(0, 30, 0) | |
1246 | s3.Rate = 350 | |
1247 | s3.Speed = NumberRange.new(20, 30) | |
1248 | s3.VelocitySpread = 360 | |
1249 | s3.Parent = derp | |
1250 | derp.Anchored = true | |
1251 | derp.Transparency = 0.5 | |
1252 | derp.Size = Vector3.new(3, 2, 2) | |
1253 | derp.CFrame = hrp.CFrame | |
1254 | local lol = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://151760030", derp) | |
1255 | local sound = Instance.new("Sound") | |
1256 | sound.Name = "moose" | |
1257 | sound.Volume = 1 | |
1258 | sound.EmitterSize = 40 | |
1259 | sound.MaxDistance = 40 | |
1260 | sound.Looped = true | |
1261 | sound.Parent = derp | |
1262 | coroutine.resume(coroutine.create(function() | |
1263 | local hey = false | |
1264 | while derp do | |
1265 | swait() | |
1266 | watz = watz + hmm | |
1267 | derp.CFrame = derp.CFrame:lerp(hrp.CFrame * cf(-1.5, 3, 2.5) * ang(0, 0, rd(deg * math.cos(watz / intens))), 0.4) | |
1268 | derp.Size = derp.Size:lerp(Vector3.new(3 * (1 + sound.PlaybackLoudness / 500), 2 * (1 + sound.PlaybackLoudness / 500), 1 * (1 + sound.PlaybackLoudness / 1000)), 0.7) | |
1269 | lol.Scale = lol.Scale:lerp(Vector3.new(1 * (1 + sound.PlaybackLoudness / 500), 1 * (1 + sound.PlaybackLoudness / 500), 1 * (1 + sound.PlaybackLoudness / 500)), 0.7) | |
1270 | if hey == false and (3 < lol.Scale).magnitude then | |
1271 | hey = true | |
1272 | s3:Emit(20) | |
1273 | delay(0.25, function() | |
1274 | hey = false | |
1275 | end) | |
1276 | end | |
1277 | end | |
1278 | end)) | |
1279 | local sg = Instance.new("ScreenGui") | |
1280 | sg.Name = "simpleflips" | |
1281 | sg.Parent = plr.PlayerGui | |
1282 | local fr = Instance.new("Frame") | |
1283 | fr.AnchorPoint = Vector2.new(1, 0.5) | |
1284 | fr.BackgroundColor3 = Color3.new(0.09411764705882353, 0.9568627450980393, 1) | |
1285 | fr.BorderSizePixel = 2 | |
1286 | fr.Position = UDim2.new(0.975, 0, 0.5, 0) | |
1287 | fr.Size = UDim2.new(0, 200, 0, 100) | |
1288 | fr.Parent = sg | |
1289 | local mbox = Instance.new("TextBox") | |
1290 | mbox.AnchorPoint = Vector2.new(0.5, 0.5) | |
1291 | mbox.BackgroundColor3 = Color3.new(0.45098039215686275, 0.7803921568627451, 1) | |
1292 | mbox.BorderSizePixel = 2 | |
1293 | mbox.Position = UDim2.new(0.5, 0, 0.25, 0) | |
1294 | mbox.Size = UDim2.new(0, 150, 0, 40) | |
1295 | mbox.Font = "SourceSansBold" | |
1296 | mbox.FontSize = "Size24" | |
1297 | mbox.Text = "MEME" | |
1298 | mbox.TextWrapped = true | |
1299 | mbox.Parent = fr | |
1300 | local pley = Instance.new("TextButton") | |
1301 | pley.AnchorPoint = Vector2.new(0.5, 0.5) | |
1302 | pley.BackgroundColor3 = Color3.new(0.25098039215686274, 1, 0.3137254901960784) | |
1303 | pley.BorderSizePixel = 2 | |
1304 | pley.Position = UDim2.new(0.25, 0, 0.75, 0) | |
1305 | pley.Size = UDim2.new(0, 75, 0, 35) | |
1306 | pley.Font = "SourceSansBold" | |
1307 | pley.FontSize = "Size18" | |
1308 | pley.Text = "kappa" | |
1309 | pley.Parent = fr | |
1310 | local stap = Instance.new("TextButton") | |
1311 | stap.AnchorPoint = Vector2.new(0.5, 0.5) | |
1312 | stap.BackgroundColor3 = Color3.new(1, 0.25098039215686274, 0.11764705882352941) | |
1313 | stap.BorderSizePixel = 2 | |
1314 | stap.Position = UDim2.new(0.75, 0, 0.75, 0) | |
1315 | stap.Size = UDim2.new(0, 75, 0, 35) | |
1316 | stap.Font = "SourceSansBold" | |
1317 | stap.FontSize = "Size18" | |
1318 | stap.Text = "pride" | |
1319 | stap.Parent = fr | |
1320 | pl = pley.MouseButton1Click:connect(function() | |
1321 | sound.SoundId = "rbxassetid://" .. mbox.Text | |
1322 | sound:Play() | |
1323 | end) | |
1324 | st = stap.MouseButton1Click:connect(function() | |
1325 | sound:Stop() | |
1326 | end) | |
1327 | end | |
1328 | elseif boxingu == true then | |
1329 | activu = true | |
1330 | boxingu = false | |
1331 | local derp = modz:FindFirstChild("hurr") | |
1332 | local s3 = derp:FindFirstChild("vid3") | |
1333 | local s1 = derp:FindFirstChild("vid") | |
1334 | local s2 = derp:FindFirstChild("vid2") | |
1335 | local sound = derp:FindFirstChild("moose") | |
1336 | local sg = plr.PlayerGui:FindFirstChild("simpleflips") | |
1337 | pl:Disconnect() | |
1338 | st:Disconnect() | |
1339 | s3:Emit(40) | |
1340 | s1.Enabled = false | |
1341 | s2.Enabled = false | |
1342 | sound:Stop() | |
1343 | sg:Destroy() | |
1344 | derp.Transparency = 1 | |
1345 | local poo = Instance.new("Sound") | |
1346 | poo.SoundId = "rbxassetid://174658105" | |
1347 | poo.Volume = 1.25 | |
1348 | poo.TimePosition = 0.65 | |
1349 | poo.Parent = derp | |
1350 | poo:Play() | |
1351 | wait(0.75) | |
1352 | derp:Destroy() | |
1353 | activu = false | |
1354 | end | |
1355 | end | |
1356 | function hito(partoz, magn, dmg, debtim) | |
1357 | for _, guy in pairs(workspace:GetChildren()) do | |
1358 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= chr and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then | |
1359 | do | |
1360 | local humz = guy:FindFirstChild("Humanoid") | |
1361 | local hed = guy:FindFirstChild("Head") | |
1362 | humz:TakeDamage(dmg) | |
1363 | local db = Instance.new("StringValue") | |
1364 | db.Name = "alabo" | |
1365 | db.Parent = hed | |
1366 | delay(debtim, function() | |
1367 | db:Destroy() | |
1368 | end) | |
1369 | end | |
1370 | end | |
1371 | end | |
1372 | end | |
1373 | function animo(yep) | |
1374 | if yep == true then | |
1375 | anim.Parent = human | |
1376 | chr.Animate.Disabled = false | |
1377 | elseif yep == false then | |
1378 | chr.Animate.Disabled = true | |
1379 | anim.Parent = nil | |
1380 | end | |
1381 | end | |
1382 | mouse.KeyDown:connect(function(key) | |
1383 | if key == "f" then | |
1384 | suprfast() | |
1385 | end | |
1386 | if key == "q" then | |
1387 | torentmod() | |
1388 | end | |
1389 | if key == "c" then | |
1390 | fly() | |
1391 | end | |
1392 | if key == "e" then | |
1393 | eswing() | |
1394 | end | |
1395 | if key == "m" then | |
1396 | musiclel() | |
1397 | end | |
1398 | end) | |
1399 | tool.Equipped:connect(function() | |
1400 | selected = true | |
1401 | end) | |
1402 | tool.Unequipped:connect(function() | |
1403 | selected = false | |
1404 | end) |