· 6 years ago · Mar 23, 2019, 07:54 AM
1-- This script has been converted to FE by Ferrionn
2
3
4if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6do
7 print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8 script.Parent = Player.Character
9
10 --RemoteEvent for communicating
11 local Event = Instance.new("RemoteEvent")
12 Event.Name = "UserInput_Event"
13
14 --Fake event to make stuff like Mouse.KeyDown work
15 local function fakeEvent()
16 local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17 t.connect = t.Connect
18 return t
19 end
20
21 --Creating fake input objects with fake variables
22 local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23 local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24 local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25 CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26 end}
27 --Merged 2 functions into one by checking amount of arguments
28 CAS.UnbindAction = CAS.BindAction
29
30 --This function will trigger the events that have been :Connect()'ed
31 local function te(self,ev,...)
32 local t = m[ev]
33 if t and t._fakeEvent and t.Function then
34 t.Function(...)
35 end
36 end
37 m.TrigEvent = te
38 UIS.TrigEvent = te
39
40 Event.OnServerEvent:Connect(function(plr,io)
41 if plr~=Player then return end
42 if io.isMouse then
43 m.Target = io.Target
44 m.Hit = io.Hit
45 else
46 local b = io.UserInputState == Enum.UserInputState.Begin
47 if io.UserInputType == Enum.UserInputType.MouseButton1 then
48 return m:TrigEvent(b and "Button1Down" or "Button1Up")
49 end
50 for _,t in pairs(CAS.Actions) do
51 for _,k in pairs(t.Keys) do
52 if k==io.KeyCode then
53 t.Function(t.Name,io.UserInputState,io)
54 end
55 end
56 end
57 m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58 UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59 end
60 end)
61 Event.Parent = NLS([==[
62 local Player = game:GetService("Players").LocalPlayer
63 local Event = script:WaitForChild("UserInput_Event")
64
65 local UIS = game:GetService("UserInputService")
66 local input = function(io,a)
67 if a then return end
68 --Since InputObject is a client-side instance, we create and pass table instead
69 Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70 end
71 UIS.InputBegan:Connect(input)
72 UIS.InputEnded:Connect(input)
73
74 local Mouse = Player:GetMouse()
75 local h,t
76 --Give the server mouse data 30 times every second, but only if the values changed
77 --If player is not moving their mouse, client won't fire events
78 while wait(1/30) do
79 if h~=Mouse.Hit or t~=Mouse.Target then
80 h,t=Mouse.Hit,Mouse.Target
81 Event:FireServer({isMouse=true,Target=t,Hit=h})
82 end
83 end]==],Player.Character)
84 Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85end
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105plr = owner repeat
106 wait(0.4)
107 until plr.Character
108 chr = plr.Character
109 human = chr:FindFirstChild("Humanoid")
110 cam = workspace.CurrentCamera
111 selected = false
112 equipd = false
113 tors = chr.Torso
114 rarm = chr["Right Arm"]
115 larm = chr["Left Arm"]
116 rleg = chr["Right Leg"]
117 lleg = chr["Left Leg"]
118 hrp = chr.HumanoidRootPart
119 hed = chr.Head
120 anim = human.Animator
121 activu = false
122 ragged = false
123 batting = false
124 Heartbeat = Instance.new("BindableEvent")
125 Heartbeat.Name = "Heartbeat"
126 Heartbeat.Parent = script
127 frame = 0.03333333333333333
128 tf = 0
129 chara = plr.Character
130
131New = function(Object, Parent, Name, Data)
132 local Object = Instance.new(Object)
133 for Index, Value in pairs(Data or {}) do
134 Object[Index] = Value
135 end
136 Object.Parent = Parent
137 Object.Name = Name
138 return Object
139end
140local AddInstance = function(Object, ...)
141local Obj = Instance.new(Object)
142for i,v in next,(...) do
143Obj[i] = v
144end
145return Obj
146end
147
148Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://390409627",Volume = 2,Looped = true})
149Music1:Play()
150musicon = true
151for i,v in pairs(chara:GetChildren()) do
152 if v.ClassName == 'Accessory' then
153 v:Destroy()
154 end
155end
156
157 local BC = chara["Body Colors"]
158 BC.HeadColor = BrickColor.new("Pastel brown")
159 BC.LeftArmColor = BrickColor.new("Pastel brown")
160 BC.LeftLegColor = BrickColor.new("Pastel brown")
161 BC.RightArmColor = BrickColor.new("Pastel brown")
162 BC.RightLegColor = BrickColor.new("Pastel brown")
163 BC.TorsoColor = BrickColor.new("Pastel brown")
164
165Team=function()
166 local r=math.random(1,2)
167
168if r==1 then
169print('RED')
170for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
171for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
172wait()shirt = Instance.new("Shirt", chara)
173shirt.Name = "Shirt"
174pants = Instance.new("Pants", chara)
175pants.Name = "Pants"
176chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921144"
177chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182"
178end
179
180if r==2 then
181print('BLUE')
182for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
183for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
184wait()shirt = Instance.new("Shirt", chara)
185shirt.Name = "Shirt"
186pants = Instance.new("Pants", chara)
187pants.Name = "Pants"
188chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921164"
189chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182"
190end
191end
192
193Team()
194
195chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
196wait()
197
198local Reaper = AddInstance("Part",{
199 Parent = hed,
200 CFrame = hed.CFrame,
201 formFactor = "Symmetric",
202 Size = Vector3.new(1, 1, 1),
203 CanCollide = false,
204 TopSurface = "Smooth",
205 BottomSurface = "Smooth",
206 Locked = true,
207 })
208 local Weld = AddInstance("Weld",{
209 Parent = Reaper,
210 Part0 = hed,
211 C0 = CFrame.new(-0.2,0.17,-.24)*CFrame.Angles(.15, 3.12, 0),
212 Part1 = Reaper,
213 })
214 local Mesh = AddInstance("SpecialMesh",{
215 Parent = Reaper,
216 MeshId = "rbxassetid://450793946",
217 TextureId = "rbxassetid://450794061",
218 Scale = Vector3.new(3.4,3,2.7),
219 VertexColor = Vector3.new(1,1,1),
220 })
221
222
223
224local Reaper2 = AddInstance("Part",{
225 Parent = larm,
226 CFrame = larm.CFrame,
227 formFactor = "Symmetric",
228 Size = Vector3.new(.1, .1, .1),
229 CanCollide = false,
230 TopSurface = "Smooth",
231 BottomSurface = "Smooth",
232 Locked = true,
233 Transparency = 1
234 })
235 local Weld = AddInstance("Weld",{
236 Parent = Reaper2,
237 Part0 = larm,
238 C0 = CFrame.new(.3,-1,.2)*CFrame.Angles(-1, 0, -1),
239 Part1 = Reaper2,
240 })
241 local Mesh = AddInstance("SpecialMesh",{
242 Parent = Reaper2,
243 MeshId = "rbxassetid://10470609",
244 TextureId = "rbxassetid://10735250",
245 Scale = Vector3.new(1,1,1),
246 VertexColor = Vector3.new(1,1,1),
247 })
248
249
250
251
252
253
254
255 game:GetService("RunService").Heartbeat:connect(function(s, p)
256 tf = tf + s
257 if tf >= frame then
258 for i = 1, math.floor(tf / frame) do
259 Heartbeat:Fire()
260 end
261 tf = tf - frame * math.floor(tf / frame)
262 end
263 end)
264 function swait(num)
265 if num == 0 or num == nil then
266 Heartbeat.Event:wait()
267 else
268 for i = 1, num do
269 Heartbeat.Event:wait()
270 end
271 end
272 end
273 tool = Instance.new("Tool")
274 tool.CanBeDropped = false
275 tool.RequiresHandle = false
276 tool.TextureId = "rbxassetid://291302154"
277 tool.ToolTip = "NANI"
278 tool.Name = "AAAAAAAAAAAAAA"
279 tool.Parent = plr.Backpack
280 modz = Instance.new("Model")
281 modz.Name = "efx"
282 modz.Parent = chr
283 RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
284 RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
285 LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
286 LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
287 RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
288 RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
289 LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
290 RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
291 LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
292 NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
293 NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
294 RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
295 local nscale = Instance.new("NumberValue")
296 nscale.Value = 1
297 nscale.Parent = nil
298 RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
299 RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
300 LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
301 LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
302 RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
303 RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
304 LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
305 LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
306 RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
307 RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
308 NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
309 NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
310 nscale.Changed:connect(function()
311 RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
312 RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
313 LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
314 LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
315 RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
316 RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
317 LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
318 LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
319 RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
320 RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
321 NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
322 NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
323 end)
324 RS = tors:FindFirstChild("Right Shoulder")
325 LS = tors:FindFirstChild("Left Shoulder")
326 RH = tors:FindFirstChild("Right Hip")
327 LH = tors:FindFirstChild("Left Hip")
328 RJ = hrp:FindFirstChild("RootJoint")
329 N = tors:FindFirstChild("Neck")
330 cf = CFrame.new
331 ang = CFrame.Angles
332 rd = math.rad
333 rd2 = math.random
334 function nooutline(p)
335 p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
336 end
337 function makepart(color, name, reflec, trans, mater, parnt, cfram)
338 local port = Instance.new("Part")
339 port.BrickColor = BrickColor.new(color)
340 port.Name = name
341 port.Transparency = trans
342 nooutline(port)
343 port.Reflectance = reflec
344 port.Material = mater
345 port.Anchored = false
346 port.CanCollide = false
347 port.Locked = true
348 port.Size = Vector3.new(0.2, 0.2, 0.2)
349 port.Parent = parnt
350 return port
351 end
352 function makemesh(meshtype, scale, meshid, parent)
353 local mes = Instance.new("SpecialMesh")
354 mes.MeshType = meshtype
355 mes.Scale = scale
356 if meshtype == "FileMesh" then
357 mes.MeshId = meshid
358 end
359 mes.Parent = parent
360 return mes
361 end
362 function makeweld(parent, p0, p1, c0, c1)
363 local wel = Instance.new("Weld")
364 wel.Part0 = p0
365 wel.Part1 = p1
366 wel.C0 = c0
367 if c1 ~= nil then
368 wel.C1 = c1
369 end
370 wel.Parent = parent
371 return wel
372 end
373 local lauf1 = Instance.new("Sound")
374 lauf1.SoundId = "rbxassetid://617500399"
375 lauf1.Volume = 1.5
376 lauf1.Pitch = 1
377 lauf1.Parent = hrp
378 function lerpz(joint, prop, cfrmz, alp)
379 joint[prop] = joint[prop]:lerp(cfrmz, alp)
380 end
381 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
382 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
383 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
384 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
385 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
386 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
387 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
388 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
389 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
390 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
391 function resetlerp()
392 RJ.C0 = RJC0
393 RJ.C1 = RJC1
394 N.C0 = NC0
395 N.C1 = NC1
396 RS.C0 = RSC0
397 RS.C1 = RSC1
398 LS.C0 = LSC0
399 LS.C1 = LSC1
400 RH.C0 = RHC0
401 RH.C1 = RHC1
402 LH.C0 = LHC0
403 LH.C1 = LHC1
404 end
405 function test()
406 if selected == false or activu == true then
407 return
408 end
409 if ragged == false then
410 ragged = true
411 human.PlatformStand = true
412 if rarm and tors:FindFirstChild("Right Shoulder") then
413 tors:FindFirstChild("Right Shoulder"):Destroy()
414 makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder")
415 maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0))
416 end
417 if larm and tors:FindFirstChild("Left Shoulder") then
418 tors:FindFirstChild("Left Shoulder"):Destroy()
419 makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder")
420 maketouchy(larm, larm, CFrame.new(0, 0.5, 0))
421 end
422 if rleg and tors:FindFirstChild("Right Hip") then
423 tors:FindFirstChild("Right Hip"):Destroy()
424 makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip")
425 maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0))
426 end
427 if lleg and tors:FindFirstChild("Left Hip") then
428 tors:FindFirstChild("Left Hip"):Destroy()
429 makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip")
430 maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0))
431 end
432 elseif ragged == true then
433 ragged = false
434 human.Jump = true
435 if rarm and tors:FindFirstChild("Right Shoulder") then
436 tors:FindFirstChild("Right Shoulder"):Destroy()
437 makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder")
438 rarm:FindFirstChild("touchy"):Destroy()
439 end
440 if larm and tors:FindFirstChild("Left Shoulder") then
441 tors:FindFirstChild("Left Shoulder"):Destroy()
442 makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder")
443 larm:FindFirstChild("touchy"):Destroy()
444 end
445 if rleg and tors:FindFirstChild("Right Hip") then
446 tors:FindFirstChild("Right Hip"):Destroy()
447 makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip")
448 rleg:FindFirstChild("touchy"):Destroy()
449 end
450 if lleg and tors:FindFirstChild("Left Hip") then
451 tors:FindFirstChild("Left Hip"):Destroy()
452 makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip")
453 lleg:FindFirstChild("touchy"):Destroy()
454 end
455 RS = tors:FindFirstChild("Right Shoulder")
456 LS = tors:FindFirstChild("Left Shoulder")
457 RH = tors:FindFirstChild("Right Hip")
458 LH = tors:FindFirstChild("Left Hip")
459 RJ = hrp:FindFirstChild("RootJoint")
460 N = tors:FindFirstChild("Neck")
461 end
462 end
463 function makegloo(paren, co, ci, parto, parti, nam)
464 local gloo = Instance.new("Glue")
465 gloo.Name = nam
466 gloo.C0 = co
467 gloo.C1 = ci
468 gloo.Part0 = parto
469 gloo.Part1 = parti
470 gloo.Parent = paren
471 end
472 function makejoint(paren, co, ci, parto, parti, nam)
473 local gloo = Instance.new("Motor6D")
474 gloo.Name = nam
475 gloo.C0 = co
476 gloo.C1 = ci
477 gloo.Part0 = parto
478 gloo.Part1 = parti
479 gloo.Parent = paren
480 end
481 function maketouchy(parent, limb, cframe)
482 local pr = Instance.new("Part")
483 pr.Name = "touchy"
484 pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
485 pr.Transparency = 1
486 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
487 pr.CanCollide = true
488 pr.Anchored = false
489 pr.Parent = parent
490 local w = Instance.new("Weld")
491 w.Part0 = pr
492 w.Part1 = limb
493 w.C0 = cframe
494 w.Parent = pr
495 end
496 local clibat, spec
497 local dipperhat = chr:FindFirstChild("DXD_DipperHat")
498 local dipperrot
499 if dipperhat then
500 dipperrot = dipperhat.Handle.HatAttachment.Rotation
501 end
502 function bat()
503 if selected == false or activu == true then
504 return
505 end
506 if batting == false then
507 batting = true
508 do
509 local bmod = Instance.new("Model")
510 bmod.Name = "bmodel"
511 bmod.Parent = chr
512 local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
513 local hmes = makemesh("Head", Vector3.new(2, 9, 2), nil, hnd)
514 local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil)
515hnd.Transparency = 1
516 local pt5 = makepart("Dark stone grey", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
517 local p5m = makemesh("FileMesh", Vector3.new(2, 2, 1.7), "rbxassetid://54983181", pt5)
518 p5m.Offset = Vector3.new(.2, -.3, -2.5)
519 local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), nil)
520
521 local swingwoo = Instance.new("Sound")
522 swingwoo.SoundId = "rbxassetid://10209640"
523 swingwoo.Pitch = rd2(10, 11) / 10
524 swingwoo.Name = "sweae"
525 swingwoo.Volume = 1
526 swingwoo.Parent = hrp
527 clibat = tool.Activated:connect(function()
528 if selected == false or activu == true or ragged == true then
529 return
530 end
531 activu = true
532 for _ = 1, 5 do
533 swait()
534 lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
535 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
536 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
537 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
538 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
539 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
540 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
541 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
542 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
543 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
544 end
545 local bon = Instance.new("Sound")
546 bon.SoundId = "rbxassetid://135436482"
547 bon.Pitch = rd2(10, 12) / 10
548 bon.Volume = 1
549 bon.Parent = hrp
550 game.Debris:AddItem(bon, 1)
551 bon:Play()
552 swingwoo:Play()
553 for X = 1, 5 do
554 swait()
555 if X > 1 then
556 hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)))
557 end
558 lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
559 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
560 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
561 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
562 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
563 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
564 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
565 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
566 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
567 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
568 end
569 activu = false
570 end)
571 spec = mouse.KeyDown:connect(function(keya)
572 if selected == false or activu == true or ragged == true then
573 return
574 end
575 if keya == "e" then
576 activu = true
577 local speed = human.WalkSpeed
578 human.WalkSpeed = 0
579 human:SetStateEnabled(3, false)
580 local sond = Instance.new("Sound")
581 sond.Volume = 2
582 sond.Pitch = 1
583 sond.EmitterSize = 15
584 sond.SoundId = "rbxassetid://154606531"
585 sond.Parent = pt5
586chara.Head.face.Texture = "http://www.roblox.com/asset/?id=249062487"
587
588 sond:Play()
589
590 local function expa()
591
592
593 for _ = 1, 1 do
594 swait()
595 hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7)
596
597 p5m.Scale = p5m.Scale:lerp(Vector3.new(2, 2, 3.7), 0.7)
598 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.5, 0), 0.7)
599
600 end
601 for _ = 1, 2 do
602 swait()
603 hmes.Scale = hmes.Scale:lerp(Vector3.new(14, 63, 14), 0.7)
604
605 p5m.Scale = p5m.Scale:lerp(Vector3.new(3, 3, 2.7), 0.7)
606 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), 0.7)
607
608 end
609 end
610 for _ = 1, 2 do
611 swait()
612 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
613 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
614 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
615 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
616 lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5)
617 if dipperhat then
618 dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3)
619 end
620 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
621 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
622 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
623 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
624 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
625 end
626
627 print('um')
628 for _ = 1, 20 do
629
630
631 swait()
632
633
634 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
635 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
636 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
637 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
638 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3)
639 if dipperhat then
640 dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3)
641 end
642 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
643 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
644 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
645 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
646 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
647 end
648print('no')
649chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
650 for _ = 1, 10 do
651 swait()
652 lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2)
653 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2)
654 lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.2)
655 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
656 lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2)
657 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
658 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2)
659 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
660 lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2)
661 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
662 end
663 expa()
664
665 for O = 1, 10 do
666 swait()
667 lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01)
668 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01)
669 lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.001 + O * 0.01)
670 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
671 lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01)
672 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
673 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01)
674 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
675 lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01)
676 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
677 end
678 local whoooo = Instance.new("Sound")
679 whoooo.Volume = .7
680 whoooo.TimePosition = 0
681 whoooo.Pitch = 1
682 whoooo.SoundId = "rbxassetid://254873067"
683 whoooo.Parent = pt5
684 whoooo:Play()
685 game.Debris:AddItem(whoooo, 2)
686
687 local whoooo2 = Instance.new("Sound")
688 whoooo2.Volume = 3
689 whoooo2.TimePosition = 0
690 whoooo2.Pitch = 1
691 whoooo2.SoundId = "rbxassetid://296102734"
692 whoooo2.Parent = pt5
693
694 game.Debris:AddItem(whoooo2, 2)
695
696 for O = 1, 6 do
697 swait()
698 hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -100 + Vector3.new(0, 50, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)))
699 lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05)
700 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05)
701 lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(20), rd(20)), 0.1 + O * 0.05)
702 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
703 lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05)
704 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
705 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05)
706 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
707 lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05)
708 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
709 end
710 whoooo2:Play()
711 for O = 1, 13 do
712 swait()
713 hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075)
714
715 p5m.Scale = p5m.Scale:lerp(Vector3.new(2, 2, 1.7), 0.05 + O * 0.075)
716 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075)
717
718 lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075)
719 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075)
720 lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075)
721 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
722 lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075)
723 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
724 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075)
725 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
726 lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075)
727 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
728 end
729 if dipperhat then
730 dipperhat.Handle.HatAttachment.Rotation = dipperrot
731 end
732 human.WalkSpeed = speed
733 human:SetStateEnabled(3, true)
734 activu = false
735 end
736--------------------------------------------------------------------------------------------------------------------------------------
737
738
739--------------------------------------------------------------------------------------------------------------------------------------
740 if keya == "q" then
741 activu = true
742 do
743 local checkkey = true
744 local keyingup = mouse.KeyUp:connect(function(xzx)
745 if xzx == "q" then
746 checkkey = false
747 end
748 end)
749 repeat
750 for _ = 1, 2 do
751 swait()
752 lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
753 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
754 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
755 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
756 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
757 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
758 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
759 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
760 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
761 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
762 end
763 swingwoo:Play()
764 for T = 1, 2 do
765 swait()
766 if T == 2 then
767 hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
768 end
769 lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
770 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
771 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
772 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
773 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
774 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
775 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
776 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
777 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
778 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
779 end
780 for _ = 1, 2 do
781 swait()
782 lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7)
783 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
784 lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7)
785 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
786 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7)
787 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
788 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
789 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
790 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7)
791 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
792 end
793 swingwoo:Play()
794 for T = 1, 2 do
795 swait()
796 if T == 2 then
797 hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
798 end
799 lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7)
800 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
801 lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7)
802 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
803 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
804 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
805 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
806 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
807 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7)
808 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
809 end
810 until not checkkey
811 keyingup:Disconnect()
812 activu = false
813 end
814 end
815 if keya == "f" then
816 activu = true
817 do
818 local speed = human.WalkSpeed
819 human.WalkSpeed = 2
820 human:SetStateEnabled(3, false)
821 local checkkey = true
822 local chargecounter = 0
823 local keyingup = mouse.KeyUp:connect(function(xzx)
824 if xzx == "f" then
825 checkkey = false
826 end
827 end)
828 local firederp
829 for _ = 1, 8 do
830 swait()
831 hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
832 lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5)
833 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5)
834 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5)
835 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
836 lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5)
837 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5)
838 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5)
839 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
840 lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5)
841 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5)
842 end
843 repeat
844 swait()
845 chargecounter = chargecounter + 1
846 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)
847 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)
848 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.019)
849 if chargecounter > 30 and firederp == nil then
850 firederp = Instance.new("Fire")
851 firederp.Parent = pt5
852 end
853 until not checkkey or chargecounter > 50
854 swingwoo:Play()
855 for U = 1, 10 do
856 swait()
857 if U < 3 then
858 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)))
859 if chargecounter > 30 then
860 tagexplode(pt5, 5, 1)
861 end
862 end
863 hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
864 lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6)
865 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6)
866 lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4)
867 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4)
868 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4)
869 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4)
870 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6)
871 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
872 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6)
873 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6)
874 end
875 if firederp then
876 firederp:Destroy()
877 end
878 swait(10)
879 hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0)
880 keyingup:Disconnect()
881 human.WalkSpeed = speed
882 human:SetStateEnabled(3, true)
883 activu = false
884 end
885 end
886 end)
887 end
888 elseif batting == true then
889 batting = false
890 clibat:Disconnect()
891 spec:Disconnect()
892 hrp.sweae:Destroy()
893 local batmod = chr:FindFirstChild("bmodel")
894 batmod.hnd.Weld:Destroy()
895 batmod.PrimaryPart = batmod.hnd
896 batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1))
897 for _, A in pairs(batmod:GetChildren()) do
898 if A.ClassName == "Part" then
899 A.CanCollide = true
900 A.Anchored = false
901 end
902 end
903 batmod.Parent = workspace
904 game.Debris:AddItem(batmod, 8)
905 end
906 end
907 local movin = false
908 local cliham, hamspec
909 function ham()
910 if batting == false then
911 batting = true
912 do
913 local bmod = Instance.new("Model")
914 bmod.Name = "bmodel"
915 bmod.Parent = chr
916 local makemotor = function(parent, p0, p1, c0, c1)
917 local wel = Instance.new("Motor6D")
918 wel.Part0 = p0
919 wel.Part1 = p1
920 wel.C0 = c0
921 if c1 ~= nil then
922 wel.C1 = c1
923 end
924 wel.Parent = parent
925 return wel
926 end
927 local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
928 hnd.Anchored = true
929 local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd)
930 movin = true
931 hnd.CFrame = hrp.CFrame
932 coroutine.resume(coroutine.create(function()
933 while hnd.Anchored == true do
934 swait()
935 if movin then
936 hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65)
937 end
938 end
939 end))
940 local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
941 local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1)
942 local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil)
943 local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
944 local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2)
945 local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil)
946 local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
947 local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3)
948 local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil)
949 local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
950 local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4)
951 p4m.TextureId = "rbxassetid://250639536"
952 local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil)
953 local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
954 local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5)
955 local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil)
956 local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
957 local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6)
958 local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil)
959 local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
960 local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7)
961 local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil)
962 local hdec1 = Instance.new("Decal")
963 hdec1.Texture = "rbxasset://textures/face.png"
964 hdec1.Face = "Front"
965 hdec1.Parent = pt7
966 local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
967 local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8)
968 local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil)
969 local hdec2 = Instance.new("Decal")
970 hdec2.Texture = "rbxasset://textures/face.png"
971 hdec2.Face = "Front"
972 hdec2.Parent = pt8
973 local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
974 local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9)
975 local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil)
976 p9m.TextureId = "rbxassetid://272942750"
977 local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
978 local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10)
979 local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil)
980 local hdec3 = Instance.new("Decal")
981 hdec3.Texture = "rbxasset://textures/face.png"
982 hdec3.Face = "Front"
983 hdec3.Parent = pt10
984 local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
985 local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11)
986 local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil)
987 local hdec4 = Instance.new("Decal")
988 hdec4.Texture = "rbxasset://textures/face.png"
989 hdec4.Face = "Front"
990 hdec4.Parent = pt11
991 local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
992 local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12)
993 local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil)
994 local hdec5 = Instance.new("Decal")
995 hdec5.Texture = "rbxasset://textures/face.png"
996 hdec5.Face = "Front"
997 hdec5.Parent = pt12
998 local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
999 local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13)
1000 local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil)
1001 local hdec6 = Instance.new("Decal")
1002 hdec6.Texture = "rbxasset://textures/face.png"
1003 hdec6.Face = "Front"
1004 hdec6.Parent = pt13
1005 cliham = tool.Activated:connect(function()
1006 if selected == false or activu == true or ragged == true then
1007 return
1008 end
1009 activu = true
1010 movin = false
1011 for B = 1, 20 do
1012 swait()
1013 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4)
1014 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4)
1015 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4)
1016 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
1017 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4)
1018 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
1019 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4)
1020 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
1021 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4)
1022 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
1023 hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045)
1024 end
1025 for B = 1, 30 do
1026 swait()
1027 lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80)
1028 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80)
1029 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80)
1030 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
1031 lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80)
1032 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
1033 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80)
1034 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
1035 lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80)
1036 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
1037 hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
1038 end
1039 for B = 1, 7 do
1040 swait()
1041 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15)
1042 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15)
1043 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15)
1044 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
1045 lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15)
1046 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
1047 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15)
1048 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
1049 lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15)
1050 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
1051 hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
1052 end
1053 for B = 1, 4 do
1054 swait()
1055 lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1)
1056 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1)
1057 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1)
1058 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
1059 lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1)
1060 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
1061 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1)
1062 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
1063 lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1)
1064 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
1065 hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
1066 end
1067 swait(15)
1068 movin = true
1069 activu = false
1070 end)
1071 end
1072 elseif batting == true then
1073 batting = false
1074 cliham:Disconnect()
1075 local badevz = chr:FindFirstChild("bmodel")
1076 badevz.PrimaryPart = badevz.hnd
1077 for _, A in pairs(badevz:GetChildren()) do
1078 if A.ClassName == "Part" then
1079 A.CanCollide = true
1080 A.Anchored = false
1081 end
1082 end
1083 movin = false
1084 badevz.Parent = workspace
1085 badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0))
1086 game.Debris:AddItem(badevz, 8)
1087 end
1088 end
1089 game:GetService("ContentProvider"):Preload("rbxassetid://725969678")
1090 function lauf()
1091 if selected == false or activu == true then
1092 return
1093 end
1094 lauf1:Play()
1095 end
1096 function makenoob(cfrem, scalo, rags)
1097 nscale.Value = scalo
1098 local md = Instance.new("Model")
1099 md.Name = "Noob"
1100 md.Parent = workspace
1101 local hu = Instance.new("Humanoid")
1102 hu.RigType = "R6"
1103 hu.MaxHealth = 100 * scalo
1104 hu.Health = 100 * scalo
1105 hu.Parent = md
1106 local anm = Instance.new("Animator")
1107 anm.Parent = hu
1108 hu.PlatformStand = true
1109 local light = function(part)
1110 part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
1111 end
1112 local hd = Instance.new("Part")
1113 hd.Name = "Head"
1114 hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
1115 hd.TopSurface = "Smooth"
1116 hd.BottomSurface = "Inlet"
1117 hd.Locked = true
1118 hd.BrickColor = BrickColor.new("Bright yellow")
1119 hd.CanCollide = true
1120 hd.Anchored = false
1121 light(hd)
1122 hd.Parent = md
1123 local hm = Instance.new("SpecialMesh")
1124 hm.MeshType = "Head"
1125 hm.Scale = Vector3.new(1.25, 1.25, 1.25)
1126 hm.Parent = hd
1127 local hf = Instance.new("Decal")
1128 hf.Texture = "rbxasset://textures/face.png"
1129 local gen = math.random(1, 40)
1130 if gen == 3 then
1131 hf.Texture = "rbxassetid://260884109"
1132 end
1133 if gen == 8 then
1134 hf.Texture = "rbxassetid://260569492"
1135 end
1136 if gen == 12 then
1137 hf.Texture = "rbxassetid://259580505"
1138 end
1139 if gen == 16 then
1140 hf.Texture = "rbxassetid://259579232"
1141 end
1142 if gen == 24 then
1143 hf.Texture = "rbxassetid://259571525"
1144 end
1145 if gen == 28 then
1146 hf.Texture = "rbxassetid://258283210"
1147 end
1148 if gen == 32 then
1149 hf.Texture = "rbxassetid://258940032"
1150 end
1151 if gen == 38 then
1152 hf.Texture = "rbxassetid://673220970"
1153 hf.Color3 = Color3.new(0, 0, 0)
1154 end
1155 hf.Face = "Front"
1156 hf.Parent = hd
1157 local hrpa = Instance.new("Part")
1158 hrpa.Name = "HumanoidRootPart"
1159 hrpa.TopSurface, hrpa.BottomSurface = 0, 0
1160 hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
1161 hrpa.Transparency = 1
1162 hrpa.CanCollide = false
1163 hrpa.Locked = true
1164 light(hrpa)
1165 hrpa.Parent = md
1166 local tagbomb = Instance.new("BoolValue")
1167 tagbomb.Name = "tagbomb"
1168 tagbomb.Value = false
1169 tagbomb.Parent = hrpa
1170 local learm = Instance.new("Part")
1171 learm.Name = "Left Arm"
1172 learm.BrickColor = BrickColor.new("Bright yellow")
1173 learm.CanCollide = false
1174 learm.Locked = true
1175 learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
1176 light(learm)
1177 learm.Parent = md
1178 local riarm = Instance.new("Part")
1179 riarm.Name = "Right Arm"
1180 riarm.BrickColor = BrickColor.new("Bright yellow")
1181 riarm.CanCollide = false
1182 riarm.Locked = true
1183 light(riarm)
1184 riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
1185 riarm.Parent = md
1186 local leleg = Instance.new("Part")
1187 leleg.Name = "Left Leg"
1188 leleg.BrickColor = BrickColor.new("Br. yellowish green")
1189 leleg.CanCollide = false
1190 leleg.Locked = true
1191 light(leleg)
1192 leleg.BottomSurface = 0
1193 leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
1194 leleg.Parent = md
1195 local rileg = Instance.new("Part")
1196 rileg.Name = "Right Leg"
1197 rileg.BrickColor = BrickColor.new("Br. yellowish green")
1198 rileg.CanCollide = false
1199 rileg.Locked = true
1200 light(rileg)
1201 rileg.BottomSurface = 0
1202 rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
1203 rileg.Parent = md
1204 local tor = Instance.new("Part")
1205 tor.Name = "Torso"
1206 tor.BrickColor = BrickColor.new("Bright blue")
1207 tor.Locked = true
1208 light(tor)
1209 tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
1210 tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
1211 tor.Parent = md
1212 md.PrimaryPart = hrpa
1213 md:SetPrimaryPartCFrame(cfrem)
1214 md:makeJoints()
1215 makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
1216 makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
1217 if rags == true then
1218 makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
1219 makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
1220 makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
1221 makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
1222 maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
1223 maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
1224 maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
1225 maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
1226 elseif rags == false then
1227 makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
1228 makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
1229 makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
1230 makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
1231 hu.PlatformStand = false
1232 end
1233 nscale.Value = 1
1234 hu.Touched:connect(function(tpart, uwot)
1235 if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then
1236 tagbomb.Value = false
1237 hu.Health = 0
1238 local derp = Instance.new("Explosion")
1239 derp.BlastPressure = 200
1240 derp.BlastRadius = 8
1241 derp.DestroyJointRadiusPercent = 0
1242 derp.ExplosionType = 2
1243 derp.Visible = true
1244 derp.Position = uwot.Position - Vector3.new(0, 0.5, 0)
1245 derp.Parent = workspace
1246 game.Debris:AddItem(md, 8)
1247 end
1248 end)
1249 return md
1250 end
1251 function makecircle(cfrem, scalo)
1252 local mcir1 = Instance.new("Part")
1253 mcir1.Anchored = true
1254 mcir1.CanCollide = false
1255 mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
1256 mcir1.Transparency = 1
1257 mcir1.CFrame = cfrem
1258 mcir1.Parent = modz
1259 game.Debris:AddItem(mcir1, 8)
1260 local d1 = Instance.new("Decal")
1261 d1.Texture = "rbxassetid://602615043"
1262 d1.Face = "Front"
1263 d1.Parent = mcir1
1264 local d2 = Instance.new("Decal")
1265 d2.Texture = "rbxassetid://602617463"
1266 d2.Face = "Back"
1267 d2.Parent = mcir1
1268 local bme = Instance.new("BlockMesh")
1269 bme.Parent = mcir1
1270 for _ = 1, 9 do
1271 swait()
1272 bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
1273 end
1274 coroutine.resume(coroutine.create(function()
1275 swait(15)
1276 for _ = 1, 12 do
1277 swait()
1278 d1.Transparency = d1.Transparency + 0.08
1279 d2.Transparency = d2.Transparency + 0.08
1280 end
1281 mcir1:Destroy()
1282 end))
1283 return mcir1
1284 end
1285 function spawnnoob(circlecf, noobcf, scalez, ragd)
1286 local aearae = makecircle(circlecf, scalez)
1287 local nananb
1288 if ragd then
1289 nananb = makenoob(aearae.CFrame * noobcf, scalez, true)
1290 elseif not ragd then
1291 nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
1292 end
1293 return nananb
1294 end
1295 function tagexplode(partoz, magn, bombdelay)
1296 for _, guy in pairs(workspace:GetChildren()) do
1297 if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then
1298 coroutine.resume(coroutine.create(function()
1299 swait(bombdelay * 30)
1300 guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true
1301 end))
1302 end
1303 end
1304 end
1305 function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot)
1306 for _, guy in pairs(workspace:GetChildren()) do
1307 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
1308 do
1309 local humz = guy:FindFirstChild("Humanoid")
1310 local horp = guy:FindFirstChild("HumanoidRootPart")
1311 humz:TakeDamage(dmg)
1312 humz:SetStateEnabled(16, true)
1313 delay(debtim, function()
1314 humz:SetStateEnabled(16, true)
1315 end)
1316 local db = Instance.new("StringValue")
1317 db.Name = "alabo"
1318 db.Parent = horp
1319 delay(debtim, function()
1320 db:Destroy()
1321 end)
1322 local b = Instance.new("Part")
1323 nooutline(b)
1324 b.Size = Vector3.new(0.2, 0.2, 0.2)
1325 b.Transparency = 0.25
1326 b.Anchored = true
1327 b.CanCollide = false
1328 b.BrickColor = BrickColor.new("Institutional white")
1329 b.Locked = true
1330 b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1))
1331 b.Parent = modz
1332 local c = Instance.new("SpecialMesh")
1333 c.MeshType = "Sphere"
1334 c.Scale = Vector3.new(3.5, 3.5, 3.5)
1335 c.Parent = b
1336 game.Debris:AddItem(b, 1)
1337 if bodyfdire then
1338 local boopyve = Instance.new("BodyVelocity")
1339 boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999)
1340 boopyve.P = 9999999999
1341 boopyve.Velocity = bodyfdire
1342 boopyve.Parent = horp
1343 game.Debris:AddItem(boopyve, debtim)
1344 end
1345 if bodyrot then
1346 local boopyro = Instance.new("BodyAngularVelocity")
1347 boopyro.MaxTorque = Vector3.new(999999, 999999, 999999)
1348 boopyro.P = math.huge
1349 boopyro.AngularVelocity = bodyrot
1350 boopyro.Parent = horp
1351 game.Debris:AddItem(boopyro, debtim)
1352 end
1353 local bet = Instance.new("Sound")
1354 bet.Pitch = rd2(9, 11) / 10
1355 bet.Volume = rd2(12, 14) / 10
1356 bet.SoundId = "rbxassetid://305526724"
1357 bet.Parent = b
1358 bet:Play()
1359 coroutine.resume(coroutine.create(function()
1360 for _ = 1, 5 do
1361 swait()
1362 b.Transparency = b.Transparency + 0.175
1363 c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg)
1364 end
1365 end))
1366 end
1367 end
1368 end
1369 end
1370 function cleannoobs()
1371 for _, nib in pairs(workspace:GetChildren()) do
1372 coroutine.resume(coroutine.create(function()
1373 if nib.Name == "Noob" then
1374 if nib:FindFirstChild("HumanoidRootPart") then
1375 local g = Instance.new("Part")
1376 g.CanCollide, g.Anchored = false, true
1377 g.Transparency = 1
1378 g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame
1379 g.Parent = workspace
1380 game.Debris:AddItem(g, 3.5)
1381 local sou = Instance.new("Sound")
1382 sou.Pitch = math.random(7, 11) / 10
1383 sou.Volume = 0.8
1384 sou.SoundId = "rbxassetid://111124523"
1385 sou.Parent = g
1386 local pe = Instance.new("ParticleEmitter")
1387 pe.Acceleration = Vector3.new(0, 8, 0)
1388 pe.Lifetime = NumberRange.new(1, 1.5)
1389 pe.Rate = 0.005
1390 pe.RotSpeed = NumberRange.new(-30, 30)
1391 pe.Rotation = NumberRange.new(0, 360)
1392 pe.Size = NumberSequence.new({
1393 NumberSequenceKeypoint.new(0, 4.38, 0),
1394 NumberSequenceKeypoint.new(0.672, 4.14, 0),
1395 NumberSequenceKeypoint.new(1, 1.48, 0)
1396 })
1397 pe.Texture = "rbxassetid://244221440"
1398 pe.Transparency = NumberSequence.new({
1399 NumberSequenceKeypoint.new(0, 0, 0),
1400 NumberSequenceKeypoint.new(0.529, 0.3, 0),
1401 NumberSequenceKeypoint.new(1, 1, 1)
1402 })
1403 pe.ZOffset = 5
1404 pe.Enabled = true
1405 pe.VelocitySpread = 360
1406 pe.Parent = g
1407 swait(5)
1408 pe:Emit(6)
1409 sou:Play()
1410 end
1411 nib:Destroy()
1412 end
1413 end))
1414 end
1415 end
1416 function animo(yep)
1417 if yep == true then
1418 anim.Parent = human
1419 chr.Animate.Disabled = false
1420 elseif yep == false then
1421 chr.Animate.Disabled = true
1422 anim.Parent = nil
1423 end
1424 end
1425 mouse.KeyDown:connect(function(key)
1426 if key == "r" then
1427 test()
1428 end
1429 if key == "t" then
1430 lauf()
1431 end
1432 if key == "c" and plr.UserId == 42147575 then
1433 ham()
1434 end
1435 if key == "x" then
1436 bat()
1437 end
1438 if key == "l" and plr.UserId == 42147575 and selected == true then
1439 spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true)
1440 end
1441 if key == "j" and plr.UserId == 42147575 and selected == true then
1442 spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true)
1443 end
1444 if key == "k" and plr.UserId == 42147575 and selected == true then
1445 spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false)
1446 end
1447 if key == "p" then
1448 cleannoobs()
1449 end
1450 if key == "z" then
1451 if selected == false or activu == true then
1452
1453
1454
1455
1456 return
1457 end
1458 if human.WalkSpeed == 25 then
1459 ----------------------------------------------------------------------
1460
1461
1462
1463 activu = true
1464 local speed = human.WalkSpeed
1465 human.WalkSpeed = 0
1466 human:SetStateEnabled(3, false)
1467 local sond = Instance.new("Sound")
1468 sond.Volume = 2
1469 sond.Pitch = 1
1470 sond.EmitterSize = 15
1471 sond.SoundId = "rbxassetid://203952633"
1472 sond.Parent = hed
1473sond.TimePosition = .5
1474Reaper2.Transparency = 0
1475chara.Head.face.Texture = "http://www.roblox.com/asset/?id=246990268"
1476
1477 sond:Play()
1478
1479 local function expa()
1480
1481
1482
1483 end
1484 for _ = 1, 2 do
1485 swait()
1486 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
1487 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
1488 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
1489 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1490 lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5)
1491 if dipperhat then
1492 dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3)
1493 end
1494 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1495 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
1496 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1497 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
1498 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1499
1500 end
1501
1502
1503
1504 for _ = 1, 20 do
1505
1506
1507 swait()
1508
1509
1510 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
1511 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
1512 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
1513 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1514 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3)
1515 if dipperhat then
1516 dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3)
1517 end
1518 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1519 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
1520 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1521 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
1522 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
1523 end
1524 if dipperhat then
1525 dipperhat.Handle.HatAttachment.Rotation = dipperrot
1526 end
1527
1528
1529
1530 human:SetStateEnabled(3, true)
1531 activu = false
1532
1533
1534
1535----------------------------------------------------------------------
1536 human.WalkSpeed = 70
1537 human.JumpPower = 75
1538wait(.2)
1539Reaper2.Transparency = 1
1540chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
1541wait(1.5)
1542sond:Stop()
1543 else
1544 human.WalkSpeed = 25
1545 human.JumpPower = 50
1546 end
1547 end
1548
1549 if key == "m" then
1550if musicon == true then
1551Music1:Stop()
1552musicon = false
1553
1554else
1555Music1:Play()
1556musicon = true
1557
1558 end
1559end
1560end)
1561 tool.Equipped:connect(function()
1562 selected = true
1563 end)
1564 tool.Unequipped:connect(function()
1565 selected = false
1566 end)
1567 animo(false)
1568 human.WalkSpeed = 25
1569 sine = 0
1570 charge = 1
1571 cos = math.cos
1572 game:GetService("RunService").Stepped:connect(function()
1573 if ragged == false and activu == false then
1574 local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0))
1575 local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false)
1576 local checkstate = human:GetState()
1577 if checkstate.Value == 13 then
1578 animpose = "Sitting"
1579 elseif hrp.Velocity.y > 1 and checkpart == nil then
1580 animpose = "Jumping"
1581 elseif hrp.Velocity.y < -1 and checkpart == nil then
1582 animpose = "Falling"
1583 elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
1584 animpose = "Idle"
1585 elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then
1586 animpose = "Walking"
1587 elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then
1588 animpose = "TooFast"
1589 end
1590 if animpose == "Idle" then
1591 sine = sine + charge
1592 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)
1593 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3)
1594 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
1595 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1596 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
1597 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1598 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)
1599 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1600 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)
1601 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1602 end
1603 if animpose == "Walking" then
1604 sine = sine + charge
1605 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)
1606 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3)
1607 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)
1608 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1609 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)
1610 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1611 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)
1612 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1613 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)
1614 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1615 end
1616 if animpose == "Jumping" then
1617 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3)
1618 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3)
1619 lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3)
1620 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1621 lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3)
1622 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1623 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3)
1624 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1625 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3)
1626 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1627 end
1628 if animpose == "Falling" then
1629 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
1630 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
1631 lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3)
1632 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1633 lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3)
1634 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1635 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3)
1636 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1637 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3)
1638 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1639 end
1640 if animpose == "TooFast" then
1641 sine = sine + charge
1642 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)
1643 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3)
1644 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)
1645 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1646 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)
1647 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1648 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)
1649 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1650 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)
1651 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1652 end
1653 if animpose == "Sitting" then
1654 lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1655 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1656 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
1657 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1658 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
1659 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1660 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
1661 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1662 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
1663 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
1664 end
1665 end
1666 end)
1667
1668
1669chara.Humanoid.MaxHealth = 1000
1670chara.Humanoid.Health = 1000
1671while true do
1672if chara.Humanoid.Health <=50 then
1673chara.Humanoid.Health = 1000
1674end
1675wait(0.1)
1676end
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692------made by (123jl123)
1693
1694
1695--[[
1696Tf2 Engineer Class
1697--------------------
1698Script by: 123jl123
1699---------------------
1700Sentry by: Madiik
1701-- ]]
1702
1703
1704local plr = owner
1705local char = plr.Character
1706local humanoid = char:findFirstChild("Humanoid")
1707local torso = char:findFirstChild("Torso")
1708local head = char.Head
1709local ra = char:findFirstChild("Right Arm")
1710local la = char:findFirstChild("Left Arm")
1711local rl = char:findFirstChild("Right Leg")
1712local ll = char:findFirstChild("Left Leg")
1713local rs = torso:findFirstChild("Right Shoulder")
1714local ls = torso:findFirstChild("Left Shoulder")
1715local rh = torso:findFirstChild("Right Hip")
1716local lh = torso:findFirstChild("Left Hip")
1717local neck = torso:findFirstChild("Neck")
1718local rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
1719local rootpart = char:findFirstChild("HumanoidRootPart")
1720local camera = workspace.CurrentCamera
1721local anim = char:findFirstChild("Animate")
1722DA = false
1723NoSentry = true
1724maincolor = owner
1725secondcolor = "Really black"
1726WSHM = {'10209908','10209905','10209905','10209908'}
1727WSH = WSHM[math.random(1,#WSHM)]
1728wait(1 / 60)
1729Effects = { }
1730local Player = owner
1731local Character = Player.Character
1732local Humanoid = Character.Humanoid
1733local LeftArm = Character["Left Arm"]
1734local RightArm = Character["Right Arm"]
1735local LeftLeg = Character["Left Leg"]
1736local RightLeg = Character["Right Leg"]
1737local Head = Character.Head
1738local Torso = Character.Torso
1739local cam = game.Workspace.CurrentCamera
1740local RootPart = Character.HumanoidRootPart
1741local RootJoint = RootPart.RootJoint
1742local equipped = false
1743local attack = false
1744local Anim = 'Idle'
1745local idle = 0
1746local attacktype = 1
1747local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1748local velocity = RootPart.Velocity.y
1749local sine = 0
1750local change = 1
1751local grabbed = false
1752local cn = CFrame.new
1753local mr = math.rad
1754local angles = CFrame.Angles
1755local ud = UDim2.new
1756local c3 = Color3.new
1757local slashDamage = 15
1758trans = 1
1759for i,v in pairs(char:GetChildren()) do if v:IsA("Accessory") then v:Remove() end end
1760for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v:Remove() end end
1761Wep = 1
1762equippedgun2 = false
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773--SB Plasma Shotgun 2013
1774
1775--madiik's plasma shottie
1776
1777--variables
1778
1779
1780
1781--some more variables
1782
1783local spread = 1
1784-- end of some more variables
1785
1786local sound = Instance.new("Sound",head)
1787sound.SoundId = "http://www.roblox.com/asset?id=10209842"
1788sound.Volume = 2
1789sound.Pitch = 1
1790
1791
1792
1793
1794
1795
1796
1797local sound2 = Instance.new("Sound",head)
1798sound2.SoundId = "http://www.roblox.com/asset?id=10209881"
1799sound2.Volume = 1
1800sound2.Pitch = 1
1801
1802
1803
1804
1805
1806
1807
1808function attach(weld, part0, part1)
1809weld.Part0 = part0
1810weld.Part1 = part1
1811end
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821--create func
1822function part(parent, size, color, formfactor, collide, transparency)
1823if transparency == nil then transparency = 0 end
1824if collide == nil then collide = false end
1825if formfactor == nil then formfactor = Enum.FormFactor.Custom end
1826local p=Instance.new("Part", parent)
1827p.FormFactor=formfactor
1828p.CanCollide=false
1829p.Size=size
1830p.Locked=true
1831p.Transparency=transparency
1832p.Position=torso.Position
1833p.BrickColor=color
1834p.FrontSurface="SmoothNoOutlines"
1835p.BackSurface="SmoothNoOutlines"
1836p.LeftSurface="SmoothNoOutlines"
1837p.BottomSurface="SmoothNoOutlines"
1838p.TopSurface="SmoothNoOutlines"
1839p.RightSurface="SmoothNoOutlines"
1840return p
1841end
1842function wedge(parent, size, color, formfactor, collide, transparency)
1843
1844if transparency == nil then transparency = 0 end
1845if collide == nil then collide = false end
1846if formfactor == nil then formfactor = Enum.FormFactor.Custom end
1847
1848local p=Instance.new("WedgePart", parent)
1849p.FormFactor=formfactor
1850p.CanCollide=false
1851p.Size=size
1852p.Locked=true
1853p.Position = torso.Position
1854p.BrickColor=color
1855p.FrontSurface="SmoothNoOutlines"
1856p.BackSurface="SmoothNoOutlines"
1857p.LeftSurface="SmoothNoOutlines"
1858p.BottomSurface="SmoothNoOutlines"
1859p.TopSurface="SmoothNoOutlines"
1860p.RightSurface="SmoothNoOutlines"
1861return p
1862end
1863function weld(part0, part1, c0, parent, c1)
1864if parent == nil then parent = gun end
1865if c1 == nil then c1 = CFrame.new() end
1866
1867local wel=Instance.new("Weld", parent)
1868wel.Part0 = part0
1869wel.Part1 = part1
1870wel.C0 = c0
1871wel.C1 = c1
1872return wel
1873end
1874function specialmesh(parent, meshType, scale, meshId)
1875local mesh = Instance.new("SpecialMesh", parent)
1876mesh.Scale = scale
1877mesh.MeshType = meshType
1878mesh.MeshId = meshId
1879return mesh
1880end
1881
1882
1883--some ray functi0n
1884
1885function rayCast2(speed, gravity, from)
1886coroutine.wrap(function()
1887if char.Humanoid.Health == 0 then return end
1888local rayP = Instance.new("Part")
1889rayP.Name = "rayP"
1890rayP.BrickColor = BrickColor.new("New Yeller")
1891rayP.Material = 'Neon'
1892rayP.Anchored = true
1893rayP.CanCollide = false
1894rayP.Locked = true
1895rayP.TopSurface = Enum.SurfaceType.Smooth
1896rayP.BottomSurface = Enum.SurfaceType.Smooth
1897rayP.formFactor = Enum.FormFactor.Custom
1898rayP.Size = Vector3.new(0.2, 0.2, 0.2)
1899
1900
1901
1902Instance.new("BlockMesh", rayP).Scale = Vector3.new(0.2, 0.2, 10)
1903
1904
1905
1906
1907
1908
1909
1910
1911local bulletposition = from.Position + Vector3.new(0, 0.3, 0)
1912
1913local bulletvelocity = (Vector3.new(math.random(-spread*4,spread*4), math.random(-spread*4,spread*4), math.random(-spread*4,spread*4)))+( plr:GetMouse().Hit.p - bulletposition).unit*speed
1914local bulletlastposition = bulletposition
1915
1916
1917
1918
1919coroutine.resume(coroutine.create(function()
1920while true do
1921local dt = wait()
1922bulletlastposition = bulletposition
1923bulletvelocity = bulletvelocity + (Vector3.new(0, -14.81*gravity, 0)*dt)
1924bulletposition = bulletposition + (bulletvelocity*dt)
1925
1926local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
1927
1928local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, { char, rayP, TrailPart} )
1929
1930if (torso.Position - rayP.Position).magnitude > 540 then
1931rayP:Destroy()
1932break
1933end
1934
1935
1936if hit then
1937local damage = math.random(10, 20)
1938if hit.Parent:findFirstChild("Humanoid") ~= nil then
1939hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
1940end
1941if hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
1942hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage
1943end
1944bulletposition = hitposition
1945rayP.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity)
1946rayP:Destroy()
1947break
1948end
1949rayP.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity)
1950rayP.Parent = workspace
1951end
1952end))
1953end)()
1954end
1955
1956
1957
1958
1959
1960
1961
1962--function attach(weld, part0, part1)
1963--weld.Part0 = part0
1964--weld.Part1 = part1
1965--end
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993TmRed = false
1994TmBlue = false
1995TeamColor = BrickColor.new("Really Black")
1996
1997 local BC = char["Body Colors"]
1998 BC.HeadColor = BrickColor.new("Pastel brown")
1999 BC.LeftArmColor = BrickColor.new("Pastel brown")
2000 BC.LeftLegColor = BrickColor.new("Pastel brown")
2001 BC.RightArmColor = BrickColor.new("Pastel brown")
2002 BC.RightLegColor = BrickColor.new("Pastel brown")
2003 BC.TorsoColor = BrickColor.new("Pastel brown")
2004
2005
2006New = function(Object, Parent, Name, Data)
2007 local Object = Instance.new(Object)
2008 for Index, Value in pairs(Data or {}) do
2009 Object[Index] = Value
2010 end
2011 Object.Parent = Parent
2012 Object.Name = Name
2013 return Object
2014end
2015local AddInstance = function(Object, ...)
2016local Obj = Instance.new(Object)
2017for i,v in next,(...) do
2018Obj[i] = v
2019end
2020return Obj
2021end
2022
2023
2024
2025
2026
2027Team=function()
2028
2029local r=math.random(1,2)
2030if r==1 then
2031print('RED')
2032script.Name = "TeamRed"
2033TmRed = true
2034for i,v in pairs(char:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
2035for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
2036wait()shirt = Instance.new("Shirt", char)
2037shirt.Name = "Shirt"
2038pants = Instance.new("Pants", char)
2039pants.Name = "Pants"
2040char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=69232230"
2041char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=69232580"
2042TeamColor = BrickColor.new("Bright red")
2043end
2044
2045if r==2 then
2046print('BLUE')
2047TmBlue = true
2048script.Name = "TeamBlue"
2049for i,v in pairs(char:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
2050for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
2051wait()shirt = Instance.new("Shirt", char)
2052shirt.Name = "Shirt"
2053pants = Instance.new("Pants", char)
2054pants.Name = "Pants"
2055char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=69232247"
2056char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=69232594"
2057TeamColor = BrickColor.new("Bright blue")
2058end
2059print(''..r)
2060end
2061
2062Team()
2063
2064
2065
2066local MusThingHat = AddInstance("Part",{
2067 Parent = head,
2068 CFrame = head.CFrame,
2069 formFactor = "Symmetric",
2070 Size = Vector3.new(1, 1, 1),
2071 CanCollide = false,
2072 TopSurface = "Smooth",
2073 BottomSurface = "Smooth",
2074 Locked = true,
2075 BrickColor=BrickColor.new("Br. yellowish orange"),
2076 Transparency = 1,
2077 })
2078 local Weld = AddInstance("Weld",{
2079 Parent = MusThingHat,
2080 Part0 = head,
2081 C0 = CFrame.new(0,0.5,0)*CFrame.Angles(0,0,0),
2082 Part1 = MusThingHat,
2083 })
2084 local Mesh = AddInstance("SpecialMesh",{
2085 Parent = MusThingHat,
2086
2087 Scale = Vector3.new(.1,0,.1),
2088
2089 })
2090
2091local Reaper = AddInstance("Part",{
2092 Parent = head,
2093 CFrame = head.CFrame,
2094 formFactor = "Symmetric",
2095 Size = Vector3.new(1, 1, 1),
2096 CanCollide = false,
2097 TopSurface = "Smooth",
2098 BottomSurface = "Smooth",
2099 Locked = true,
2100 BrickColor=BrickColor.new("Br. yellowish orange"),
2101 })
2102 local Weld = AddInstance("Weld",{
2103 Parent = Reaper,
2104 Part0 = head,
2105 C0 = CFrame.new(-.04,.7,-.1)*CFrame.Angles(0,0,.08),
2106 Part1 = Reaper,
2107 })
2108 local Mesh = AddInstance("SpecialMesh",{
2109 Parent = Reaper,
2110 MeshId = "rbxassetid://1073659",
2111 Scale = Vector3.new(1.06,1.05,1.06),
2112 VertexColor = Vector3.new(1,1,1),
2113 })
2114
2115local Helmpart2 = AddInstance("Part",{
2116 Parent = head,
2117 CFrame = head.CFrame,
2118 formFactor = "Symmetric",
2119 Size = Vector3.new(1, 1, 1),
2120 CanCollide = false,
2121 TopSurface = "Smooth",
2122 BottomSurface = "Smooth",
2123 Locked = true,
2124 BrickColor=BrickColor.new("White"),
2125 })
2126 local Weld = AddInstance("Weld",{
2127 Parent = Helmpart2,
2128 Part0 = head,
2129 C0 = CFrame.new(.01,.4,.05)*CFrame.Angles(.1,0,-.02),
2130 Part1 = Helmpart2,
2131 })
2132 local Mesh = AddInstance("SpecialMesh",{
2133 Parent = Helmpart2,
2134 Scale = Vector3.new(1.28,.48,1.28),
2135 VertexColor = Vector3.new(1,1,1),
2136 })
2137
2138
2139local Glassespart2 = AddInstance("Part",{
2140 Parent = head,
2141 CFrame = head.CFrame,
2142 formFactor = "Symmetric",
2143 Size = Vector3.new(1, 1, 1),
2144 CanCollide = false,
2145 TopSurface = "Smooth",
2146 BottomSurface = "Smooth",
2147 Locked = true,
2148 BrickColor=BrickColor.new("Really black"),
2149 })
2150 local Weld = AddInstance("Weld",{
2151 Parent = Glassespart2,
2152 Part0 = head,
2153 C0 = CFrame.new(0,.35,0)*CFrame.Angles(0,0,0),
2154 Part1 = Glassespart2,
2155 })
2156 local Mesh = AddInstance("SpecialMesh",{
2157 Parent = Glassespart2,
2158 Scale = Vector3.new(1.27,.5,1.27),
2159 VertexColor = Vector3.new(1,1,1),
2160 })
2161
2162
2163
2164
2165
2166
2167
2168
2169local Reaper3 = AddInstance("Part",{
2170 Parent = head,
2171 CFrame = head.CFrame,
2172 formFactor = "Symmetric",
2173 Size = Vector3.new(1, 1, 1),
2174 CanCollide = false,
2175 TopSurface = "Smooth",
2176 BottomSurface = "Smooth",
2177 Locked = true,
2178 BrickColor=BrickColor.new("Gold"),
2179 })
2180 local Weld = AddInstance("Weld",{
2181 Parent = Reaper3,
2182 Part0 = head,
2183 C0 = CFrame.new(0,.3,-0.02)*CFrame.Angles(-.1,0,0),
2184 Part1 = Reaper3,
2185 })
2186 local Mesh = AddInstance("SpecialMesh",{
2187 Parent = Reaper3,
2188 MeshId = "rbxassetid://19380122",
2189 TextureId = "rbxassetid://19380117",
2190 Scale = Vector3.new(.9,1,1),
2191 VertexColor = Vector3.new(1,1,1),
2192 })
2193
2194
2195
2196
2197
2198
2199
2200local Reaper4 = AddInstance("Part",{
2201 Parent = RightArm,
2202 CFrame = RightArm.CFrame,
2203 formFactor = "Symmetric",
2204 Size = Vector3.new(0.1, 0.5, 3),
2205 CanCollide = false,
2206 TopSurface = "Smooth",
2207 BottomSurface = "Smooth",
2208 Locked = true,
2209 Transparency = 0
2210 })
2211 local Weld = AddInstance("Weld",{
2212 Parent = Reaper4,
2213 Part0 = RightArm,
2214 C0 = CFrame.new(-0.35,-1.8,-0.4)*CFrame.Angles(4.7,3.4,0),
2215 Part1 = Reaper4,
2216 })
2217 local Mesh = AddInstance("SpecialMesh",{
2218 Parent = Reaper4,
2219 MeshId = "rbxassetid://470533002",
2220 TextureId = "rbxassetid://470533004",
2221 Scale = Vector3.new(.03,.03,.03),
2222 VertexColor = Vector3.new(1,1,1),
2223 })
2224
2225 local GunFire = AddInstance("Part",{
2226 Parent = RightArm,
2227 CFrame = RightArm.CFrame,
2228 formFactor = "Symmetric",
2229 Size = Vector3.new(0.1, 0.1, 0.1),
2230 CanCollide = false,
2231 TopSurface = "Smooth",
2232 BottomSurface = "Smooth",
2233 Locked = true,
2234 Transparency = 1
2235 })
2236 local Weld = AddInstance("Weld",{
2237 Parent = GunFire,
2238 Part0 = RightArm,
2239 C0 = CFrame.new(-0.8,-3.5,-0.7)*CFrame.Angles(4.7,3.4,0),
2240 Part1 = GunFire,
2241 })
2242
2243
2244 local GunParticle = Instance.new("ParticleEmitter", GunFire);
2245 GunParticle.VelocitySpread = 60;
2246 GunParticle.LightEmission = 200;
2247
2248 local Colors2 = {Color3.new(1,.5,0), Color3.new(1,.7,0), Color3.new(1,.9,0);}
2249 GunParticle.Size = NumberSequence.new(.05,.07);
2250
2251 GunParticle.Color = ColorSequence.new(Colors2[math.random(#Colors2)]);
2252 GunParticle.Texture = "rbxassetid://252350680";
2253 GunParticle.RotSpeed = NumberRange.new(10,70);
2254 GunParticle.Rate = 600;
2255 GunParticle.Speed = NumberRange.new(15);
2256 GunParticle.Transparency = NumberSequence.new(0,1);
2257 GunParticle.Lifetime = NumberRange.new(.01,.2);
2258GunParticle.EmissionDirection = 'Back'
2259GunParticle.Enabled = false
2260
2261
2262
2263
2264
2265
2266
2267
2268local Reaper5 = AddInstance("Part",{
2269 Parent = RightArm,
2270 CFrame = RightArm.CFrame,
2271 formFactor = "Symmetric",
2272 Size = Vector3.new(0.1, 0.5, 3),
2273 CanCollide = false,
2274 TopSurface = "Smooth",
2275 BottomSurface = "Smooth",
2276 Locked = true,
2277 Transparency = 1
2278 })
2279 local Weld = AddInstance("Weld",{
2280 Parent = Reaper5,
2281 Part0 = RightArm,
2282 C0 = CFrame.new(-.1,-0.75,-.7)*CFrame.Angles(1.5,0,3),
2283 Part1 = Reaper5,
2284 })
2285 local Mesh = AddInstance("SpecialMesh",{
2286 Parent = Reaper5,
2287 MeshId = "rbxassetid://431003868",
2288 TextureId = "rbxassetid://430627740",
2289 Scale = Vector3.new(1.93,1.99,1.99),
2290 VertexColor = Vector3.new(1,1,1),
2291 })
2292
2293
2294
2295local Arms = AddInstance("Model",{
2296 Parent = cam,
2297 Name = "Arms",
2298
2299
2300 })
2301
2302local Arm1 = AddInstance("Part",{
2303 Parent = Arms,
2304 Name = "RightArm",
2305 CFrame = RightArm.CFrame,
2306 formFactor = "Symmetric",
2307 Size = Vector3.new(.85,1.85,.85),
2308 CanCollide = false,
2309 Material = "SmoothPlastic",
2310 TopSurface = "Smooth",
2311 BottomSurface = "Smooth",
2312 Locked = true,
2313 BrickColor=BrickColor.new("Pastel brown"),
2314 Transparency = 0
2315 })
2316 local Weld = AddInstance("Weld",{
2317 Parent = Arm1,
2318 Part0 = RightArm,
2319 C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
2320 Part1 = Arm1,
2321 })
2322
2323local Arm2 = AddInstance("Part",{
2324 Parent = Arms,
2325 Name = "LeftArm",
2326 CFrame = LeftArm.CFrame,
2327 formFactor = "Symmetric",
2328 Size = Vector3.new(.85,1.85,.85),
2329 CanCollide = false,
2330 Material = "SmoothPlastic",
2331 TopSurface = "Smooth",
2332 BottomSurface = "Smooth",
2333 Locked = true,
2334 BrickColor=BrickColor.new("Pastel brown"),
2335 Transparency = 0
2336 })
2337 local Weld = AddInstance("Weld",{
2338 Parent = Arm2,
2339 Part0 = LeftArm,
2340 C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
2341 Part1 = Arm2,
2342 })
2343
2344
2345
2346
2347 local Arm3 = AddInstance("Part",{
2348 Parent = Arms,
2349 Name = "RightArm",
2350 CFrame = RightArm.CFrame,
2351 formFactor = "Symmetric",
2352 Size = Vector3.new(.9,.9,.9),
2353 CanCollide = false,
2354 Material = "SmoothPlastic",
2355 TopSurface = "Smooth",
2356 BottomSurface = "Smooth",
2357 Locked = true,
2358 BrickColor=TeamColor,
2359 Transparency = 0
2360 })
2361 local Weld = AddInstance("Weld",{
2362 Parent = Arm3,
2363 Part0 = RightArm,
2364 C0 = CFrame.new(0,.5,0)*CFrame.Angles(0,0,0),
2365 Part1 = Arm3,
2366 })
2367
2368local Arm4 = AddInstance("Part",{
2369 Parent = Arms,
2370 Name = "LeftArm",
2371 CFrame = LeftArm.CFrame,
2372 formFactor = "Symmetric",
2373 Size = Vector3.new(.9,.9,.9),
2374 CanCollide = false,
2375 Material = "SmoothPlastic",
2376 TopSurface = "Smooth",
2377 BottomSurface = "Smooth",
2378 Locked = true,
2379 BrickColor=TeamColor,
2380 Transparency = 0
2381 })
2382 local Weld = AddInstance("Weld",{
2383 Parent = Arm4,
2384 Part0 = LeftArm,
2385 C0 = CFrame.new(0,.5,0)*CFrame.Angles(0,0,0),
2386 Part1 = Arm4,
2387 })
2388 local Arm5 = AddInstance("Part",{
2389 Parent = Arms,
2390 Name = "RightArm",
2391 CFrame = RightArm.CFrame,
2392 formFactor = "Symmetric",
2393 Size = Vector3.new(.86,.8,.86),
2394 CanCollide = false,
2395 Material = "SmoothPlastic",
2396 TopSurface = "Smooth",
2397 BottomSurface = "Smooth",
2398 Locked = true,
2399 BrickColor=BrickColor.new("Br. yellowish orange"),
2400 Transparency = 0
2401 })
2402 local Weld = AddInstance("Weld",{
2403 Parent = Arm5,
2404 Part0 = RightArm,
2405 C0 = CFrame.new(0,-.55,0)*CFrame.Angles(0,0,0),
2406 Part1 = Arm5,
2407 })
2408
2409local Reaper6 = AddInstance("Part",{
2410 Parent = Arms,
2411 CFrame = RightArm.CFrame,
2412 formFactor = "Symmetric",
2413 Size = Vector3.new(0.1, 0.1, .1),
2414 CanCollide = false,
2415 TopSurface = "Smooth",
2416 BottomSurface = "Smooth",
2417 Locked = true,
2418 Transparency = 1
2419 })
2420 local Weld = AddInstance("Weld",{
2421 Parent = Reaper6,
2422 Part0 = RightArm,
2423 C0 = CFrame.new(-0.35,-1.8,-0.4)*CFrame.Angles(4.7,3.4,0),
2424 Part1 = Reaper6,
2425 })
2426 local Mesh = AddInstance("SpecialMesh",{
2427 Parent = Reaper6,
2428 MeshId = "rbxassetid://470533002",
2429 TextureId = "rbxassetid://470533004",
2430 Scale = Vector3.new(.029,.029,.029),
2431 VertexColor = Vector3.new(1,1,1),
2432 })
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446local Reaper7 = AddInstance("Part",{
2447 Parent = Arms,
2448 CFrame = RightArm.CFrame,
2449 formFactor = "Symmetric",
2450 Size = Vector3.new(0.1, 0.5, 3),
2451 CanCollide = false,
2452 TopSurface = "Smooth",
2453 BottomSurface = "Smooth",
2454 Locked = true,
2455 Transparency = 1
2456 })
2457 local Weld = AddInstance("Weld",{
2458 Parent = Reaper7,
2459 Part0 = RightArm,
2460 C0 = CFrame.new(-.1,-0.75,-.7)*CFrame.Angles(1.5,0,3),
2461 Part1 = Reaper7,
2462 })
2463 local Mesh = AddInstance("SpecialMesh",{
2464 Parent = Reaper7,
2465 MeshId = "rbxassetid://431003868",
2466 TextureId = "rbxassetid://430627740",
2467 Scale = Vector3.new(1.9,1.98,1.98),
2468 VertexColor = Vector3.new(1,1,1),
2469 })
2470
2471
2472head.face.Texture = "http://www.roblox.com/asset/?id=156600391"
2473local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
2474Humanoid.Animator:Destroy()
2475Character.Animate:Destroy()
2476
2477local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
2478local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
2479local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
2480
2481
2482RSH, LSH = nil, nil
2483
2484RW = Instance.new("Weld")
2485LW = Instance.new("Weld")
2486
2487RH = Torso["Right Hip"]
2488LH = Torso["Left Hip"]
2489
2490RSH = Torso["Right Shoulder"]
2491LSH = Torso["Left Shoulder"]
2492
2493RSH.Parent = nil
2494LSH.Parent = nil
2495
2496RW.Name = "RW"
2497RW.Part0 = Torso
2498RW.C0 = cn(1.5, 0.5, 0)
2499RW.C1 = cn(0, 0.5, 0)
2500RW.Part1 = RightArm
2501RW.Parent = Torso
2502
2503LW.Name = "LW"
2504LW.Part0 = Torso
2505LW.C0 = cn(-1.5, 0.5, 0)
2506LW.C1 = cn(0, 0.5, 0)
2507LW.Part1 = LeftArm
2508LW.Parent = Torso
2509
2510function clerp(a, b, t)
2511 local qa = {
2512 QuaternionFromCFrame(a)
2513 }
2514 local qb = {
2515 QuaternionFromCFrame(b)
2516 }
2517 local ax, ay, az = a.x, a.y, a.z
2518 local bx, by, bz = b.x, b.y, b.z
2519 local _t = 1 - t
2520 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
2521end
2522
2523function QuaternionFromCFrame(cf)
2524 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
2525 local trace = m00 + m11 + m22
2526 if trace > 0 then
2527 local s = math.sqrt(1 + trace)
2528 local recip = 0.5 / s
2529 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
2530 else
2531 local i = 0
2532 if m11 > m00 then
2533 i = 1
2534 end
2535 if m22 > (i == 0 and m00 or m11) then
2536 i = 2
2537 end
2538 if i == 0 then
2539 local s = math.sqrt(m00 - m11 - m22 + 1)
2540 local recip = 0.5 / s
2541 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
2542 elseif i == 1 then
2543 local s = math.sqrt(m11 - m22 - m00 + 1)
2544 local recip = 0.5 / s
2545 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
2546 elseif i == 2 then
2547 local s = math.sqrt(m22 - m00 - m11 + 1)
2548 local recip = 0.5 / s
2549 return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
2550 end
2551 end
2552end
2553
2554function QuaternionToCFrame(px, py, pz, x, y, z, w)
2555 local xs, ys, zs = x + x, y + y, z + z
2556 local wx, wy, wz = w * xs, w * ys, w * zs
2557 local xx = x * xs
2558 local xy = x * ys
2559 local xz = x * zs
2560 local yy = y * ys
2561 local yz = y * zs
2562 local zz = z * zs
2563 return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
2564end
2565
2566function QuaternionSlerp(a, b, t)
2567 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
2568 local startInterp, finishInterp;
2569 if cosTheta >= 0.0001 then
2570 if (1 - cosTheta) > 0.0001 then
2571 local theta = math.acos(cosTheta)
2572 local invSinTheta = 1 / math.sin(theta)
2573 startInterp = math.sin((1 - t) * theta) * invSinTheta
2574 finishInterp = math.sin(t * theta) * invSinTheta
2575 else
2576 startInterp = 1 - t
2577 finishInterp = t
2578 end
2579 else
2580 if (1 + cosTheta) > 0.0001 then
2581 local theta = math.acos(-cosTheta)
2582 local invSinTheta = 1 / math.sin(theta)
2583 startInterp = math.sin((t - 1) * theta) * invSinTheta
2584 finishInterp = math.sin(t * theta) * invSinTheta
2585 else
2586 startInterp = t - 1
2587 finishInterp = t
2588 end
2589 end
2590 return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
2591end
2592
2593function swait(num)
2594 if num == 0 or num == nil then
2595 game:service'RunService'.Stepped:wait(0)
2596 else
2597 for i = 0, num do
2598 game:service'RunService'.Stepped:wait(0)
2599 end
2600 end
2601end
2602
2603local RbxUtility = LoadLibrary("RbxUtility")
2604local Create = RbxUtility.Create
2605
2606function RemoveOutlines(part)
2607 part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
2608end
2609
2610function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
2611 local Part = Create("Part"){
2612 formFactor = FormFactor,
2613 Parent = Parent,
2614 Reflectance = Reflectance,
2615 Transparency = Transparency,
2616 CanCollide = false,
2617 Locked = true,
2618 BrickColor = BrickColor.new(tostring(BColor)),
2619 Name = Name,
2620 Size = Size,
2621 Material = Material,
2622 }
2623 RemoveOutlines(Part)
2624 return Part
2625end
2626
2627function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
2628 local Msh = Create(Mesh){
2629 Parent = Part,
2630 Offset = OffSet,
2631 Scale = Scale,
2632 }
2633 if Mesh == "SpecialMesh" then
2634 Msh.MeshType = MeshType
2635 Msh.MeshId = MeshId
2636 end
2637 return Msh
2638end
2639
2640function CreateWeld(Parent, Part0, Part1, C0, C1)
2641 local Weld = Create("Weld"){
2642 Parent = Parent,
2643 Part0 = Part0,
2644 Part1 = Part1,
2645 C0 = C0,
2646 C1 = C1,
2647 }
2648 return Weld
2649end
2650
2651function rayCast(Position, Direction, Range, Ignore)
2652 return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
2653end
2654
2655function CreateSound(id, par, vol, pit)
2656 coroutine.resume(coroutine.create(function()
2657 local sou = Instance.new("Sound", par or workspace)
2658 sou.Volume = vol
2659 sou.Pitch = pit or 1
2660 sou.SoundId = id
2661 wait()
2662 sou:play()
2663 game:GetService("Debris"):AddItem(sou, 6)
2664 end))
2665end
2666
2667local function getclosest(obj, distance)
2668 local last, lastx = distance + 1
2669 for i, v in pairs(workspace:GetChildren()) do
2670 if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
2671 local t = v.Torso
2672 local dist = (t.Position - obj.Position).magnitude
2673 if dist <= distance then
2674 if dist < last then
2675 last = dist
2676 lastx = v
2677 end
2678 end
2679 end
2680 end
2681 return lastx
2682end
2683
2684function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
2685 for i, v in pairs(hit:GetChildren()) do
2686 if v:IsA("Humanoid") and hit.Name ~= Character.Name then
2687 local find = v:FindFirstChild("Hitz")
2688 if not find then
2689 if v.Parent:findFirstChild("Head") then
2690 local BillG = Create("BillboardGui"){
2691 Parent = v.Parent.Head,
2692 Size = UDim2.new(1, 0, 1, 0),
2693 Adornee = v.Parent.Head,
2694 StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
2695 }
2696 local TL = Create("TextLabel"){
2697 Parent = BillG,
2698 Size = UDim2.new(3, 3, 3, 3),
2699 BackgroundTransparency = 1,
2700 Text = tostring(damage).."-",
2701 TextColor3 = Color1.Color,
2702 TextStrokeColor3 = Color2.Color,
2703 TextStrokeTransparency = 0,
2704 TextXAlignment = Enum.TextXAlignment.Center,
2705 TextYAlignment = Enum.TextYAlignment.Center,
2706 FontSize = Enum.FontSize.Size18,
2707 Font = "ArialBold",
2708 }
2709 coroutine.resume(coroutine.create(function()
2710 wait(1)
2711 for i = 0, 1, .1 do
2712 wait(.1)
2713 BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
2714 end
2715 BillG:Destroy()
2716 end))
2717 end
2718 v.Health = v.Health - damage
2719 local bool = Create("BoolValue"){
2720 Parent = v,
2721 Name = 'Hitz',
2722 }
2723 if HSound ~= nil and HPitch ~= nil then
2724 CreateSound(HSound, hit, 1, HPitch)
2725 end
2726 game:GetService("Debris"):AddItem(bool, cooldown)
2727 end
2728 end
2729 end
2730end
2731
2732
2733function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
2734 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
2735 prt.Anchored = true
2736 prt.CFrame = cframe
2737 local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2738 game:GetService("Debris"):AddItem(prt, 10)
2739 if Type == 1 or Type == nil then
2740 table.insert(Effects, {
2741 prt,
2742 "Block1",
2743 delay,
2744 x3,
2745 y3,
2746 z3,
2747 msh
2748 })
2749 elseif Type == 2 then
2750 table.insert(Effects, {
2751 prt,
2752 "Block2",
2753 delay,
2754 x3,
2755 y3,
2756 z3,
2757 msh
2758 })
2759 end
2760end
2761
2762function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2763 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
2764 prt.Anchored = true
2765 prt.CFrame = cframe
2766 local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2767 game:GetService("Debris"):AddItem(prt, 10)
2768 table.insert(Effects, {
2769 prt,
2770 "Cylinder",
2771 delay,
2772 x3,
2773 y3,
2774 z3,
2775 msh
2776 })
2777end
2778
2779function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2780 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
2781 prt.Anchored = true
2782 prt.CFrame = cframe * CFrame.new(x1, y1, z1)
2783 local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2784 game:GetService("Debris"):AddItem(prt, 10)
2785 table.insert(Effects, {
2786 prt,
2787 "Cylinder",
2788 delay,
2789 x3,
2790 y3,
2791 z3,
2792 msh
2793 })
2794end
2795
2796function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2797 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
2798 prt.Anchored = true
2799 prt.CFrame = cframe
2800 local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2801 game:GetService("Debris"):AddItem(prt, 10)
2802 table.insert(Effects, {
2803 prt,
2804 "Cylinder",
2805 delay,
2806 x3,
2807 y3,
2808 z3,
2809 msh
2810 })
2811end
2812
2813function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2814 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
2815 prt.Anchored = true
2816 prt.CFrame = cframe
2817 local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2818 game:GetService("Debris"):AddItem(prt, 10)
2819 table.insert(Effects, {
2820 prt,
2821 "Cylinder",
2822 delay,
2823 x3,
2824 y3,
2825 z3,
2826 msh
2827 })
2828end
2829
2830function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2831 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
2832 prt.Anchored = true
2833 prt.CFrame = cframe
2834 local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2835 game:GetService("Debris"):AddItem(prt, 10)
2836 table.insert(Effects, {
2837 prt,
2838 "Cylinder",
2839 delay,
2840 x3,
2841 y3,
2842 z3,
2843 msh
2844 })
2845end
2846
2847function BreakEffect(brickcolor, cframe, x1, y1, z1)
2848 local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
2849 prt.Anchored = true
2850 prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2851 local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2852 local num = math.random(10, 50) / 1000
2853 game:GetService("Debris"):AddItem(prt, 10)
2854 table.insert(Effects, {
2855 prt,
2856 "Shatter",
2857 num,
2858 prt.CFrame,
2859 math.random() - math.random(),
2860 0,
2861 math.random(50, 100) / 100
2862 })
2863end
2864
2865
2866
2867
2868 for i = 0, 1, 0.05 do
2869 swait()
2870 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
2871 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
2872 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
2873 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
2874 if Torsovelocity > 2 then
2875 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
2876 RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
2877 LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
2878 elseif Torsovelocity < 1 then
2879 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
2880 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
2881 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
2882 end
2883 end
2884 attack = false
2885
2886
2887
2888game:GetService'RunService'.Stepped:connect(function()
2889
2890
2891
2892 if Wep == 1 then
2893 equippedgun2 = false
2894Reaper4.Transparency = 1
2895 Reaper5.Transparency = 0
2896 Reaper6.Transparency = 1
2897 Reaper7.Transparency = 0
2898 end
2899 if Wep == 2 then
2900 equippedgun2 = true
2901Reaper4.Transparency = 0
2902 Reaper5.Transparency = 1
2903 Reaper6.Transparency = 0
2904 Reaper7.Transparency = 1
2905 end
2906 if Wep == 3 then
2907 equippedgun2 = false
2908Reaper4.Transparency = 1
2909 Reaper5.Transparency = 1
2910 Reaper6.Transparency = 1
2911 Reaper7.Transparency = 1
2912 end
2913
2914 Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
2915 velocity = RootPart.Velocity.y
2916 sine = sine + change
2917 local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
2918 if equipped == true or equipped == false then
2919 if RootPart.Velocity.y > 1 and hit == nil then
2920 Anim = "Jump"
2921 if attack == false and Wep == 1 then
2922 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
2923 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
2924 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
2925 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
2926 RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
2927 LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
2928 end
2929 elseif RootPart.Velocity.y < -1 and hit == nil then
2930 Anim = "Fall"
2931 if attack == false and Wep == 1 then
2932 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
2933 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
2934 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
2935 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
2936 RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
2937 LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
2938 end
2939 elseif Torsovelocity < 1 and hit ~= nil then
2940 Anim = "Idle"
2941 if attack == false and Wep == 1 then
2942 change = 1
2943 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
2944 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
2945 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(50), math.rad(35 - 25 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
2946 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(80 + 7 * math.cos(sine / 25)), math.rad(-30), math.rad(35 - 1 * math.cos(sine / 25))), 0.1)
2947 RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
2948 LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
2949 end
2950 elseif Torsovelocity > 2 and hit ~= nil then
2951 Anim = "Walk"
2952 if attack == false and Wep == 1 then
2953 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
2954 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
2955 RW.C0 = clerp(RW.C0, CFrame.new(1.2 - -.05 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(50), math.rad(57 - .1 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
2956 LW.C0 = clerp(LW.C0, CFrame.new(-1.2 - -.05 * math.cos(sine / 4), 0.4 - -.05 * math.cos(sine / 4), -.4) * angles(math.rad(80 + 1 * math.cos(sine / 25)), math.rad(-30), math.rad(35 - 1 * math.cos(sine / 25))), 0.1)
2957 RH.C0 = clerp(RH.C0, cn(1, -.9 + -.1 * math.cos(sine / 4),0 + -.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
2958 LH.C0 = clerp(LH.C0, cn(-1, -.9 + .1 * math.cos(sine / 4), 0 + .1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
2959 end
2960 end
2961 end
2962 -----------------------[Anim2]--------------------------------------------------------------------------------------------------------------------------
2963
2964 if equipped == true or equipped == false then
2965 if RootPart.Velocity.y > 1 and hit == nil then
2966 Anim = "Jump"
2967 if attack == false and Wep == 2 then
2968 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
2969 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
2970 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.2, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
2971 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.1, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
2972 RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
2973 LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
2974 end
2975
2976 elseif RootPart.Velocity.y < -1 and hit == nil then
2977 Anim = "Fall"
2978 if attack == false and Wep == 2 then
2979 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
2980 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
2981 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.8, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.05)
2982 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.7, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.05)
2983 RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
2984 LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
2985 end
2986 elseif Torsovelocity < 1 and hit ~= nil then
2987 Anim = "Idle"
2988 if attack == false and Wep == 2 then
2989 change = 1
2990 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
2991 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
2992 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
2993 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
2994 RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
2995 LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
2996 end
2997 elseif Torsovelocity > 2 and hit ~= nil then
2998 Anim = "Walk"
2999 if attack == false and Wep == 2 then
3000 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-25 - 5 * math.cos(sine / 5))), .2)
3001 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(25 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
3002 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
3003 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
3004 RH.C0 = clerp(RH.C0, cn(.95, -.9 + -.1 * math.cos(sine / 4),-.35) * RHCF * angles(math.rad(-2), math.rad(25), math.rad(50 * math.cos(sine / 4))), .3)
3005 LH.C0 = clerp(LH.C0, cn(-.95, -.9 + .1 * math.cos(sine / 4), .35) * LHCF * angles(math.rad(-2), math.rad(25), math.rad(50 * math.cos(sine / 4))), .3)
3006 end
3007
3008 end
3009 end
3010
3011
3012
3013 -----------------------[Noraml Anim]--------------------------------------------------------------------------------------------------------------------------
3014
3015 if equipped == true or equipped == false then
3016 if RootPart.Velocity.y > 1 and hit == nil then
3017 Anim = "Jump"
3018 if attack == false and Wep == 3 then
3019 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
3020 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
3021 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
3022 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
3023 RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
3024 LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
3025 end
3026 elseif RootPart.Velocity.y < -1 and hit == nil then
3027 Anim = "Fall"
3028 if attack == false and Wep == 3 then
3029 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
3030 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
3031 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
3032 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
3033 RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
3034 LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
3035 end
3036 elseif Torsovelocity < 1 and hit ~= nil then
3037 Anim = "Idle"
3038 if attack == false and Wep == 3 then
3039 change = 1
3040 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
3041 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
3042 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(0 - 0 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
3043 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
3044 RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
3045 LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
3046 end
3047 elseif Torsovelocity > 2 and hit ~= nil then
3048 Anim = "Walk"
3049 if attack == false and Wep == 3 then
3050 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
3051 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
3052 RW.C0 = clerp(RW.C0, CFrame.new(1.5 - -0 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(10 + -50 * math.cos(sine / 4)), math.rad(0 - .1 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
3053 LW.C0 = clerp(LW.C0, CFrame.new(-1.5 - -0 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(10 + 50 * math.cos(sine / 4)), math.rad(-0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3)
3054 RH.C0 = clerp(RH.C0, cn(1, -.9 + -.1 * math.cos(sine / 4),0 + -.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
3055 LH.C0 = clerp(LH.C0, cn(-1, -.9 + .1 * math.cos(sine / 4), 0 + .1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
3056 end
3057 end
3058 end
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077 if #Effects > 0 then
3078 for e = 1, #Effects do
3079 if Effects[e] ~= nil then
3080 local Thing = Effects[e]
3081 if Thing ~= nil then
3082 local Part = Thing[1]
3083 local Mode = Thing[2]
3084 local Delay = Thing[3]
3085 local IncX = Thing[4]
3086 local IncY = Thing[5]
3087 local IncZ = Thing[6]
3088 if Thing[1].Transparency <= 1 then
3089 if Thing[2] == "Block1" then
3090 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
3091 local Mesh = Thing[1].Mesh
3092 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3093 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3094 elseif Thing[2] == "Block2" then
3095 Thing[1].CFrame = Thing[1].CFrame
3096 local Mesh = Thing[7]
3097 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3098 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3099 elseif Thing[2] == "Cylinder" then
3100 local Mesh = Thing[1].Mesh
3101 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3102 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3103 elseif Thing[2] == "Blood" then
3104 local Mesh = Thing[7]
3105 Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
3106 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3107 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3108 elseif Thing[2] == "Elec" then
3109 local Mesh = Thing[1].Mesh
3110 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
3111 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3112 elseif Thing[2] == "Disappear" then
3113 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3114 elseif Thing[2] == "Shatter" then
3115 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3116 Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
3117 Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
3118 Thing[6] = Thing[6] + Thing[5]
3119 end
3120 else
3121 Part.Parent = nil
3122 table.remove(Effects, e)
3123 end
3124 end
3125 end
3126 end
3127 end
3128end)
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142local No = Instance.new("Sound", head);
3143No.SoundId = "rbxassetid://245064504"
3144No.Volume = 3
3145local yes = Instance.new("Sound", head);
3146yes.SoundId = "rbxassetid://131384028"
3147yes.Volume = 3
3148local HitM = Instance.new("Sound", Reaper5);
3149HitM.SoundId = "rbxassetid://"..WSH
3150HitM.Volume = 1.1
3151local Swing = Instance.new("Sound", Reaper5);
3152Swing.SoundId = "rbxassetid://10209850"
3153Swing.Volume = 1.5
3154Swing.Pitch = 1.1
3155local SwingH = Instance.new("Sound", Reaper5);
3156SwingH.SoundId = "rbxassetid://10209590"
3157SwingH.Volume = 2.9
3158SwingH.Pitch = .8
3159local Taunt = Instance.new("Sound", head);
3160Taunt.SoundId = "rbxassetid://150611842"
3161Taunt.Volume = 2
3162local RUS = Instance.new("Sound", char);
3163RUS.SoundId = "rbxassetid://322621962"
3164RUS.Volume = 2.5
3165RUS.Pitch = 1
3166RUS.Looped = true
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177function BuildSentry()
3178do --CFrame lerp (stravant, clerp by AntiBoomz0r)
3179 local function QuaternionFromCFrame(cf) -- y u no axis angle interpolation?
3180 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
3181 local trace = m00 + m11 + m22
3182 if trace > 0 then
3183 local s = math.sqrt(1 + trace)
3184 local recip = 0.5/s
3185 return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
3186 else
3187 local i = 0
3188 if m11 > m00 then
3189 i = 1
3190 end
3191 if m22 > (i == 0 and m00 or m11) then
3192 i = 2
3193 end
3194 if i == 0 then
3195 local s = math.sqrt(m00-m11-m22+1)
3196 local recip = 0.5/s
3197 return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
3198 elseif i == 1 then
3199 local s = math.sqrt(m11-m22-m00+1)
3200 local recip = 0.5/s
3201 return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
3202 elseif i == 2 then
3203 local s = math.sqrt(m22-m00-m11+1)
3204 local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
3205 end
3206 end
3207 end
3208 local function QuaternionToCFrame(px, py, pz, x, y, z, w)
3209 local xs, ys, zs = x + x, y + y, z + z
3210 local wx, wy, wz = w*xs, w*ys, w*zs
3211 local xx = x*xs
3212 local xy = x*ys
3213 local xz = x*zs
3214 local yy = y*ys
3215 local yz = y*zs
3216 local zz = z*zs
3217 return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
3218 end
3219 function QuaternionSlerp(a, b, t)
3220 local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
3221 local startInterp, finishInterp;
3222 if cosTheta >= 0.0001 then
3223 if (1 - cosTheta) > 0.0001 then
3224 local theta = math.acos(cosTheta)
3225 local invSinTheta = 1/math.sin(theta)
3226 startInterp = math.sin((1-t)*theta)*invSinTheta
3227 finishInterp = math.sin(t*theta)*invSinTheta
3228 else
3229 startInterp = 1-t
3230 finishInterp = t
3231 end
3232 else
3233 if (1+cosTheta) > 0.0001 then
3234 local theta = math.acos(-cosTheta)
3235 local invSinTheta = 1/math.sin(theta)
3236 startInterp = math.sin((t-1)*theta)*invSinTheta
3237 finishInterp = math.sin(t*theta)*invSinTheta
3238 else
3239 startInterp = t-1
3240 finishInterp = t
3241 end
3242 end
3243 return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
3244 end
3245 function clerp(a,b,t)
3246 local qa = {QuaternionFromCFrame(a)}
3247 local qb = {QuaternionFromCFrame(b)}
3248 local ax, ay, az = a.x, a.y, a.z
3249 local bx, by, bz = b.x, b.y, b.z
3250 local _t = 1-t
3251 return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
3252 end
3253end
3254
3255
3256
3257
3258local ABS = math.abs;
3259local SIN = math.sin;
3260local ASIN = math.asin;
3261local COS = math.cos;
3262
3263local new = Instance.new;
3264
3265function math_pos(float)
3266 if float < 0 then float = 0 end
3267 return float
3268end
3269function math_neg(float)
3270 if float > 0 then float = 0 end
3271 return float
3272end
3273function math_max(float, max)
3274 if float > max then float = max end
3275 return float
3276end
3277function math_min(float, min)
3278 if float > min then float = min end
3279 return float
3280end
3281
3282function SharpSin(double_p1)
3283 return ASIN(SIN(double_p1));
3284end
3285
3286local Storage = Instance.new("Model", script);
3287
3288function WeldP(part0, part1, C0, C1)
3289 local W = new("Weld", Storage);
3290 W.Part0 = part0;
3291 W.Part1 = part1;
3292 W.C0 = C0 or CFrame.new();
3293 W.C1 = C1 or CFrame.new();
3294 return W;
3295end
3296
3297function Bevel(part, sizeV3)
3298 local BvlMesh = new("SpecialMesh", part)
3299 BvlMesh.MeshId = "rbxasset://fonts/torso.mesh";
3300 if (sizeV3 ~= nil) then
3301 BvlMesh.Scale = Vector3.new(sizeV3.x/2, sizeV3.y/2, sizeV3.z);
3302 else
3303 BvlMesh.Scale = Vector3.new(part.Size.x/2, part.Size.y/2, part.Size.z);
3304 end
3305end
3306
3307
3308
3309local Scale = 0.5 -- 1 is size of a robloxian (mostly);
3310
3311Storage.Name = "ä";
3312
3313local BasePart = new("Part");
3314BasePart.FormFactor = "Custom";
3315BasePart.TopSurface = 10;
3316BasePart.BottomSurface = 10;
3317BasePart.LeftSurface = 10;
3318BasePart.RightSurface = 10;
3319BasePart.FrontSurface = 10;
3320BasePart.BackSurface = 10;
3321
3322local CylPart = new("Part");
3323CylPart.FormFactor = "Custom";
3324CylPart.TopSurface = 10;
3325CylPart.BottomSurface = 10;
3326CylPart.LeftSurface = 10;
3327CylPart.RightSurface = 10;
3328CylPart.FrontSurface = 10;
3329CylPart.BackSurface = 10;
3330new("CylinderMesh", CylPart);
3331
3332local TopFrame = BasePart:clone()
3333TopFrame.Parent = Storage;
3334TopFrame.Size = Vector3.new(3.5*Scale, 1.5*Scale, 3.5*Scale);
3335TopFrame.BrickColor = TeamColor;
3336
3337new("CylinderMesh", TopFrame);
3338
3339local Screw = CylPart:clone();
3340Screw.Parent = Storage;
3341Screw.Size = Vector3.new(.3*Scale, 1.6*Scale, .3*Scale);
3342Screw.BrickColor = BrickColor.new(199);
3343
3344local CGreyStyle = CylPart:clone()
3345CGreyStyle.Parent = Storage;
3346CGreyStyle.Size = Vector3.new(2.2*Scale, 1.52*Scale, 2.6*Scale);
3347CGreyStyle.BrickColor = BrickColor.new(199);
3348
3349local TurretCasing = BasePart:clone();
3350TurretCasing.Size = Vector3.new(2.2*Scale, 1.4*Scale, 5.6*Scale);
3351TurretCasing.BrickColor = BrickColor.new(199);
3352TurretCasing.Parent = Storage;
3353
3354Bevel(TurretCasing);
3355
3356local TurretFront = BasePart:clone();
3357TurretFront.Size = Vector3.new(1.7*Scale, 1*Scale, .2*Scale);
3358TurretFront.BrickColor = TeamColor;
3359TurretFront.Parent = Storage;
3360
3361local Barrel = CylPart:clone();
3362Barrel.Parent = Storage;
3363Barrel.Size = Vector3.new(.7*Scale, .4*Scale, .7*Scale);
3364Barrel.BrickColor = BrickColor.Black();
3365
3366
3367 local Particle = Instance.new("ParticleEmitter", Barrel);
3368 Particle.VelocitySpread = 30;
3369 Particle.LightEmission = 200;
3370
3371 local Colors = {Color3.new(1,.5,0), Color3.new(1,.7,0), Color3.new(1,.9,0);}
3372
3373 Particle.Size = NumberSequence.new(.05,.07);
3374
3375 Particle.Color = ColorSequence.new(Colors[math.random(#Colors)]);
3376 Particle.Texture = "rbxassetid://252350680";
3377 Particle.RotSpeed = NumberRange.new(10,70);
3378 Particle.Rate = 300;
3379 Particle.Speed = NumberRange.new(15);
3380 Particle.Transparency = NumberSequence.new(0,1);
3381 Particle.Lifetime = NumberRange.new(.01,.2);
3382Particle.Enabled = false
3383
3384
3385
3386local RedDot = BasePart:clone();
3387RedDot.Parent = Storage;
3388RedDot.Size = Vector3.new(.2*Scale, .2*Scale, .2*Scale);
3389RedDot.BrickColor = BrickColor.new("Really red");
3390
3391local Sphere = Instance.new("SpecialMesh", RedDot);
3392Sphere.MeshType = "Sphere";
3393Sphere.Scale = Vector3.new(1*Scale,1*Scale,1*Scale);
3394
3395
3396Bevel(TurretFront, Vector3.new(1.7*Scale, 1*Scale, .05*Scale));
3397
3398local Joint = CylPart:clone();
3399Joint.Parent = Storage;
3400Joint.Size = Vector3.new(.7*Scale, 2*Scale, .7*Scale);
3401Joint.BrickColor = BrickColor.Black();
3402
3403local Hold = BasePart:clone();
3404Hold.Parent = Storage;
3405Hold.BrickColor = BrickColor.Black();
3406Hold.Size = Vector3.new(2.2*Scale, .2*Scale, .75*Scale);
3407
3408local Bolt = BasePart:clone();
3409Bolt.Size = Vector3.new(.2*Scale, 1.5*Scale, .5*Scale);
3410Bolt.Parent = Storage;
3411Bolt.BrickColor = BrickColor.Black();
3412
3413local Bolt2 = BasePart:clone();
3414Bolt2.Size = Vector3.new(.2*Scale, 1.5*Scale, .5*Scale);
3415Bolt2.Parent = Storage;
3416Bolt2.BrickColor = BrickColor.Black();
3417
3418
3419local TurretToFrame = WeldP(TopFrame, TurretCasing, CFrame.new(0, 0, 1.4*Scale));
3420WeldP(TopFrame, CGreyStyle);
3421WeldP(TurretCasing, TurretFront, CFrame.new(0, 0, 2.8*Scale));
3422WeldP(TopFrame, Screw);
3423local BarrelWeld = WeldP(Barrel, TurretFront, CFrame.new(.3*Scale, -.2*Scale, 0), CFrame.Angles(math.pi/2, 0, 0));
3424
3425WeldP(RedDot, TurretFront, CFrame.new(-.55*Scale, 0, -.15*Scale), CFrame.Angles(math.pi/2, 0, 0));
3426
3427local RotateAxisY = WeldP(Bolt, TurretCasing, CFrame.Angles(0,0,0), CFrame.new(1.1*Scale, -.75*Scale, 1*Scale));
3428
3429WeldP(Bolt, Hold, CFrame.new(-1.1*Scale, -.5*Scale, 0));
3430
3431WeldP(Bolt2, Hold, CFrame.new(1.1*Scale, -.5*Scale, 0));
3432
3433local RotateAxisX = WeldP(Hold, Joint, CFrame.new(0, -1*Scale, 0));
3434
3435
3436
3437local Leg1 = BasePart:clone();
3438Leg1.Size = Vector3.new(.2*Scale, 3.5*Scale, .5*Scale);
3439Leg1.Parent = Storage;
3440Leg1.BrickColor = BrickColor.Black();
3441
3442
3443WeldP(Leg1, Joint, CFrame.new(0, -1.75*Scale, 0), CFrame.new(0, -.75*Scale, 0) * CFrame.Angles(math.pi/3, 0, math.pi));
3444
3445
3446local Leg2 = BasePart:clone();
3447Leg2.Size = Vector3.new(.2*Scale, 3.5*Scale, .5*Scale);
3448Leg2.Parent = Storage;
3449Leg2.BrickColor = BrickColor.Black();
3450
3451
3452WeldP(Leg2, Joint, CFrame.new(0, -1.75*Scale, 0), CFrame.new(0, -.45*Scale, 0) * CFrame.Angles(-math.pi/4, 0, math.pi + -math.pi/6));
3453
3454
3455local Leg3 = BasePart:clone();
3456Leg3.Size = Vector3.new(.2*Scale, 3.5*Scale, .5*Scale);
3457Leg3.Parent = Storage;
3458Leg3.BrickColor = BrickColor.Black();
3459
3460
3461WeldP(Leg3, Joint, CFrame.new(0, -1.75*Scale, 0), CFrame.new(0, -.45*Scale, 0) * CFrame.Angles(-math.pi/4, 0, math.pi + math.pi/6));
3462
3463 for i,v in pairs(Storage:children()) do
3464 if v.Name== "Part" then
3465 trans = 1
3466 v.Transparency = 1
3467 end
3468 end
3469
3470local InvisiBox = BasePart:clone();
3471InvisiBox.Size = Storage:GetModelSize() + Vector3.new(2*Scale, 0, 0);
3472InvisiBox.Parent = Storage;
3473InvisiBox.Transparency = 1
3474InvisiBox.Name = 'box'
3475WeldP(InvisiBox, Joint, CFrame.new(0, -.2*Scale, .97*Scale));
3476
3477local InvisiBox2 = BasePart:clone();
3478InvisiBox2.Size = Storage:GetModelSize() + Vector3.new(2*Scale, 0, 0);
3479InvisiBox2.Parent = Arms;
3480InvisiBox2.Transparency = .9
3481InvisiBox2.Name = 'box'
3482InvisiBox2.CanCollide = false
3483InvisiBox2.BrickColor = TeamColor
3484InvisiBox2.Material = 'Neon'
3485WeldP(InvisiBox2, Joint, CFrame.new(0, -1.2*Scale, .97*Scale));
3486
3487InvisiBox.CFrame = torso.CFrame * CFrame.new(0, 5.5*Scale, -2.9) * CFrame.Angles(0, math.pi, 0);
3488
3489local Action = "Idle";
3490
3491local Target = nil;
3492
3493wait(1)
3494
3495InvisiBox.Anchored = true
3496
3497for i,v in pairs(Storage:children()) do
3498 if v:IsA'Part' then
3499 v.Locked = true
3500 end
3501end
3502--//
3503--// SOUNDS
3504--//
3505 for i,v in pairs(Storage:children()) do
3506 if v.Name== "Part" then
3507 trans = 1
3508 v.Transparency = 1
3509 end
3510 end
3511 for i,v in pairs(Storage:children()) do
3512 if v.Name== "Part" then
3513 trans = 1
3514 v.Transparency = 1
3515 for i = 1,11 do
3516
3517 trans = trans - .1
3518 v.Transparency = trans
3519 wait()
3520 end
3521 end
3522 end
3523 trans = 1
3524
3525local OnFind = new("Sound", TopFrame);
3526OnFind.SoundId = "rbxassetid://10209260"
3527OnFind.Volume = 1
3528
3529
3530local OnFire = new("Sound", TopFrame);
3531OnFire.SoundId = "rbxassetid://10209257"
3532OnFire.Volume = 1
3533
3534local OnEmpty = new("Sound", TopFrame);
3535OnEmpty.SoundId = "rbxassetid://10209225"
3536OnEmpty.Volume = 1
3537
3538local Scanning = new("Sound", TopFrame);
3539Scanning.SoundId = "rbxassetid://258704234"
3540Scanning.Volume = 1
3541
3542local Explode = new("Sound", TopFrame);
3543Explode.SoundId = "rbxassetid://10209236"
3544Explode.Volume = .5
3545
3546local Move = new("Sound", TopFrame);
3547Move.SoundId = "rbxassetid://258704467";
3548Move.Volume = 1;
3549
3550
3551
3552
3553
3554function FindShortest(Table)
3555local Current = Table[1]
3556local Final
3557for _,v in pairs(Table) do
3558if v[2] ~= Current[2] then
3559if v[1] < Current[1] then
3560Current = v
3561end
3562end
3563end
3564Final = Current
3565return Final
3566end
3567
3568function GetNearbyPlayer()
3569
3570 local List = {}
3571 for i,v in pairs(workspace:children()) do
3572 if (v ~= nil) then
3573 if (v:IsA'Model') then
3574 if (v:findFirstChild'Torso' ~= nil) then
3575 local rx, ry, rz = Hold.CFrame:toEulerAnglesXYZ();
3576 if (v:findFirstChild'Torso'.Position - Hold.CFrame * CFrame.new(0, 0, 20) * CFrame.Angles(0, ry, 0).p).magnitude < 20 then
3577 if (v ~= char) then
3578 for x,z in next, v:children() do
3579 if z:IsA'Humanoid' and z.Health > 0.01 then
3580 table.insert(List, {(v:findFirstChild'Torso'.Position - Hold.CFrame * CFrame.new(0, 0, 20) * CFrame.Angles(0, ry, 0).p).magnitude, v})
3581 end
3582 end
3583 end
3584 end
3585 end
3586 end
3587 end
3588 end
3589 if (FindShortest(List) ~= nil) then
3590 return FindShortest(List)[2];
3591 else
3592 return nil;
3593 end
3594end
3595
3596local Health = Instance.new("Humanoid", Storage);
3597Health.MaxHealth = 150;
3598Health.Health = 150;
3599
3600
3601
3602function RayC(Part, speed)
3603 coroutine.wrap(function()
3604 local Visual = BasePart:clone();
3605 Visual.FormFactor = "Custom";
3606 Visual.BrickColor = BrickColor.Yellow();
3607 Visual.Size = Vector3.new(.2, 3, .2);
3608 Visual.CFrame = Part.CFrame * CFrame.new(0, -1, 0);
3609 Visual.Anchored = true;
3610 Visual.CanCollide = false;
3611 Visual.Locked = true
3612
3613
3614 coroutine.wrap(function()
3615
3616 wait(.2)
3617
3618 wait(.1);
3619 wait(.3)
3620
3621 end)()
3622
3623 Instance.new("SpecialMesh", Visual).MeshType = "Sphere";
3624 Visual.Mesh.Scale = Vector3.new(.5, 1, .5);
3625
3626 local bulletpos = Visual.Position
3627 local bulletvelocity = (Part.CFrame.p - bulletpos).unit*speed
3628 local lastbulletpos = Visual.Position
3629 Visual.Parent = Storage;
3630 while game:service'RunService'.Stepped:wait() do
3631
3632 lastbulletpos = bulletpos
3633 bulletpos = bulletpos + bulletvelocity
3634 local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
3635 local hit, hitpos = workspace:FindPartOnRay(RayCast, Storage, false, true)
3636 if (Joint.Position - Visual.Position).magnitude > 1000 or Visual.Parent == nil then
3637 Visual:Destroy();
3638 break
3639 end
3640 Visual.Anchored = true
3641 Visual.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0);
3642 if hit then
3643 if hit.Parent:IsA'Hat' then
3644 if hit.Parent.Parent:IsA'Model' then
3645 for x,z in next, hit.Parent.Parent:children() do
3646 if z:IsA'Humanoid' then
3647 z:TakeDamage(math.random(8,12));
3648 end
3649 end
3650 end
3651 else
3652 if hit.Parent:IsA'Model' then
3653 for x,z in next, hit.Parent:children() do
3654 if z:IsA'Humanoid' then
3655 z:TakeDamage(math.random(8,12));
3656 end
3657 end
3658 end
3659 end
3660
3661 Visual:Destroy();
3662 break
3663 end
3664 end
3665 end)()
3666end
3667
3668lastTick = tick();
3669local db = false;
3670game:service'RunService'.Stepped:connect(function()
3671 if Action == "DEAD" then return end;
3672
3673
3674 if not Wrangler then
3675 --//
3676 --// AUTOMATED MODE, MOTION SENSOR WILL DETECT MOVEMENT
3677 --//
3678
3679
3680 --//
3681 --// IF PLAYER USED WRANGLER, THERE IS A SHIELD WICH MUST BE REMOVED
3682 --//
3683
3684 if (Storage:findFirstChild'Shield') then
3685 Storage:findFirstChild'Shield':Destroy();
3686 end
3687
3688 local LastTarget = Target;
3689
3690 --//
3691 --// CHECK FOR NEARBY ENEMIES
3692 --//
3693 local Player = GetNearbyPlayer();
3694 Target = Player;
3695
3696 --//
3697 --// BEEP ON TARGET FOUND
3698 --//
3699 if (Target ~= LastTarget and Target ~= nil) then
3700 Move.Pitch = 0.9 + math.random()/9;
3701 Move:play();
3702 OnFind:play();
3703 Action = "Standby";
3704 end
3705
3706 --//
3707 --// IDLE
3708 --//
3709 if Action == "Idle" then
3710 RotateAxisX.C1 = clerp(RotateAxisX.C1, CFrame.Angles(0, SharpSin(tick()*2)*.2, 0), .1);
3711 RotateAxisY.C0 = clerp(RotateAxisY.C0, CFrame.new(), .1);
3712 end
3713
3714
3715 --//
3716 --// SENTRY DEAD
3717 --//
3718
3719 --//
3720 --// IF PLAYER EXISTS, FIRE!
3721 --//
3722
3723
3724
3725 if Action == "Standby" then
3726 pcall(function()
3727 local tor = Target.Torso.CFrame.p -- Target CFrame
3728 local direction = InvisiBox.CFrame.lookVector -- Direction handling, welds mess up, just a workaround.
3729 local heading = math.atan2(direction.x, direction.z)--
3730 local RotY = math.deg(heading)
3731 if RotY < 0 then
3732 RotY = (360 - math.abs(RotY));
3733 end
3734 RotateAxisX.C1 = --Begin here
3735 clerp(RotateAxisX.C1,
3736 CFrame.new(
3737
3738 Vector3.new(), --The Pivot0 of pointing the weld.
3739 Vector3.new(tor.x, 0, tor.z) - Vector3.new(RotateAxisX.Part1.CFrame.x, 0, RotateAxisX.Part1.CFrame.z)) --We point the sentry here
3740
3741 * CFrame.Angles(0, math.rad(360) - math.rad(RotY), 0),
3742 .1
3743 );
3744
3745 local Point = Hold.CFrame:toObjectSpace(CFrame.new(Hold.CFrame.p,tor))*CFrame.Angles(0,math.rad(180),0)
3746 local RX, RY, RZ = Point:toEulerAnglesXYZ()
3747 if math.deg(RX) > 45 then
3748 RX = math.rad(45)
3749 elseif math.deg(RX) < -55 then
3750 RX = math.rad(-55)
3751 end
3752 RotateAxisY.C0 = clerp(RotateAxisY.C0,CFrame.Angles(RX,0,0),.1)
3753
3754 end)
3755 end
3756 if Action == "Fire" then
3757 pcall(function()
3758 local tor = Target.Torso.CFrame.p;
3759 local direction = InvisiBox.CFrame.lookVector
3760 local heading = math.atan2(direction.x, direction.z)
3761 local RotY = math.deg(heading)
3762 if RotY < 0 then
3763 RotY = (360 - math.abs(RotY));
3764 end
3765 RotateAxisX.C1 = --Begin here
3766 clerp(RotateAxisX.C1,
3767 CFrame.new(
3768
3769 Vector3.new(), --The Pivot0 of pointing the weld.
3770 Vector3.new(tor.x, 0, tor.z) - Vector3.new(RotateAxisX.Part1.CFrame.x, 0, RotateAxisX.Part1.CFrame.z)) --We point the sentry here
3771
3772 * CFrame.Angles(0, math.rad(360) - math.rad(RotY), 0),
3773 .1
3774 );
3775
3776 BarrelWeld.C0 = clerp(BarrelWeld.C0, CFrame.new())
3777 local Point = Hold.CFrame:toObjectSpace(CFrame.new(Hold.CFrame.p,tor))*CFrame.Angles(0,math.rad(180),0)
3778 local RX, RY, RZ = Point:toEulerAnglesXYZ()
3779 if math.deg(RX) > 45 then
3780 RX = math.rad(45)
3781 elseif math.deg(RX) < -55 then
3782 RX = math.rad(-55)
3783 end
3784 RotateAxisY.C0 = clerp(RotateAxisY.C0,CFrame.Angles(RX,0,0),.1)
3785 end)
3786 end
3787
3788 if (Target ~= nil) then
3789 if Action == "Fire" or db then return end
3790 if Action == "Standby" then
3791 db = true
3792 wait(.2);
3793 end
3794 Action = "Fire";
3795 db = false
3796 OnFire:play();
3797
3798 Particle.Color = ColorSequence.new(Colors[math.random(#Colors)]);
3799
3800 local PointLight = Instance.new("PointLight", Barrel);
3801 PointLight.Color = Color3.new(1,.8,0)
3802 PointLight.Brightness = 6;
3803Particle.Enabled = true
3804 game:service'Debris':AddItem(PointLight, .05);
3805
3806
3807
3808 RayC(Barrel, 20)
3809
3810
3811
3812
3813 wait(.1)
3814Particle.Enabled = false
3815 if (Target ~= nil) then
3816 Action = "Standby";
3817 else
3818 Action = "Idle";
3819 end
3820 end
3821
3822 if tick() - lastTick > 2.5 and Target == nil then
3823 lastTick = tick();
3824 Scanning:play();
3825 end
3826 end
3827
3828 if (Health.Health < 0.0001 or RotateAxisX.Parent == nil) then
3829 Action = "DEAD";
3830 if db then return end
3831 RotateAxisY:Destroy();
3832 TurretToFrame:Destroy();
3833 Joint:Destroy();
3834InvisiBox2:Destroy();
3835 db = true
3836 local expl = Instance.new("Explosion", Storage);
3837
3838expl.BlastRadius = .3;
3839expl.BlastPressure = 2050000;
3840 expl.Position = TopFrame.Position;
3841Explode:Play()
3842NoSentry = true
3843 game:service'Debris':AddItem(Storage, 3);
3844
3845 end
3846
3847end)
3848end
3849
3850
3851
3852combo = 0
3853 function strike(hit)
3854 if hit and hit.Parent and hit.Parent.Name ~= char.Name then
3855 local targetHumanoid = hit.Parent:FindFirstChild("Humanoid")
3856 if targetHumanoid and targetHumanoid ~= char:FindFirstChild("Humanoid") then
3857 if combo == 1 then
3858 targetHumanoid:TakeDamage(slashDamage)
3859 SwingH:Play()
3860
3861 end
3862
3863
3864
3865 end
3866 end
3867 end
3868
3869
3870
3871Reaper5.Touched:connect(strike)
3872--------------------------------------------------------------------------------------------------------------------------
3873 function AnimSit()
3874 for i = 0, 1, 0.05 do
3875
3876 swait()
3877 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -.6) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3878 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3879 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, .1) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.1)
3880 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
3881 RH.C0 = clerp(RH.C0, cn(1, -.4, -.4) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3882 LH.C0 = clerp(LH.C0, cn(-1, -1, -.6) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(60)), .1)
3883 end
3884
3885 end
3886
3887 function AnimSitHit1()
3888 for i = 0, 1, 0.05 do
3889
3890 swait()
3891 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -.6) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
3892 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
3893 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, .1) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.1)
3894 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(170), math.rad(0), math.rad(-5)), 0.08)
3895 RH.C0 = clerp(RH.C0, cn(1, -.4, -.4) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(10)), .1)
3896 LH.C0 = clerp(LH.C0, cn(-1, -1, -.6) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(50)), .1)
3897 end
3898
3899 end
3900
3901
3902 function AnimSitHit2()
3903 for i = 0, 1, 0.05 do
3904
3905 swait()
3906 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -.6) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3907 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
3908 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, .1) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.1)
3909 RW.C0 = clerp(RW.C0, CFrame.new(1.55, 0.4, -.1) * angles(math.rad(40), math.rad(3 ), math.rad(-15)), 0.3)
3910 RH.C0 = clerp(RH.C0, cn(1, -.4, -.4) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3911 LH.C0 = clerp(LH.C0, cn(-1, -1, -.6) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(60)), .1)
3912 end
3913
3914 end
3915--------------------------------------------------------------------------------------------------------------------------
3916
3917 function No1()
3918 for i = 0, 1, 0.05 do
3919
3920 swait()
3921 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3922 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(40)), .1)
3923 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3924 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
3925 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3926 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3927 end
3928
3929 end
3930
3931
3932
3933 function No2()
3934 for i = 0, 1, 0.05 do
3935
3936 swait()
3937 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3938 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-40)), .1)
3939 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3940 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
3941 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3942 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3943 end
3944
3945 end
3946
3947
3948
3949--------------------------------------------------------------------------------------------------------------------------
3950
3951 function Yes1()
3952 for i = 0, 1, 0.1 do
3953
3954 swait()
3955 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3956 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .1)
3957 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3958 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
3959 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3960 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3961 end
3962
3963 end
3964
3965
3966
3967 function Yes2()
3968 for i = 0, 1, 0.1 do
3969
3970 swait()
3971 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
3972 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
3973 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3974 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
3975 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3976 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
3977 end
3978
3979 end
3980
3981
3982
3983--------------------------------------------------------------------------------------------------------------------------
3984function AttackAnim1()
3985for i = 0, 1, 0.05 do
3986 swait()
3987 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
3988 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
3989 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.08)
3990 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(10)), 0.3)
3991 if Torsovelocity > 2 then
3992 RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
3993 LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
3994 elseif Torsovelocity < 1 then
3995 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(-5)), .1)
3996 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(5)), .1)
3997 end
3998end
3999end
4000
4001
4002function AttackAnim2()
4003for i = 0, 1, 0.05 do
4004 swait()
4005 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
4006 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
4007 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(10), math.rad(-10)), 0.25)
4008 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
4009 if Torsovelocity > 2 then
4010 RH.C0 = clerp(RH.C0, cn(1, -.9 + -.1 * math.cos(sine / 4),0 + -.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
4011 LH.C0 = clerp(LH.C0, cn(-1, -.9 + .1 * math.cos(sine / 4), 0 + .1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
4012
4013 elseif Torsovelocity < 1 then
4014 RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(5)), .1)
4015 LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(-5)), .1)
4016 end
4017end
4018end
4019--------------------------------------------------------------------------------------------------------------------------
4020
4021
4022
4023function ShotAttackAnim1()
4024for i = 0, 1, 0.07 do
4025 swait()
4026
4027 if Torsovelocity > 2 then
4028 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
4029 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
4030 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(90), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.2)
4031 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
4032 RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4033 LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4034
4035
4036
4037 elseif Torsovelocity < 1 then
4038
4039
4040 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
4041 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
4042 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(90), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.2)
4043 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
4044 RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4045 LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4046
4047
4048 end
4049end
4050end
4051
4052
4053
4054
4055
4056function ShotAttackAnim2()
4057for i = 0, 1, 0.05 do
4058 swait()
4059
4060 if Torsovelocity > 2 then
4061 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
4062 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
4063 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(100), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
4064 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(75 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
4065 RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4066 LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4067
4068
4069
4070 elseif Torsovelocity < 1 then
4071
4072
4073 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
4074 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
4075 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(100), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
4076 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(75 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
4077 RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4078 LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4079
4080
4081 end
4082end
4083end
4084
4085
4086
4087function ShotAttackAnim3()
4088for i = 0, 1, 0.05 do
4089 swait()
4090
4091 if Torsovelocity > 2 then
4092 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
4093 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
4094 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, -.2) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
4095 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.6) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-30 - 1 * math.cos(sine / 25))), 0.2)
4096 RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4097 LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4098
4099
4100
4101 elseif Torsovelocity < 1 then
4102
4103
4104 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
4105 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
4106 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, -.2) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
4107 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.6) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-30 - 1 * math.cos(sine / 25))), 0.2)
4108 RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4109 LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4110
4111
4112 end
4113end
4114end
4115
4116function ShotAttackAnim4()
4117for i = 0, 1, 0.05 do
4118 swait()
4119
4120 if Torsovelocity > 2 then
4121 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
4122 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
4123 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, 0) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
4124 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.8) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-50 - 1 * math.cos(sine / 25))), 0.2)
4125 RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4126 LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
4127
4128
4129
4130 elseif Torsovelocity < 1 then
4131
4132
4133 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
4134 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
4135 RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, 0) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
4136 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.8) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-50 - 1 * math.cos(sine / 25))), 0.2)
4137 RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4138 LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
4139
4140
4141 end
4142end
4143end
4144--------------------------------------------------------------------------------------------------------------------------
4145
4146 function DanAni1()
4147 for i = 0, .8, 0.05 + MusThingHat.Mesh.Scale.Y*0.025 do
4148
4149 swait()
4150 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-.4) * angles(math.rad(5), math.rad(-8), math.rad(0)), MusThingHat.Mesh.Scale.Y*0.2)
4151 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(MusThingHat.Mesh.Scale.Y*30) +math.rad(-10),0,math.rad(0)),MusThingHat.Mesh.Scale.Y*0.2)
4152 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.25) * angles(math.rad(170), math.rad(0), math.rad(20)), MusThingHat.Mesh.Scale.Y*0.2)
4153 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(90), math.rad(0), math.rad(-45)), MusThingHat.Mesh.Scale.Y*0.2)
4154 RH.C0 = clerp(RH.C0, cn(1, -.2, -.4) * RHCF * angles(math.rad(-4), math.rad(-15), math.rad(-5)), MusThingHat.Mesh.Scale.Y*0.3)
4155 LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(4), math.rad(5), math.rad(5)), MusThingHat.Mesh.Scale.Y*0.2)
4156 end
4157
4158 end
4159
4160
4161
4162 function DanAni2()
4163 for i = 0, .8, 0.05 + MusThingHat.Mesh.Scale.Y*0.025 do
4164
4165 swait()
4166 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-.5) * angles(math.rad(8), math.rad(8), math.rad(0)), MusThingHat.Mesh.Scale.Y*0.2)
4167 Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(MusThingHat.Mesh.Scale.Y*30) +math.rad(-10),0,math.rad(0)),MusThingHat.Mesh.Scale.Y*0.2)
4168 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.25) * angles(math.rad(180), math.rad(0), math.rad(25)), MusThingHat.Mesh.Scale.Y*0.2)
4169 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(45)), MusThingHat.Mesh.Scale.Y*0.2)
4170 RH.C0 = clerp(RH.C0, cn(1, -1, -.0) * RHCF * angles(math.rad(4), math.rad(-5), math.rad(-8)), MusThingHat.Mesh.Scale.Y*0.2)
4171 LH.C0 = clerp(LH.C0, cn(-1, -.2, -.4) * LHCF * angles(math.rad(-4), math.rad(15), math.rad(8)), MusThingHat.Mesh.Scale.Y*0.3)
4172 end
4173
4174
4175 end
4176
4177
4178
4179--------------------------------------------------------------------------------------------------------------------------
4180
4181BuildNow = false
4182
4183Shotuse = false
4184
4185wait2 = false
4186
4187mouse.KeyDown:connect(function(key)
4188
4189 if key == "g" and attack == false then
4190yes:Play()
4191head.face.Texture = "http://www.roblox.com/asset/?id=393521316"
4192 humanoid.WalkSpeed = 0
4193 attack = true
4194 Yes1()
4195 Yes2()
4196 Yes1()
4197 Yes2()
4198 attack = false
4199 humanoid.WalkSpeed = 16
4200 head.face.Texture = "http://www.roblox.com/asset/?id=156600391"
4201 end
4202end)
4203
4204
4205mouse.KeyDown:connect(function(key)
4206 if key == "e" and attack == false then
4207if Wep == 1 then
4208Wep = 2
4209else
4210Wep = 1
4211end
4212
4213
4214 end
4215 end)
4216
4217mouse.KeyDown:connect(function(key)
4218 if key == "p" and attack == false then
4219
4220Wep = 3
4221
4222
4223
4224 end
4225 end)
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238equippedgun = true
4239
4240
4241
4242
4243coroutine.wrap(function()
4244while equippedgun do
4245
4246if spread < 0 then spread = 0 end
4247if humanoid.Health == 0 then break end
4248
4249
4250game:service'RunService'.Stepped:wait()
4251end
4252end)()
4253
4254mouse.Button1Down:connect(function()
4255if debounce then return end
4256if equippedgun2 == true and attack == false then
4257 Shotuse = true
4258debounce = true
4259
4260wait(.2)
4261
4262sound:play()
4263
4264
4265
4266coroutine.wrap(function()
4267wait(0.3)
4268for angle = 0, 4 do
4269
4270wait()
4271end
4272
4273wait(0.2)
4274sound2:play()
4275
4276
4277wait(0.1)
4278for move = 0, 3 do
4279if move > 2 then return end
4280
4281
4282wait(0.06)
4283end
4284end)()
4285spread = spread + 1
4286coroutine.wrap(function()
4287for bullitz = 0, 7 do
4288if bullitz > 6 then return end
4289rayCast2(300, 1, Reaper4)
4290GunParticle.Enabled = true
4291 local PointLight = Instance.new("PointLight", Reaper4);
4292 PointLight.Color = Color3.new(.2,.2,0)
4293 PointLight.Brightness = 2;
4294 game:service'Debris':AddItem(PointLight, .05);
4295end
4296end)()
4297coroutine.wrap(function()
4298for _ = 0, 50 do
4299pcall(function()
4300spread = spread - 0.03
4301end)
4302wait()
4303end
4304end)()
4305wait(1)
4306debounce = false
4307end
4308
4309end)
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319mouse.Button1Down:connect(function(key)
4320
4321 if attack == false and Wep == 1 then
4322attack = true
4323
4324AttackAnim1()
4325combo = 1
4326Swing:Play()
4327AttackAnim2()
4328attack = false
4329combo = 0
4330 end
4331end)
4332
4333
4334
4335mouse.KeyDown:connect(function(key)
4336
4337 if key == "f" and attack == false then
4338 No:Play()
4339 humanoid.WalkSpeed = 0
4340 attack = true
4341 No1()
4342 No2()
4343 attack = false
4344 humanoid.WalkSpeed = 16
4345 end
4346end)
4347
4348
4349
4350
4351mouse.KeyDown:connect(function(key)
4352if attack == false or DA == true then
4353 if key == "r" and Wep == 3 then
4354
4355if DA == false then
4356DA = true
4357RUS:Play()
4358attack=true
4359humanoid.WalkSpeed = 0
4360head.face.Texture = "http://www.roblox.com/asset/?id=393521316"
4361else
4362DA = false
4363RUS:Stop()
4364attack=false
4365humanoid.WalkSpeed = 16
4366head.face.Texture = "http://www.roblox.com/asset/?id=156600391"
4367end
4368 end
4369 end
4370 end)
4371
4372
4373
4374mouse.KeyDown:connect(function(key)
4375
4376 if key == "t" and attack == false then
4377 Taunt:Play()
4378 humanoid.WalkSpeed = 0
4379 attack = true
4380 No1()
4381 Yes2()
4382 attack = false
4383 humanoid.WalkSpeed = 16
4384 end
4385end)
4386
4387mouse.KeyDown:connect(function(key)
4388 if key == "z" then
4389
4390
4391
4392 if NoSentry == false and attack == false and wait2 == false then
4393wait2 = true
4394 for i,v in pairs(script:children()) do
4395 if (v:IsA'Model') then
4396
4397
4398 for i,v in pairs(v:children()) do
4399 if (v:IsA'Humanoid') then
4400 v.Health = 0
4401 end
4402 end
4403
4404
4405 end
4406
4407 NoSentry = true
4408
4409 end
4410
4411
4412
4413 end
4414
4415
4416
4417 if NoSentry == true and attack == false and wait2 == false and Wep == 1 then
4418 attack = true
4419 wait2 = true
4420 humanoid.WalkSpeed = 0
4421AnimSit()
4422AnimSitHit1()
4423WSH = WSHM[math.random(1,#WSHM)]
4424HitM.SoundId = "rbxassetid://"..WSH
4425HitM:Play()
4426BuildNow = true
4427AnimSitHit2()
4428AnimSitHit1()
4429WSH = WSHM[math.random(1,#WSHM)]
4430HitM.SoundId = "rbxassetid://"..WSH
4431HitM:Play()
4432AnimSitHit2()
4433AnimSitHit1()
4434WSH = WSHM[math.random(1,#WSHM)]
4435HitM.SoundId = "rbxassetid://"..WSH
4436HitM:Play()
4437AnimSitHit2()
4438AnimSitHit1()
4439WSH = WSHM[math.random(1,#WSHM)]
4440HitM.SoundId = "rbxassetid://"..WSH
4441HitM:Play()
4442AnimSitHit2()
4443AnimSitHit1()
4444WSH = WSHM[math.random(1,#WSHM)]
4445HitM.SoundId = "rbxassetid://"..WSH
4446HitM:Play()
4447AnimSitHit2()
4448AnimSitHit1()
4449WSH = WSHM[math.random(1,#WSHM)]
4450HitM.SoundId = "rbxassetid://"..WSH
4451HitM:Play()
4452AnimSitHit2()
4453AnimSitHit1()
4454WSH = WSHM[math.random(1,#WSHM)]
4455HitM.SoundId = "rbxassetid://"..WSH
4456HitM:Play()
4457AnimSitHit2()
4458AnimSitHit1()
4459WSH = WSHM[math.random(1,#WSHM)]
4460HitM.SoundId = "rbxassetid://"..WSH
4461HitM:Play()
4462AnimSitHit2()
4463AnimSitHit1()
4464WSH = WSHM[math.random(1,#WSHM)]
4465HitM.SoundId = "rbxassetid://"..WSH
4466HitM:Play()
4467AnimSitHit2()
4468AnimSitHit1()
4469WSH = WSHM[math.random(1,#WSHM)]
4470HitM.SoundId = "rbxassetid://"..WSH
4471HitM:Play()
4472AnimSitHit2()
4473AnimSit()
4474
4475 humanoid.WalkSpeed = 16
4476 attack = false
4477NoSentry = false
4478
4479 end
4480 wait()
4481
4482 wait2 = false
4483end end)
4484
4485
4486
4487humanoid.Died:connect(function()
4488 Arms:Destroy()
4489end)
4490
4491print([[
4492
4493
4494----------------------------------------
4495Tf2 Engineer Class
4496----------------------------------------
4497Script by: 123jl123
4498Sentry by: Madiik
4499TheBoozled gave me a Mesh and Sounds from tf2
4500----------------------------------------
4501Dont leak and dont do it.....
4502----------------------------------------
4503]])
4504
4505game:GetService("RunService"):BindToRenderStep("ew", 0, function()
4506 MusThingHat.Mesh.Scale = Vector3.new(MusThingHat.Mesh.Scale.X, RUS.PlaybackLoudness / 160, MusThingHat.Mesh.Scale.Z)
4507end)
4508
4509 local mesh1anan = Instance.new("SpecialMesh")
4510 mesh1anan.MeshType = Enum.MeshType.FileMesh
4511 mesh1anan.Scale = Vector3.new(3,3,3)
4512mesh1anan.MeshId = "http://www.roblox.com/asset/?id=521754610"
4513mesh1anan.TextureId = "http://www.roblox.com/asset/?id=521754612"
4514
4515Glow1 = Color3.new(1,1,1)
4516Glow2 = Color3.new(0,0,0)
4517
4518GlowParticle = Instance.new("ParticleEmitter")
4519GlowParticle.LightEmission = 1
4520
4521GlowParticle.Size = NumberSequence.new(0,2)
4522GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985"
4523GlowParticle.Transparency = NumberSequence.new(0,1)
4524GlowParticle.LockedToPart = false
4525GlowParticle.Lifetime = NumberRange.new(0.5)
4526GlowParticle.Rate= 25
4527GlowParticle.Speed =NumberRange.new(0)
4528
4529
4530 function RainDucks()
4531 local locationanan = char.Torso.CFrame
4532 local tacoa = Instance.new("Part")
4533 tacoa.Size = Vector3.new(.5,.5,.5)
4534 tacoa.CanCollide = false
4535 tacoa.RotVelocity = Vector3.new(math.random(0,6),math.random(0,6),math.random(0,6))
4536 local meshanananan = mesh1anan:clone()
4537 meshanananan.Parent = tacoa
4538 meshanananan.Scale = Vector3.new(1,1,1)
4539 tacoa.CFrame = locationanan * CFrame.new(math.random(-8,8),math.random(10,40),math.random(-8,8))
4540 tacoa.Parent = workspace
4541
4542
4543 game:GetService("Debris"):AddItem(tacoa,4)
4544 local GP = GlowParticle:clone()
4545 GP.Parent = tacoa
4546 Glow1 = Color3.new(math.random(), math.random(), math.random())
4547 GP.Color = ColorSequence.new(Glow1,Glow2)
4548
4549 end
4550
4551
4552
4553--]]
4554
4555
4556
4557while true do wait()
4558 if BuildNow == true then
4559 BuildNow = false
4560
4561BuildSentry()
4562 end
4563 if Shotuse == true then
4564 Shotuse = false
4565 attack = true
4566 ShotAttackAnim1()
4567 GunParticle.Enabled = false
4568 ShotAttackAnim2()
4569 ShotAttackAnim3()
4570 ShotAttackAnim4()
4571 ShotAttackAnim3()
4572 attack = false
4573 end
4574
4575
4576
4577
4578if DA == true then
4579DanAni1()
4580 RainDucks()
4581 local PointLight = Instance.new("PointLight", Torso);
4582 PointLight.Color = Color3.new(math.random(), math.random(), math.random())
4583 PointLight.Brightness = 50;
4584 PointLight.Range = MusThingHat.Mesh.Scale.Y*10;
4585 game:service'Debris':AddItem(PointLight, .3);
4586
4587DanAni2()
4588 RainDucks()
4589 local PointLight = Instance.new("PointLight", Torso);
4590 PointLight.Color = Color3.new(math.random(), math.random(), math.random())
4591 PointLight.Brightness = 50;
4592 PointLight.Range = MusThingHat.Mesh.Scale.Y*10;
4593 game:service'Debris':AddItem(PointLight, .3);
4594
4595
4596
4597end
4598
4599
4600
4601
4602
4603
4604end