SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Targer = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | return RealPlayer[Index] | |
88 | end | |
89 | end; | |
90 | __tostring = function(self) | |
91 | return RealPlayer.Name | |
92 | end | |
93 | }) | |
94 | end | |
95 | end | |
96 | if RealGame[Index] then | |
97 | local Type = type(RealGame[Index]) | |
98 | if Type == "function" then | |
99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
100 | return function (self,Service) | |
101 | if Service:lower() == "players" then | |
102 | return setmetatable({},{ | |
103 | __index = function (self2,Index2) | |
104 | local RealService = RealGame:GetService(Service) | |
105 | local Type2 = type(Index2) | |
106 | if Type2 == "function" then | |
107 | return function (self,...) | |
108 | return RealService[Index2](RealService,...) | |
109 | end | |
110 | else | |
111 | if Index2:lower() == "localplayer" then | |
112 | return Sandbox(owner) | |
113 | end | |
114 | return RealService[Index2] | |
115 | end | |
116 | end; | |
117 | __tostring = function(self) | |
118 | return RealGame:GetService(Service).Name | |
119 | end | |
120 | }) | |
121 | elseif Service:lower() == "contextactionservice" then | |
122 | return InternalData["ContextActionService"] | |
123 | elseif Service:lower() == "contextactionservice" then | |
124 | return InternalData["UserInputService"] | |
125 | elseif Service:lower() == "runservice" then | |
126 | return setmetatable({},{ | |
127 | __index = function(self2,Index2) | |
128 | local RealService = RealGame:GetService(Service) | |
129 | local Type2 = type(Index2) | |
130 | if Type2 == "function" then | |
131 | return function (self,...) | |
132 | return RealService[Index2](RealService,...) | |
133 | end | |
134 | else | |
135 | if Index2:lower() == "bindtorenderstep" then | |
136 | return function (self,Name,Priority,Function) | |
137 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
138 | end | |
139 | end | |
140 | if Index2:lower() == "renderstepped" then | |
141 | return RealService["Stepped"] | |
142 | end | |
143 | return RealService[Index2] | |
144 | end | |
145 | end | |
146 | }) | |
147 | else | |
148 | return RealGame:GetService(Service) | |
149 | end | |
150 | end | |
151 | end | |
152 | return function (self,...) | |
153 | return RealGame[Index](RealGame,...) | |
154 | end | |
155 | else | |
156 | if game:GetService(Index) then | |
157 | return game:GetService(Index) | |
158 | end | |
159 | return RealGame[Index] | |
160 | end | |
161 | else | |
162 | return nil | |
163 | end | |
164 | end | |
165 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
166 | ||
167 | print("Making ServerScript") | |
168 | local remote = NS([[plr = owner | |
169 | keyingup = function() end | |
170 | spec = function() end | |
171 | cliham = function() end | |
172 | repeat | |
173 | wait(0.4) | |
174 | until plr.Character | |
175 | chr = plr.Character | |
176 | human = chr:FindFirstChild("Humanoid") | |
177 | selected = false | |
178 | equipd = false | |
179 | tors = chr.Torso | |
180 | rarm = chr["Right Arm"] | |
181 | larm = chr["Left Arm"] | |
182 | rleg = chr["Right Leg"] | |
183 | lleg = chr["Left Leg"] | |
184 | hrp = chr.HumanoidRootPart | |
185 | hed = chr.Head | |
186 | anim = human.Animator | |
187 | activu = false | |
188 | ragged = false | |
189 | batting = false | |
190 | Heartbeat = Instance.new("BindableEvent") | |
191 | Heartbeat.Name = "Heartbeat" | |
192 | Heartbeat.Parent = script | |
193 | frame = 0.03333333333333333 | |
194 | tf = 0 | |
195 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
196 | tf = tf + s | |
197 | if tf >= frame then | |
198 | for i = 1, math.floor(tf / frame) do | |
199 | Heartbeat:Fire() | |
200 | end | |
201 | tf = tf - frame * math.floor(tf / frame) | |
202 | end | |
203 | end) | |
204 | function swait(num) | |
205 | if num == 0 or num == nil then | |
206 | Heartbeat.Event:wait() | |
207 | else | |
208 | for i = 1, num do | |
209 | Heartbeat.Event:wait() | |
210 | end | |
211 | end | |
212 | end | |
213 | modz = Instance.new("Model") | |
214 | modz.Name = "efx" | |
215 | modz.Parent = chr | |
216 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
217 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
218 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
219 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
220 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
221 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
222 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
223 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
224 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
225 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
226 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
227 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
228 | local nscale = Instance.new("NumberValue") | |
229 | nscale.Value = 1 | |
230 | nscale.Parent = nil | |
231 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
232 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
233 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
234 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
235 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
236 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
237 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
238 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
239 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
240 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
241 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
242 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
243 | nscale.Changed:connect(function() | |
244 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
245 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
246 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
247 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
248 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
249 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
250 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
251 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
252 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
253 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
254 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
255 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
256 | end) | |
257 | RS = tors:FindFirstChild("Right Shoulder") | |
258 | LS = tors:FindFirstChild("Left Shoulder") | |
259 | RH = tors:FindFirstChild("Right Hip") | |
260 | LH = tors:FindFirstChild("Left Hip") | |
261 | RJ = hrp:FindFirstChild("RootJoint") | |
262 | N = tors:FindFirstChild("Neck") | |
263 | cf = CFrame.new | |
264 | ang = CFrame.Angles | |
265 | rd = math.rad | |
266 | rd2 = math.random | |
267 | function nooutline(p) | |
268 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 | |
269 | end | |
270 | function makepart(color, name, reflec, trans, mater, parnt, cfram) | |
271 | local port = Instance.new("Part") | |
272 | port.BrickColor = BrickColor.new(color) | |
273 | port.Name = name | |
274 | port.Transparency = trans | |
275 | nooutline(port) | |
276 | port.Reflectance = reflec | |
277 | port.Material = mater | |
278 | port.Anchored = false | |
279 | port.CanCollide = false | |
280 | port.Locked = true | |
281 | port.Size = Vector3.new(0.2, 0.2, 0.2) | |
282 | port.Parent = parnt | |
283 | return port | |
284 | end | |
285 | function makemesh(meshtype, scale, meshid, parent) | |
286 | local mes = Instance.new("SpecialMesh") | |
287 | mes.MeshType = meshtype | |
288 | mes.Scale = scale | |
289 | if meshtype == "FileMesh" then | |
290 | mes.MeshId = meshid | |
291 | end | |
292 | mes.Parent = parent | |
293 | return mes | |
294 | end | |
295 | function makeweld(parent, p0, p1, c0, c1) | |
296 | local wel = Instance.new("Weld") | |
297 | wel.Part0 = p0 | |
298 | wel.Part1 = p1 | |
299 | wel.C0 = c0 | |
300 | if c1 ~= nil then | |
301 | wel.C1 = c1 | |
302 | end | |
303 | wel.Parent = parent | |
304 | return wel | |
305 | end | |
306 | local lauf1 = Instance.new("Sound") | |
307 | lauf1.SoundId = "rbxassetid://137473066" | |
308 | lauf1.Volume = 1.5 | |
309 | lauf1.Pitch = 2 | |
310 | lauf1.Parent = hrp | |
311 | function lerpz(joint, prop, cfrmz, alp) | |
312 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
313 | end | |
314 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
315 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
316 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
317 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
318 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
319 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
320 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
321 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
322 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
323 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
324 | function resetlerp() | |
325 | RJ.C0 = RJC0 | |
326 | RJ.C1 = RJC1 | |
327 | N.C0 = NC0 | |
328 | N.C1 = NC1 | |
329 | RS.C0 = RSC0 | |
330 | RS.C1 = RSC1 | |
331 | LS.C0 = LSC0 | |
332 | LS.C1 = LSC1 | |
333 | RH.C0 = RHC0 | |
334 | RH.C1 = RHC1 | |
335 | LH.C0 = LHC0 | |
336 | LH.C1 = LHC1 | |
337 | end | |
338 | function test() | |
339 | if selected == false or activu == true then | |
340 | return | |
341 | end | |
342 | if ragged == false then | |
343 | ragged = true | |
344 | human.PlatformStand = true | |
345 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
346 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
347 | makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder") | |
348 | maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0)) | |
349 | end | |
350 | if larm and tors:FindFirstChild("Left Shoulder") then | |
351 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
352 | makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder") | |
353 | maketouchy(larm, larm, CFrame.new(0, 0.5, 0)) | |
354 | end | |
355 | if rleg and tors:FindFirstChild("Right Hip") then | |
356 | tors:FindFirstChild("Right Hip"):Destroy() | |
357 | makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip") | |
358 | maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0)) | |
359 | end | |
360 | if lleg and tors:FindFirstChild("Left Hip") then | |
361 | tors:FindFirstChild("Left Hip"):Destroy() | |
362 | makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip") | |
363 | maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0)) | |
364 | end | |
365 | elseif ragged == true then | |
366 | ragged = false | |
367 | human.Jump = true | |
368 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
369 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
370 | makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder") | |
371 | rarm:FindFirstChild("touchy"):Destroy() | |
372 | end | |
373 | if larm and tors:FindFirstChild("Left Shoulder") then | |
374 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
375 | makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder") | |
376 | larm:FindFirstChild("touchy"):Destroy() | |
377 | end | |
378 | if rleg and tors:FindFirstChild("Right Hip") then | |
379 | tors:FindFirstChild("Right Hip"):Destroy() | |
380 | makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip") | |
381 | rleg:FindFirstChild("touchy"):Destroy() | |
382 | end | |
383 | if lleg and tors:FindFirstChild("Left Hip") then | |
384 | tors:FindFirstChild("Left Hip"):Destroy() | |
385 | makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip") | |
386 | lleg:FindFirstChild("touchy"):Destroy() | |
387 | end | |
388 | RS = tors:FindFirstChild("Right Shoulder") | |
389 | LS = tors:FindFirstChild("Left Shoulder") | |
390 | RH = tors:FindFirstChild("Right Hip") | |
391 | LH = tors:FindFirstChild("Left Hip") | |
392 | RJ = hrp:FindFirstChild("RootJoint") | |
393 | N = tors:FindFirstChild("Neck") | |
394 | end | |
395 | end | |
396 | function makegloo(paren, co, ci, parto, parti, nam) | |
397 | local gloo = Instance.new("Glue") | |
398 | gloo.Name = nam | |
399 | gloo.C0 = co | |
400 | gloo.C1 = ci | |
401 | gloo.Part0 = parto | |
402 | gloo.Part1 = parti | |
403 | gloo.Parent = paren | |
404 | end | |
405 | function makejoint(paren, co, ci, parto, parti, nam) | |
406 | local gloo = Instance.new("Motor6D") | |
407 | gloo.Name = nam | |
408 | gloo.C0 = co | |
409 | gloo.C1 = ci | |
410 | gloo.Part0 = parto | |
411 | gloo.Part1 = parti | |
412 | gloo.Parent = paren | |
413 | end | |
414 | function maketouchy(parent, limb, cframe) | |
415 | local pr = Instance.new("Part") | |
416 | pr.Name = "touchy" | |
417 | pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
418 | pr.Transparency = 1 | |
419 | pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) | |
420 | pr.CanCollide = true | |
421 | pr.Anchored = false | |
422 | pr.Parent = parent | |
423 | local w = Instance.new("Weld") | |
424 | w.Part0 = pr | |
425 | w.Part1 = limb | |
426 | w.C0 = cframe | |
427 | w.Parent = pr | |
428 | end | |
429 | local dipperhat = chr:FindFirstChild("DXD_DipperHat") | |
430 | local dipperrot | |
431 | if dipperhat then | |
432 | dipperrot = dipperhat.Handle.HatAttachment.Rotation | |
433 | end | |
434 | function bat() | |
435 | if selected == false or activu == true then | |
436 | return | |
437 | end | |
438 | if batting == false then | |
439 | batting = true | |
440 | do | |
441 | local bmod = Instance.new("Model") | |
442 | bmod.Name = "bmodel" | |
443 | bmod.Parent = chr | |
444 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
445 | local hmes = makemesh("Head", Vector3.new(2, 9, 2), nil, hnd) | |
446 | local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
447 | local pt1 = makepart("Bright yellow", "pt1", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
448 | local p1m = makemesh("Head", Vector3.new(2.5, 2.5, 2.5), nil, pt1) | |
449 | local p1w = makeweld(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
450 | local pt2 = makepart("Bright yellow", "pt2", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
451 | local p2m = makemesh("FileMesh", Vector3.new(0.375, 0.375, 0.375), "rbxassetid://250640098", pt2) | |
452 | p2m.TextureId = "rbxassetid://250639536" | |
453 | local p2w = makeweld(pt2, pt2, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), nil) | |
454 | local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
455 | local p3m = makemesh("Head", Vector3.new(2.5, 2.5, 2.5), nil, pt3) | |
456 | local p3w = makeweld(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), nil) | |
457 | local pt4 = makepart("Bright yellow", "pt4", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
458 | local p4m = makemesh("FileMesh", Vector3.new(0.025, 0.025, 0.025), "rbxassetid://703458158", pt4) | |
459 | local p4w = makeweld(pt4, pt4, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), nil) | |
460 | local pt5 = makepart("Bright yellow", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
461 | local p5m = makemesh("Cylinder", Vector3.new(21.5, 6.25, 6.25), nil, pt5) | |
462 | local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), nil) | |
463 | local pt6 = makepart("Bright yellow", "pt6", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
464 | local p6m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt6) | |
465 | local p6w = makeweld(pt6, pt6, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), nil) | |
466 | local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
467 | local p7m = makemesh("FileMesh", Vector3.new(0.95, 0.95, 0.95), "rbxassetid://272942659", pt7) | |
468 | p7m.TextureId = "rbxassetid://272942750" | |
469 | local p7w = makeweld(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), nil) | |
470 | local swingwoo = Instance.new("Sound") | |
471 | swingwoo.SoundId = "rbxassetid://10209640" | |
472 | swingwoo.Pitch = rd2(10, 11) / 10 | |
473 | swingwoo.Name = "sweae" | |
474 | swingwoo.Volume = 1 | |
475 | swingwoo.Parent = hrp | |
476 | clibat = function() | |
477 | if selected == false or activu == true or ragged == true then | |
478 | return | |
479 | end | |
480 | activu = true | |
481 | for _ = 1, 5 do | |
482 | swait() | |
483 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
484 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
485 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
486 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
487 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
488 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
489 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
490 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
491 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
492 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
493 | end | |
494 | local bon = Instance.new("Sound") | |
495 | bon.SoundId = "rbxassetid://135436482" | |
496 | bon.Pitch = rd2(10, 12) / 10 | |
497 | bon.Volume = 1 | |
498 | bon.Parent = hrp | |
499 | game.Debris:AddItem(bon, 1) | |
500 | bon:Play() | |
501 | swingwoo:Play() | |
502 | for X = 1, 5 do | |
503 | swait() | |
504 | if X > 1 then | |
505 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40))) | |
506 | end | |
507 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
508 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
509 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
510 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
511 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
512 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
513 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
514 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
515 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
516 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
517 | end | |
518 | activu = false | |
519 | end | |
520 | spec = function(keya) | |
521 | if selected == false or activu == true or ragged == true then | |
522 | return | |
523 | end | |
524 | if keya == "e" then | |
525 | activu = true | |
526 | local speed = human.WalkSpeed | |
527 | human.WalkSpeed = 0 | |
528 | human:SetStateEnabled(3, false) | |
529 | local function expa() | |
530 | local sond = Instance.new("Sound") | |
531 | sond.Volume = 1.25 | |
532 | sond.Pitch = 1 | |
533 | sond.EmitterSize = 15 | |
534 | sond.SoundId = "rbxassetid://315152748" | |
535 | sond.Parent = pt6 | |
536 | sond:Play() | |
537 | for _ = 1, 3 do | |
538 | swait() | |
539 | hmes.Scale = hmes.Scale:lerp(Vector3.new(6, 27, 6), 0.7) | |
540 | p1m.Scale = p1m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7) | |
541 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), 0.7) | |
542 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.125, 1.125, 1.125), 0.7) | |
543 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 3.6750000000000003, 0.22499999999999998), 0.7) | |
544 | p3m.Scale = p3m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7) | |
545 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), 0.7) | |
546 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.07500000000000001, 0.07500000000000001, 0.07500000000000001), 0.7) | |
547 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -3.75, 0), 0.7) | |
548 | p5m.Scale = p5m.Scale:lerp(Vector3.new(64.5, 18.75, 18.75), 0.7) | |
549 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -12.075000000000001, 0), 0.7) | |
550 | p6m.Scale = p6m.Scale:lerp(Vector3.new(19.5, 19.5, 19.5), 0.7) | |
551 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -18.15, 0), 0.7) | |
552 | p7m.Scale = p7m.Scale:lerp(Vector3.new(2.8499999999999996, 2.8499999999999996, 2.8499999999999996), 0.7) | |
553 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -18.6, 0), 0.7) | |
554 | end | |
555 | for _ = 1, 5 do | |
556 | swait() | |
557 | hmes.Scale = hmes.Scale:lerp(Vector3.new(4, 18, 4), 0.7) | |
558 | p1m.Scale = p1m.Scale:lerp(Vector3.new(5, 5, 5), 0.7) | |
559 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 2, 0), 0.7) | |
560 | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.75, 0.75, 0.75), 0.7) | |
561 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 2.45, 0.15), 0.7) | |
562 | p3m.Scale = p3m.Scale:lerp(Vector3.new(5, 5, 5), 0.7) | |
563 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -2, 0), 0.7) | |
564 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.05, 0.05, 0.05), 0.7) | |
565 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -2.5, 0), 0.7) | |
566 | p5m.Scale = p5m.Scale:lerp(Vector3.new(43, 12.5, 12.5), 0.7) | |
567 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -8.05, 0), 0.7) | |
568 | p6m.Scale = p6m.Scale:lerp(Vector3.new(13, 13, 13), 0.7) | |
569 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -12.1, 0), 0.7) | |
570 | p7m.Scale = p7m.Scale:lerp(Vector3.new(1.9, 1.9, 1.9), 0.7) | |
571 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -12.4, 0), 0.7) | |
572 | end | |
573 | sond.Pitch = 0.75 | |
574 | sond:Play() | |
575 | for _ = 1, 3 do | |
576 | swait() | |
577 | hmes.Scale = hmes.Scale:lerp(Vector3.new(12, 54, 12), 0.7) | |
578 | p1m.Scale = p1m.Scale:lerp(Vector3.new(15, 15, 15), 0.7) | |
579 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 6, 0), 0.7) | |
580 | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.25, 2.25, 2.25), 0.7) | |
581 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 7.3500000000000005, 0.44999999999999996), 0.7) | |
582 | p3m.Scale = p3m.Scale:lerp(Vector3.new(15, 15, 15), 0.7) | |
583 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6, 0), 0.7) | |
584 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.15000000000000002, 0.15000000000000002, 0.15000000000000002), 0.7) | |
585 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -7.5, 0), 0.7) | |
586 | p5m.Scale = p5m.Scale:lerp(Vector3.new(129, 37.5, 37.5), 0.7) | |
587 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -24.150000000000002, 0), 0.7) | |
588 | p6m.Scale = p6m.Scale:lerp(Vector3.new(39, 39, 39), 0.7) | |
589 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -36.3, 0), 0.7) | |
590 | p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 5.699999999999999, 5.699999999999999), 0.7) | |
591 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -37.2, 0), 0.7) | |
592 | end | |
593 | for _ = 1, 5 do | |
594 | swait() | |
595 | hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7) | |
596 | p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
597 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7) | |
598 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7) | |
599 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7) | |
600 | p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
601 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7) | |
602 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7) | |
603 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7) | |
604 | p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7) | |
605 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7) | |
606 | p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7) | |
607 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7) | |
608 | p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7) | |
609 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7) | |
610 | end | |
611 | sond.Pitch = 0.4 | |
612 | sond:Play() | |
613 | game.Debris:AddItem(sond, 2) | |
614 | for _ = 1, 3 do | |
615 | swait() | |
616 | hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7) | |
617 | p1m.Scale = p1m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7) | |
618 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 9, 0), 0.7) | |
619 | p2m.Scale = p2m.Scale:lerp(Vector3.new(3.375, 3.375, 3.375), 0.7) | |
620 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 11.025, 0.6749999999999999), 0.7) | |
621 | p3m.Scale = p3m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7) | |
622 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -9, 0), 0.7) | |
623 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.225, 0.225, 0.225), 0.7) | |
624 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -11.25, 0), 0.7) | |
625 | p5m.Scale = p5m.Scale:lerp(Vector3.new(193.5, 56.25, 56.25), 0.7) | |
626 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -36.225, 0), 0.7) | |
627 | p6m.Scale = p6m.Scale:lerp(Vector3.new(58.5, 58.5, 58.5), 0.7) | |
628 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -54.449999999999996, 0), 0.7) | |
629 | p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 8.549999999999999, 8.549999999999999), 0.7) | |
630 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -55.800000000000004, 0), 0.7) | |
631 | end | |
632 | for _ = 1, 5 do | |
633 | swait() | |
634 | hmes.Scale = hmes.Scale:lerp(Vector3.new(14, 63, 14), 0.7) | |
635 | p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5, 17.5, 17.5), 0.7) | |
636 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7, 0), 0.7) | |
637 | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625, 2.625, 2.625), 0.7) | |
638 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001, 0.525), 0.7) | |
639 | p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5, 17.5, 17.5), 0.7) | |
640 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7, 0), 0.7) | |
641 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002, 0.17500000000000002, 0.17500000000000002), 0.7) | |
642 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75, 0), 0.7) | |
643 | p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5, 43.75, 43.75), 0.7) | |
644 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004, 0), 0.7) | |
645 | p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5, 45.5, 45.5), 0.7) | |
646 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35, 0), 0.7) | |
647 | p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995, 6.6499999999999995, 6.6499999999999995), 0.7) | |
648 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4, 0), 0.7) | |
649 | end | |
650 | end | |
651 | for _ = 1, 9 do | |
652 | swait() | |
653 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
654 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
655 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
656 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
657 | lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5) | |
658 | if dipperhat then | |
659 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3) | |
660 | end | |
661 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
662 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
663 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
664 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
665 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
666 | end | |
667 | for _ = 1, 9 do | |
668 | swait() | |
669 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
670 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
671 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
672 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
673 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3) | |
674 | if dipperhat then | |
675 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3) | |
676 | end | |
677 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
678 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
679 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
680 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
681 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
682 | end | |
683 | for _ = 1, 30 do | |
684 | swait() | |
685 | lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2) | |
686 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2) | |
687 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.2) | |
688 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
689 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2) | |
690 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
691 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2) | |
692 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
693 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2) | |
694 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
695 | end | |
696 | expa() | |
697 | for O = 1, 10 do | |
698 | swait() | |
699 | lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01) | |
700 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01) | |
701 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.001 + O * 0.01) | |
702 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
703 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01) | |
704 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
705 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01) | |
706 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
707 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01) | |
708 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
709 | end | |
710 | local whoooo = Instance.new("Sound") | |
711 | whoooo.Volume = 3 | |
712 | whoooo.TimePosition = 0.15 | |
713 | whoooo.Pitch = 0.5 | |
714 | whoooo.SoundId = "rbxassetid://320557353" | |
715 | whoooo.Parent = pt5 | |
716 | whoooo:Play() | |
717 | game.Debris:AddItem(whoooo, 2) | |
718 | for O = 1, 6 do | |
719 | swait() | |
720 | hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -100 + Vector3.new(0, 50, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160))) | |
721 | lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05) | |
722 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05) | |
723 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(20), rd(20)), 0.1 + O * 0.05) | |
724 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
725 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05) | |
726 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
727 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05) | |
728 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
729 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05) | |
730 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
731 | end | |
732 | for O = 1, 13 do | |
733 | swait() | |
734 | hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075) | |
735 | p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) | |
736 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075) | |
737 | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075) | |
738 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075) | |
739 | p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) | |
740 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075) | |
741 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075) | |
742 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075) | |
743 | p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075) | |
744 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075) | |
745 | p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075) | |
746 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075) | |
747 | p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075) | |
748 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075) | |
749 | lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075) | |
750 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075) | |
751 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075) | |
752 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
753 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075) | |
754 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
755 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075) | |
756 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
757 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075) | |
758 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
759 | end | |
760 | if dipperhat then | |
761 | dipperhat.Handle.HatAttachment.Rotation = dipperrot | |
762 | end | |
763 | human.WalkSpeed = speed | |
764 | human:SetStateEnabled(3, true) | |
765 | activu = false | |
766 | end | |
767 | if keya == "q" then | |
768 | activu = true | |
769 | do | |
770 | local checkkey = true | |
771 | keyingup = function(xzx) | |
772 | if xzx == "q" then | |
773 | checkkey = false | |
774 | end | |
775 | end | |
776 | repeat | |
777 | for _ = 1, 2 do | |
778 | swait() | |
779 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
780 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
781 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
782 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
783 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
784 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
785 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
786 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
787 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
788 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
789 | end | |
790 | swingwoo:Play() | |
791 | for T = 1, 2 do | |
792 | swait() | |
793 | if T == 2 then | |
794 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10))) | |
795 | end | |
796 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
797 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
798 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
799 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
800 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
801 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
802 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
803 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
804 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
805 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
806 | end | |
807 | for _ = 1, 2 do | |
808 | swait() | |
809 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7) | |
810 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
811 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7) | |
812 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
813 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7) | |
814 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
815 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
816 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
817 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7) | |
818 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
819 | end | |
820 | swingwoo:Play() | |
821 | for T = 1, 2 do | |
822 | swait() | |
823 | if T == 2 then | |
824 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10))) | |
825 | end | |
826 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7) | |
827 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
828 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7) | |
829 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
830 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
831 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
832 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
833 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
834 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7) | |
835 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
836 | end | |
837 | until not checkkey | |
838 | keyingup = function() end | |
839 | activu = false | |
840 | end | |
841 | end | |
842 | if keya == "f" then | |
843 | activu = true | |
844 | do | |
845 | local speed = human.WalkSpeed | |
846 | human.WalkSpeed = 2 | |
847 | human:SetStateEnabled(3, false) | |
848 | local checkkey = true | |
849 | local chargecounter = 0 | |
850 | keyingup = function(xzx) | |
851 | if xzx == "f" then | |
852 | checkkey = false | |
853 | end | |
854 | end | |
855 | local firederp | |
856 | for _ = 1, 8 do | |
857 | swait() | |
858 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
859 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
860 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
861 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
862 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
863 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
864 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
865 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
866 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
867 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
868 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
869 | end | |
870 | repeat | |
871 | swait() | |
872 | chargecounter = chargecounter + 1 | |
873 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.019) | |
874 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.019) | |
875 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.019) | |
876 | if chargecounter > 30 and firederp == nil then | |
877 | firederp = Instance.new("Fire") | |
878 | firederp.Parent = pt5 | |
879 | end | |
880 | until not checkkey or chargecounter > 50 | |
881 | swingwoo:Play() | |
882 | for U = 1, 10 do | |
883 | swait() | |
884 | if U < 3 then | |
885 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 3) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 25))) | |
886 | if chargecounter > 30 then | |
887 | tagexplode(pt5, 5, 1) | |
888 | end | |
889 | end | |
890 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
891 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
892 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
893 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
894 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
895 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
896 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
897 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
898 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
899 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
900 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
901 | end | |
902 | if firederp then | |
903 | firederp:Destroy() | |
904 | end | |
905 | swait(10) | |
906 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
907 | keyingup = function() end | |
908 | human.WalkSpeed = speed | |
909 | human:SetStateEnabled(3, true) | |
910 | activu = false | |
911 | end | |
912 | end | |
913 | end | |
914 | end | |
915 | elseif batting == true then | |
916 | batting = false | |
917 | clibat = function() end | |
918 | spec = function() end | |
919 | hrp.sweae:Destroy() | |
920 | local batmod = chr:FindFirstChild("bmodel") | |
921 | batmod.hnd.Weld:Destroy() | |
922 | batmod.PrimaryPart = batmod.hnd | |
923 | batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1)) | |
924 | for _, A in pairs(batmod:GetChildren()) do | |
925 | if A.ClassName == "Part" then | |
926 | A.CanCollide = true | |
927 | A.Anchored = false | |
928 | end | |
929 | end | |
930 | batmod.Parent = workspace | |
931 | game.Debris:AddItem(batmod, 8) | |
932 | end | |
933 | end | |
934 | local movin = false | |
935 | function ham() | |
936 | if batting == false then | |
937 | batting = true | |
938 | do | |
939 | local bmod = Instance.new("Model") | |
940 | bmod.Name = "bmodel" | |
941 | bmod.Parent = chr | |
942 | local makemotor = function(parent, p0, p1, c0, c1) | |
943 | local wel = Instance.new("Motor6D") | |
944 | wel.Part0 = p0 | |
945 | wel.Part1 = p1 | |
946 | wel.C0 = c0 | |
947 | if c1 ~= nil then | |
948 | wel.C1 = c1 | |
949 | end | |
950 | wel.Parent = parent | |
951 | return wel | |
952 | end | |
953 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
954 | hnd.Anchored = true | |
955 | local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd) | |
956 | movin = true | |
957 | hnd.CFrame = hrp.CFrame | |
958 | coroutine.resume(coroutine.create(function() | |
959 | while hnd.Anchored == true do | |
960 | swait() | |
961 | if movin then | |
962 | hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65) | |
963 | end | |
964 | end | |
965 | end)) | |
966 | local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
967 | local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1) | |
968 | local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil) | |
969 | local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
970 | local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2) | |
971 | local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil) | |
972 | local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
973 | local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3) | |
974 | local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil) | |
975 | local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
976 | local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4) | |
977 | - | hd.BrickColor = BrickColor.new("Bright yellow") |
977 | + | |
978 | local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil) | |
979 | local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
980 | local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5) | |
981 | local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil) | |
982 | local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
983 | local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6) | |
984 | local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil) | |
985 | local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
986 | local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7) | |
987 | local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil) | |
988 | local hdec1 = Instance.new("Decal") | |
989 | hdec1.Texture = "rbxasset://textures/face.png" | |
990 | hdec1.Face = "Front" | |
991 | hdec1.Parent = pt7 | |
992 | local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
993 | local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8) | |
994 | local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil) | |
995 | local hdec2 = Instance.new("Decal") | |
996 | hdec2.Texture = "rbxasset://textures/face.png" | |
997 | hdec2.Face = "Front" | |
998 | hdec2.Parent = pt8 | |
999 | local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1000 | local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9) | |
1001 | local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil) | |
1002 | p9m.TextureId = "rbxassetid://272942750" | |
1003 | local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1004 | local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10) | |
1005 | local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil) | |
1006 | local hdec3 = Instance.new("Decal") | |
1007 | hdec3.Texture = "rbxasset://textures/face.png" | |
1008 | hdec3.Face = "Front" | |
1009 | hdec3.Parent = pt10 | |
1010 | local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
1011 | local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11) | |
1012 | local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil) | |
1013 | local hdec4 = Instance.new("Decal") | |
1014 | hdec4.Texture = "rbxasset://textures/face.png" | |
1015 | hdec4.Face = "Front" | |
1016 | hdec4.Parent = pt11 | |
1017 | local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1018 | local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12) | |
1019 | local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil) | |
1020 | local hdec5 = Instance.new("Decal") | |
1021 | hdec5.Texture = "rbxasset://textures/face.png" | |
1022 | hdec5.Face = "Front" | |
1023 | hdec5.Parent = pt12 | |
1024 | local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
1025 | local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13) | |
1026 | local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil) | |
1027 | local hdec6 = Instance.new("Decal") | |
1028 | hdec6.Texture = "rbxasset://textures/face.png" | |
1029 | hdec6.Face = "Front" | |
1030 | hdec6.Parent = pt13 | |
1031 | - | learm.BrickColor = BrickColor.new("Bright yellow") |
1031 | + | |
1032 | if selected == false or activu == true or ragged == true then | |
1033 | return | |
1034 | end | |
1035 | activu = true | |
1036 | movin = false | |
1037 | for B = 1, 20 do | |
1038 | swait() | |
1039 | - | riarm.BrickColor = BrickColor.new("Bright yellow") |
1039 | + | |
1040 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4) | |
1041 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4) | |
1042 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1043 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4) | |
1044 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1045 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4) | |
1046 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1047 | - | leleg.BrickColor = BrickColor.new("Br. yellowish green") |
1047 | + | |
1048 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1049 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045) | |
1050 | end | |
1051 | for B = 1, 30 do | |
1052 | swait() | |
1053 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80) | |
1054 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80) | |
1055 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80) | |
1056 | - | rileg.BrickColor = BrickColor.new("Br. yellowish green") |
1056 | + | |
1057 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80) | |
1058 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1059 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80) | |
1060 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1061 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80) | |
1062 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1063 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
1064 | end | |
1065 | - | tor.BrickColor = BrickColor.new("Bright blue") |
1065 | + | |
1066 | swait() | |
1067 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15) | |
1068 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15) | |
1069 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15) | |
1070 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1071 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15) | |
1072 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1073 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15) | |
1074 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1075 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15) | |
1076 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1077 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
1078 | end | |
1079 | for B = 1, 4 do | |
1080 | swait() | |
1081 | lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1) | |
1082 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1) | |
1083 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1) | |
1084 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1085 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1) | |
1086 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1087 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1) | |
1088 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1089 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1) | |
1090 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1091 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
1092 | end | |
1093 | swait(15) | |
1094 | movin = true | |
1095 | activu = false | |
1096 | end | |
1097 | end | |
1098 | elseif batting == true then | |
1099 | batting = false | |
1100 | cliham = function() end | |
1101 | local badevz = chr:FindFirstChild("bmodel") | |
1102 | badevz.PrimaryPart = badevz.hnd | |
1103 | for _, A in pairs(badevz:GetChildren()) do | |
1104 | if A.ClassName == "Part" then | |
1105 | A.CanCollide = true | |
1106 | A.Anchored = false | |
1107 | end | |
1108 | end | |
1109 | movin = false | |
1110 | badevz.Parent = workspace | |
1111 | badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0)) | |
1112 | game.Debris:AddItem(badevz, 8) | |
1113 | end | |
1114 | end | |
1115 | function lauf() | |
1116 | if selected == false or activu == true then | |
1117 | return | |
1118 | end | |
1119 | lauf1:Play() | |
1120 | end | |
1121 | function makenoob(cfrem, scalo, rags) | |
1122 | nscale.Value = scalo | |
1123 | local md = Instance.new("Model") | |
1124 | md.Name = "Noob" | |
1125 | md.Parent = workspace | |
1126 | local hu = Instance.new("Humanoid") | |
1127 | hu.RigType = "R6" | |
1128 | hu.MaxHealth = 100 * scalo | |
1129 | hu.Health = 100 * scalo | |
1130 | hu.Parent = md | |
1131 | local anm = Instance.new("Animator") | |
1132 | anm.Parent = hu | |
1133 | hu.PlatformStand = true | |
1134 | local light = function(part) | |
1135 | part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5) | |
1136 | end | |
1137 | local hd = Instance.new("Part") | |
1138 | hd.Name = "Head" | |
1139 | hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
1140 | hd.TopSurface = "Smooth" | |
1141 | hd.BottomSurface = "Inlet" | |
1142 | hd.Locked = true | |
1143 | hd.BrickColor = BrickColor.new("Really black") | |
1144 | hd.CanCollide = true | |
1145 | hd.Anchored = false | |
1146 | light(hd) | |
1147 | hd.Parent = md | |
1148 | local hm = Instance.new("SpecialMesh") | |
1149 | hm.MeshType = "Head" | |
1150 | hm.Scale = Vector3.new(1.25, 1.25, 1.25) | |
1151 | hm.Parent = hd | |
1152 | local hf = Instance.new("Decal") | |
1153 | hf.Texture = "rbxasset://textures/face.png" | |
1154 | local gen = math.random(1, 40) | |
1155 | if gen == 3 then | |
1156 | hf.Texture = "rbxassetid://260884109" | |
1157 | end | |
1158 | if gen == 8 then | |
1159 | hf.Texture = "rbxassetid://260569492" | |
1160 | end | |
1161 | if gen == 12 then | |
1162 | hf.Texture = "rbxassetid://259580505" | |
1163 | end | |
1164 | if gen == 16 then | |
1165 | hf.Texture = "rbxassetid://259579232" | |
1166 | end | |
1167 | if gen == 24 then | |
1168 | hf.Texture = "rbxassetid://259571525" | |
1169 | end | |
1170 | if gen == 28 then | |
1171 | hf.Texture = "rbxassetid://258283210" | |
1172 | end | |
1173 | if gen == 32 then | |
1174 | hf.Texture = "rbxassetid://258940032" | |
1175 | end | |
1176 | if gen == 38 then | |
1177 | hf.Texture = "rbxassetid://673220970" | |
1178 | hf.Color3 = Color3.new(0, 0, 0) | |
1179 | end | |
1180 | hf.Face = "Front" | |
1181 | hf.Parent = hd | |
1182 | local hrpa = Instance.new("Part") | |
1183 | hrpa.Name = "HumanoidRootPart" | |
1184 | hrpa.TopSurface, hrpa.BottomSurface = 0, 0 | |
1185 | hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1186 | hrpa.Transparency = 1 | |
1187 | - | b.BrickColor = BrickColor.new("Institutional white") |
1187 | + | |
1188 | hrpa.Locked = true | |
1189 | light(hrpa) | |
1190 | hrpa.Parent = md | |
1191 | local tagbomb = Instance.new("BoolValue") | |
1192 | tagbomb.Name = "tagbomb" | |
1193 | tagbomb.Value = false | |
1194 | tagbomb.Parent = hrpa | |
1195 | local learm = Instance.new("Part") | |
1196 | learm.Name = "Left Arm" | |
1197 | learm.BrickColor = BrickColor.new("Really black") | |
1198 | learm.CanCollide = false | |
1199 | learm.Locked = true | |
1200 | learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1201 | light(learm) | |
1202 | learm.Parent = md | |
1203 | local riarm = Instance.new("Part") | |
1204 | riarm.Name = "Right Arm" | |
1205 | riarm.BrickColor = BrickColor.new("Really black") | |
1206 | riarm.CanCollide = false | |
1207 | riarm.Locked = true | |
1208 | light(riarm) | |
1209 | riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1210 | riarm.Parent = md | |
1211 | local leleg = Instance.new("Part") | |
1212 | leleg.Name = "Left Leg" | |
1213 | leleg.BrickColor = BrickColor.new("Really red") | |
1214 | leleg.CanCollide = false | |
1215 | leleg.Locked = true | |
1216 | light(leleg) | |
1217 | leleg.BottomSurface = 0 | |
1218 | leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1219 | leleg.Parent = md | |
1220 | local rileg = Instance.new("Part") | |
1221 | rileg.Name = "Right Leg" | |
1222 | rileg.BrickColor = BrickColor.new("Really red") | |
1223 | rileg.CanCollide = false | |
1224 | rileg.Locked = true | |
1225 | light(rileg) | |
1226 | rileg.BottomSurface = 0 | |
1227 | rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1228 | rileg.Parent = md | |
1229 | local tor = Instance.new("Part") | |
1230 | tor.Name = "Torso" | |
1231 | tor.BrickColor = BrickColor.new("White") | |
1232 | tor.Locked = true | |
1233 | light(tor) | |
1234 | tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1235 | tor.LeftSurface, tor.RightSurface = "Weld", "Weld" | |
1236 | tor.Parent = md | |
1237 | md.PrimaryPart = hrpa | |
1238 | md:SetPrimaryPartCFrame(cfrem) | |
1239 | md:makeJoints() | |
1240 | makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint") | |
1241 | makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck") | |
1242 | if rags == true then | |
1243 | makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
1244 | makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
1245 | makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
1246 | makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
1247 | maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1248 | maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1249 | maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1250 | maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1251 | elseif rags == false then | |
1252 | makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
1253 | makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
1254 | makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
1255 | makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
1256 | hu.PlatformStand = false | |
1257 | end | |
1258 | nscale.Value = 1 | |
1259 | hu.Touched:connect(function(tpart, uwot) | |
1260 | if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then | |
1261 | tagbomb.Value = false | |
1262 | hu.Health = 0 | |
1263 | local derp = Instance.new("Explosion") | |
1264 | derp.BlastPressure = 200 | |
1265 | derp.BlastRadius = 8 | |
1266 | derp.DestroyJointRadiusPercent = 0 | |
1267 | derp.ExplosionType = 2 | |
1268 | derp.Visible = true | |
1269 | derp.Position = uwot.Position - Vector3.new(0, 0.5, 0) | |
1270 | derp.Parent = workspace | |
1271 | game.Debris:AddItem(md, 8) | |
1272 | end | |
1273 | end) | |
1274 | return md | |
1275 | end | |
1276 | function makecircle(cfrem, scalo) | |
1277 | local mcir1 = Instance.new("Part") | |
1278 | mcir1.Anchored = true | |
1279 | mcir1.CanCollide = false | |
1280 | mcir1.Size = Vector3.new(0.2, 0.2, 0.2) | |
1281 | mcir1.Transparency = 1 | |
1282 | mcir1.CFrame = cfrem | |
1283 | mcir1.Parent = modz | |
1284 | game.Debris:AddItem(mcir1, 8) | |
1285 | local d1 = Instance.new("Decal") | |
1286 | d1.Texture = "rbxassetid://602615043" | |
1287 | d1.Face = "Front" | |
1288 | d1.Parent = mcir1 | |
1289 | local d2 = Instance.new("Decal") | |
1290 | d2.Texture = "rbxassetid://602617463" | |
1291 | d2.Face = "Back" | |
1292 | d2.Parent = mcir1 | |
1293 | local bme = Instance.new("BlockMesh") | |
1294 | bme.Parent = mcir1 | |
1295 | for _ = 1, 9 do | |
1296 | swait() | |
1297 | bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3) | |
1298 | end | |
1299 | coroutine.resume(coroutine.create(function() | |
1300 | swait(15) | |
1301 | for _ = 1, 12 do | |
1302 | swait() | |
1303 | d1.Transparency = d1.Transparency + 0.08 | |
1304 | d2.Transparency = d2.Transparency + 0.08 | |
1305 | end | |
1306 | mcir1:Destroy() | |
1307 | end)) | |
1308 | return mcir1 | |
1309 | end | |
1310 | function spawnnoob(circlecf, noobcf, scalez, ragd) | |
1311 | local aearae = makecircle(circlecf, scalez) | |
1312 | local nananb | |
1313 | if ragd then | |
1314 | nananb = makenoob(aearae.CFrame * noobcf, scalez, true) | |
1315 | elseif not ragd then | |
1316 | nananb = makenoob(aearae.CFrame * noobcf, scalez, false) | |
1317 | end | |
1318 | return nananb | |
1319 | end | |
1320 | function tagexplode(partoz, magn, bombdelay) | |
1321 | for _, guy in pairs(workspace:GetChildren()) do | |
1322 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then | |
1323 | coroutine.resume(coroutine.create(function() | |
1324 | swait(bombdelay * 30) | |
1325 | guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true | |
1326 | end)) | |
1327 | end | |
1328 | end | |
1329 | end | |
1330 | function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot) | |
1331 | for _, guy in pairs(workspace:GetChildren()) do | |
1332 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
1333 | do | |
1334 | local humz = guy:FindFirstChild("Humanoid") | |
1335 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
1336 | humz:TakeDamage(dmg) | |
1337 | humz:SetStateEnabled(16, true) | |
1338 | delay(debtim, function() | |
1339 | humz:SetStateEnabled(16, true) | |
1340 | end) | |
1341 | local db = Instance.new("StringValue") | |
1342 | db.Name = "alabo" | |
1343 | db.Parent = horp | |
1344 | delay(debtim, function() | |
1345 | db:Destroy() | |
1346 | end) | |
1347 | local b = Instance.new("Part") | |
1348 | nooutline(b) | |
1349 | b.Size = Vector3.new(0.2, 0.2, 0.2) | |
1350 | b.Transparency = 0.25 | |
1351 | b.Anchored = true | |
1352 | b.CanCollide = false | |
1353 | b.BrickColor = BrickColor.new("Deep orange") | |
1354 | b.Locked = true | |
1355 | b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1)) | |
1356 | b.Parent = modz | |
1357 | local c = Instance.new("SpecialMesh") | |
1358 | c.MeshType = "Sphere" | |
1359 | c.Scale = Vector3.new(3.5, 3.5, 3.5) | |
1360 | c.Parent = b | |
1361 | game.Debris:AddItem(b, 1) | |
1362 | if bodyfdire then | |
1363 | local boopyve = Instance.new("BodyVelocity") | |
1364 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
1365 | boopyve.P = 9999999999 | |
1366 | boopyve.Velocity = bodyfdire | |
1367 | boopyve.Parent = horp | |
1368 | game.Debris:AddItem(boopyve, debtim) | |
1369 | end | |
1370 | if bodyrot then | |
1371 | local boopyro = Instance.new("BodyAngularVelocity") | |
1372 | boopyro.MaxTorque = Vector3.new(999999, 999999, 999999) | |
1373 | boopyro.P = math.huge | |
1374 | boopyro.AngularVelocity = bodyrot | |
1375 | boopyro.Parent = horp | |
1376 | game.Debris:AddItem(boopyro, debtim) | |
1377 | end | |
1378 | local bet = Instance.new("Sound") | |
1379 | bet.Pitch = rd2(9, 11) / 10 | |
1380 | bet.Volume = rd2(12, 14) / 10 | |
1381 | bet.SoundId = "rbxassetid://305526724" | |
1382 | bet.Parent = b | |
1383 | bet:Play() | |
1384 | coroutine.resume(coroutine.create(function() | |
1385 | for _ = 1, 5 do | |
1386 | swait() | |
1387 | b.Transparency = b.Transparency + 0.175 | |
1388 | c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg) | |
1389 | end | |
1390 | end)) | |
1391 | end | |
1392 | end | |
1393 | end | |
1394 | end | |
1395 | function cleannoobs() | |
1396 | for _, nib in pairs(workspace:GetChildren()) do | |
1397 | coroutine.resume(coroutine.create(function() | |
1398 | if nib.Name == "Noob" then | |
1399 | if nib:FindFirstChild("HumanoidRootPart") then | |
1400 | local g = Instance.new("Part") | |
1401 | g.CanCollide, g.Anchored = false, true | |
1402 | g.Transparency = 1 | |
1403 | g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame | |
1404 | g.Parent = workspace | |
1405 | game.Debris:AddItem(g, 3.5) | |
1406 | local sou = Instance.new("Sound") | |
1407 | sou.Pitch = math.random(7, 11) / 10 | |
1408 | sou.Volume = 0.8 | |
1409 | sou.SoundId = "rbxassetid://111124523" | |
1410 | sou.Parent = g | |
1411 | local pe = Instance.new("ParticleEmitter") | |
1412 | pe.Acceleration = Vector3.new(0, 8, 0) | |
1413 | pe.Lifetime = NumberRange.new(1, 1.5) | |
1414 | pe.Rate = 0.005 | |
1415 | pe.RotSpeed = NumberRange.new(-30, 30) | |
1416 | pe.Rotation = NumberRange.new(0, 360) | |
1417 | pe.Size = NumberSequence.new({ | |
1418 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
1419 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
1420 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
1421 | }) | |
1422 | pe.Texture = "rbxassetid://244221440" | |
1423 | pe.Transparency = NumberSequence.new({ | |
1424 | NumberSequenceKeypoint.new(0, 0, 0), | |
1425 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
1426 | NumberSequenceKeypoint.new(1, 1, 1) | |
1427 | }) | |
1428 | pe.ZOffset = 5 | |
1429 | pe.Enabled = true | |
1430 | pe.VelocitySpread = 360 | |
1431 | pe.Parent = g | |
1432 | swait(5) | |
1433 | pe:Emit(6) | |
1434 | sou:Play() | |
1435 | end | |
1436 | nib:Destroy() | |
1437 | end | |
1438 | end)) | |
1439 | end | |
1440 | end | |
1441 | function animo(yep) | |
1442 | if yep == true then | |
1443 | anim.Parent = human | |
1444 | chr.Animate.Disabled = false | |
1445 | elseif yep == false then | |
1446 | chr.Animate.Disabled = true | |
1447 | anim.Parent = nil | |
1448 | end | |
1449 | end | |
1450 | keydownn = function(key) | |
1451 | if key == "r" then | |
1452 | test() | |
1453 | end | |
1454 | if key == "m" then | |
1455 | lauf() | |
1456 | end | |
1457 | if key == "c" and plr.UserId == 8488617 then | |
1458 | ham() | |
1459 | end | |
1460 | if key == "x" then | |
1461 | bat() | |
1462 | end | |
1463 | if key == "l" and plr.UserId == 8488617 and selected == true then | |
1464 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true) | |
1465 | end | |
1466 | if key == ";" and plr.UserId == 8488617 and selected == true then | |
1467 | spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true) | |
1468 | end | |
1469 | if key == "k" and plr.UserId == 8488617 and selected == true then | |
1470 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false) | |
1471 | end | |
1472 | if key == "p" then | |
1473 | cleannoobs() | |
1474 | end | |
1475 | if key == "z" then | |
1476 | if selected == false or activu == true then | |
1477 | return | |
1478 | end | |
1479 | if human.WalkSpeed == 25 then | |
1480 | human.WalkSpeed = 70 | |
1481 | human.JumpPower = 75 | |
1482 | else | |
1483 | human.WalkSpeed = 25 | |
1484 | human.JumpPower = 50 | |
1485 | end | |
1486 | end | |
1487 | end | |
1488 | animo(false) | |
1489 | human.WalkSpeed = 25 | |
1490 | sine = 0 | |
1491 | charge = 1 | |
1492 | cos = math.cos | |
1493 | game:GetService("RunService").Stepped:connect(function() | |
1494 | if ragged == false and activu == false then | |
1495 | local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0)) | |
1496 | local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false) | |
1497 | local checkstate = human:GetState() | |
1498 | if checkstate.Value == 13 then | |
1499 | animpose = "Sitting" | |
1500 | elseif hrp.Velocity.y > 1 and checkpart == nil then | |
1501 | animpose = "Jumping" | |
1502 | elseif hrp.Velocity.y < -1 and checkpart == nil then | |
1503 | animpose = "Falling" | |
1504 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
1505 | animpose = "Idle" | |
1506 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then | |
1507 | animpose = "Walking" | |
1508 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then | |
1509 | animpose = "TooFast" | |
1510 | end | |
1511 | if animpose == "Idle" then | |
1512 | sine = sine + charge | |
1513 | lerpz(RJ, "C0", RJC0 * cf(0.05 * cos(sine / 40), 0, -0.05 - 0.05 * cos(sine / 20)) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1514 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3) | |
1515 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
1516 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1517 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
1518 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1519 | lerpz(RH, "C0", RHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), 0.05 * cos(sine / 40)) * ang(rd(-5), rd(-5), rd(1)), 0.3) | |
1520 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1521 | lerpz(LH, "C0", LHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), -0.05 * cos(sine / 40)) * ang(rd(-5), rd(5), rd(1)), 0.3) | |
1522 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1523 | end | |
1524 | if animpose == "Walking" then | |
1525 | sine = sine + charge | |
1526 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.025 * cos(sine / 4)) * ang(rd(-5), math.sin(hrp.RotVelocity.Y / 30), math.sin(hrp.RotVelocity.Y / 5)), 0.3) | |
1527 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3) | |
1528 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
1529 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1530 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
1531 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1532 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
1533 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1534 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
1535 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1536 | end | |
1537 | if animpose == "Jumping" then | |
1538 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3) | |
1539 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3) | |
1540 | lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3) | |
1541 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1542 | lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3) | |
1543 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1544 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3) | |
1545 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1546 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3) | |
1547 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1548 | end | |
1549 | if animpose == "Falling" then | |
1550 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
1551 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
1552 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3) | |
1553 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1554 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3) | |
1555 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1556 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3) | |
1557 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1558 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3) | |
1559 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1560 | end | |
1561 | if animpose == "TooFast" then | |
1562 | sine = sine + charge | |
1563 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.35 * cos(sine / 2)) * ang(rd(-20), math.sin(hrp.RotVelocity.Y / 20), math.sin(hrp.RotVelocity.Y / 2)), 0.3) | |
1564 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3) | |
1565 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
1566 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1567 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
1568 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1569 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
1570 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1571 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
1572 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1573 | end | |
1574 | if animpose == "Sitting" then | |
1575 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1576 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1577 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
1578 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1579 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
1580 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1581 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
1582 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1583 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
1584 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1585 | end | |
1586 | end | |
1587 | end) | |
1588 | remote = Instance.new 'RemoteFunction'; | |
1589 | remote.Name = "ServerRemote" | |
1590 | remote.OnServerInvoke = function (player, request, ...) | |
1591 | if (player ~= owner) then | |
1592 | return error ('You cannot invoke this remote', 0); | |
1593 | end; | |
1594 | if request == 1 then | |
1595 | spec(...) | |
1596 | keydownn(...) | |
1597 | elseif request == 2 then | |
1598 | clibat() | |
1599 | cliham() | |
1600 | elseif request == 3 then | |
1601 | selected = true | |
1602 | elseif request == 4 then | |
1603 | selected = false | |
1604 | elseif request == 5 then | |
1605 | keyingup(...) | |
1606 | end | |
1607 | end | |
1608 | remote.Parent = script;]], owner.Character):WaitForChild'ServerRemote'; | |
1609 | local mouse = owner:GetMouse(); | |
1610 | ||
1611 | tool = Instance.new("Tool") | |
1612 | tool.CanBeDropped = false | |
1613 | tool.RequiresHandle = false | |
1614 | tool.TextureId = "rbxassetid://291302154" | |
1615 | tool.ToolTip = "NANI" | |
1616 | tool.Name = "AAAAAAAAAAAAAA" | |
1617 | tool.Parent = owner.Backpack | |
1618 | ||
1619 | tool.Equipped:connect(function() | |
1620 | remote:InvokeServer (3); | |
1621 | end) | |
1622 | tool.Unequipped:connect(function() | |
1623 | remote:InvokeServer (4); | |
1624 | end) | |
1625 | tool.Activated:connect(function(...) | |
1626 | remote:InvokeServer(2,...) | |
1627 | end) | |
1628 | mouse.KeyUp:connect(function(key) | |
1629 | remote:InvokeServer(5,key) | |
1630 | end) | |
1631 | ||
1632 | mouse.KeyDown:connect(function(k) | |
1633 | k = k:lower() | |
1634 | ||
1635 | remote:InvokeServer (1, k); | |
1636 | end) | |
1637 | print("Scripts and remotes loaded! ~WaverlyCoal") |