SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | - | Player = game.Players.LocalPlayer |
2 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | ||
87 | local h,t | |
88 | --Give the server mouse data every second frame, but only if the values changed | |
89 | --If player is not moving their mouse, client won't fire events | |
90 | local HB = game:GetService("RunService").Heartbeat | |
91 | while true do | |
92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
93 | h,t=Mouse.Hit,Mouse.Target | |
94 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
95 | end | |
96 | --Wait 2 frames | |
97 | for i=1,2 do | |
98 | HB:Wait() | |
99 | end | |
100 | end]==],script) | |
101 | ||
102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
103 | --Real game object | |
104 | local RealGame = game | |
105 | ||
106 | --Metatable for fake service | |
107 | local FakeService_Metatable = { | |
108 | __index = function(self,k) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then | |
111 | return typeof(s[k])=="function" | |
112 | and function(_,...)return s[k](s,...)end or s[k] | |
113 | end | |
114 | end, | |
115 | __newindex = function(self,k,v) | |
116 | local s = rawget(self,"_RealService") | |
117 | if s then s[k]=v end | |
118 | end | |
119 | } | |
120 | local function FakeService(t,RealService) | |
121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
122 | return setmetatable(t,FakeService_Metatable) | |
123 | end | |
124 | ||
125 | --Fake game object | |
126 | local FakeGame = { | |
127 | GetService = function(self,s) | |
128 | return rawget(self,s) or RealGame:GetService(s) | |
129 | end, | |
130 | Players = FakeService({ | |
131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
132 | },"Players"), | |
133 | UserInputService = FakeService(UIS,"UserInputService"), | |
134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
135 | RunService = FakeService({ | |
136 | _btrs = {}, | |
137 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
138 | BindToRenderStep = function(self,name,_,fun) | |
139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
140 | end, | |
141 | UnbindFromRenderStep = function(self,name) | |
142 | self._btrs[name]:Disconnect() | |
143 | end, | |
144 | },"RunService") | |
145 | } | |
146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
147 | FakeGame.service = FakeGame.GetService | |
148 | FakeService(FakeGame,game) | |
149 | --Changing owner to fake player object to support owner:GetMouse() | |
150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
151 | end | |
152 | ||
153 | Player = owner | |
154 | Character = Player.Character | |
155 | PlayerGui = Player.PlayerGui | |
156 | Backpack = Player.Backpack | |
157 | Torso = Character.Torso | |
158 | Head = Character.Head | |
159 | Humanoid = Character.Humanoid | |
160 | Humanoid.WalkSpeed = 10 | |
161 | LeftArm = Character["Left Arm"] | |
162 | LeftLeg = Character["Left Leg"] | |
163 | RightArm = Character["Right Arm"] | |
164 | RightLeg = Character["Right Leg"] | |
165 | Character = Player.Character | |
166 | PlayerGui = Player.PlayerGui | |
167 | Backpack = Player.Backpack | |
168 | Torso = Character.Torso | |
169 | Head = Character.Head | |
170 | Humanoid = Character.Humanoid | |
171 | LeftArm = Character["Left Arm"] | |
172 | LeftLeg = Character["Left Leg"] | |
173 | RightArm = Character["Right Arm"] | |
174 | RightLeg = Character["Right Leg"] | |
175 | LS = Torso["Left Shoulder"] | |
176 | LH = Torso["Left Hip"] | |
177 | RS = Torso["Right Shoulder"] | |
178 | RH = Torso["Right Hip"] | |
179 | Neck = Torso.Neck | |
180 | attacktype = 1 | |
181 | vt = Vector3.new | |
182 | cf = CFrame.new | |
183 | euler = CFrame.fromEulerAnglesXYZ | |
184 | angles = CFrame.Angles | |
185 | necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
186 | necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
187 | LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
188 | LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
189 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
190 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
191 | RootPart = Character.HumanoidRootPart | |
192 | RootJoint = RootPart.RootJoint | |
193 | RootCF = euler(-1.57, 0, 3.14) | |
194 | attack = false | |
195 | equipped = true | |
196 | local Anim = "Idle" | |
197 | local Effects = {} | |
198 | cam = workspace.CurrentCamera | |
199 | ZTarget = nil | |
200 | RocketTarget = nil | |
201 | local RbxUtility = LoadLibrary("RbxUtility") | |
202 | local Create = RbxUtility.Create | |
203 | local m = Create("Model"){ | |
204 | Parent = Character, | |
205 | Name = "WeaponModel", | |
206 | } | |
207 | mouse = Player:GetMouse() | |
208 | RSH, LSH = nil, nil | |
209 | LH = Torso["Left Hip"] | |
210 | RH = Torso["Right Hip"] | |
211 | RSH = Torso["Right Shoulder"] | |
212 | LSH = Torso["Left Shoulder"] | |
213 | ||
214 | RSH.Parent = nil | |
215 | LSH.Parent = nil | |
216 | ||
217 | RW = Create("Weld"){ | |
218 | Name = "Right Shoulder", | |
219 | Part0 = Torso , | |
220 | C0 = cf(1.5, 0.5, 0), | |
221 | C1 = cf(0, 0.5, 0), | |
222 | Part1 = RightArm , | |
223 | Parent = Torso , | |
224 | } | |
225 | ||
226 | LW = Create("Weld"){ | |
227 | Name = "Left Shoulder", | |
228 | Part0 = Torso , | |
229 | C0 = cf(-1.5, 0.5, 0), | |
230 | C1 = cf(0, 0.5, 0) , | |
231 | Part1 = LeftArm , | |
232 | Parent = Torso , | |
233 | } | |
234 | ||
235 | function NoOutline(Part) | |
236 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
237 | end | |
238 | function swait(num) | |
239 | if num == 0 or num == nil then | |
240 | game:service'RunService'.Heartbeat:wait(0) | |
241 | else | |
242 | for i = 0, num do | |
243 | game:service'RunService'.Heartbeat:wait(0) | |
244 | end | |
245 | end | |
246 | end | |
247 | ||
248 | function nooutline(part) | |
249 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
250 | end | |
251 | ||
252 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
253 | local fp = Create("Part"){ | |
254 | formFactor = formfactor, | |
255 | Parent = parent, | |
256 | Reflectance = reflectance, | |
257 | Transparency = transparency, | |
258 | CanCollide = false, | |
259 | Locked = true, | |
260 | BrickColor = BrickColor.new(tostring(brickcolor)), | |
261 | Name = name, | |
262 | Size = size, | |
263 | Position = Character.Torso.Position, | |
264 | Material = material, | |
265 | } | |
266 | nooutline(fp) | |
267 | return fp | |
268 | end | |
269 | ||
270 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
271 | local Msh = Create(Mesh){ | |
272 | Parent = part, | |
273 | Offset = offset, | |
274 | Scale = scale, | |
275 | } | |
276 | if Mesh == "SpecialMesh" then | |
277 | Msh.MeshType = meshtype | |
278 | Msh.MeshId = meshid | |
279 | end | |
280 | return Msh | |
281 | end | |
282 | ||
283 | function weld(parent, part0, part1, c0, c1) | |
284 | local Weld = Create("Weld"){ | |
285 | Parent = parent, | |
286 | Part0 = part0, | |
287 | Part1 = part1, | |
288 | C0 = c0, | |
289 | C1 = c1, | |
290 | } | |
291 | return Weld | |
292 | end | |
293 | ||
294 | ||
295 | local function CFrameFromTopBack(at, top, back) | |
296 | - | Value = game:service("Players").LocalPlayer, |
296 | + | |
297 | return CFrame.new(at.x, at.y, at.z, | |
298 | right.x, top.x, back.x, | |
299 | right.y, top.y, back.y, | |
300 | right.z, top.z, back.z) | |
301 | end | |
302 | ||
303 | function Triangle(a, b, c) | |
304 | local edg1 = (c - a):Dot((b - a).unit) | |
305 | local edg2 = (a - b):Dot((c - b).unit) | |
306 | local edg3 = (b - c):Dot((a - c).unit) | |
307 | if edg1 <= (b - a).magnitude and edg1 >= 0 then | |
308 | a, b, c = a, b, c | |
309 | elseif edg2 <= (c - b).magnitude and edg2 >= 0 then | |
310 | a, b, c = b, c, a | |
311 | elseif edg3 <= (a - c).magnitude and edg3 >= 0 then | |
312 | a, b, c = c, a, b | |
313 | else | |
314 | assert(false, "unreachable") | |
315 | end | |
316 | ||
317 | local len1 = (c - a):Dot((b - a).unit) | |
318 | local len2 = (b - a).magnitude - len1 | |
319 | local width = (a + (b - a).unit * len1 - c).magnitude | |
320 | ||
321 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) | |
322 | ||
323 | local list = {} | |
324 | ||
325 | local Color = BrickColor.new("Lime green") | |
326 | ||
327 | if len1 > 0.01 then | |
328 | local w1 = Create('WedgePart', m){ | |
329 | Material = "SmoothPlastic", | |
330 | FormFactor = 'Custom', | |
331 | BrickColor = Color, | |
332 | Transparency = 0, | |
333 | Reflectance = 0, | |
334 | Material = "SmoothPlastic", | |
335 | CanCollide = false, | |
336 | Anchored = true, | |
337 | Parent = workspace, | |
338 | Transparency = 0.3, | |
339 | } | |
340 | game:GetService("Debris"):AddItem(w1, 5) | |
341 | NoOutline(w1) | |
342 | local sz = Vector3.new(0.2, width, len1) | |
343 | w1.Size = sz | |
344 | local sp = Create("SpecialMesh"){ | |
345 | Parent = w1, | |
346 | MeshType = "Wedge", | |
347 | Scale = Vector3.new(0, 1, 1) * sz / w1.Size, | |
348 | } | |
349 | w1:BreakJoints() | |
350 | table.insert(Effects, { | |
351 | w1, | |
352 | "Disappear", | |
353 | .03 | |
354 | }) | |
355 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
356 | table.insert(list, w1) | |
357 | end | |
358 | if len2 > 0.01 then | |
359 | local w2 = Create('WedgePart', m){ | |
360 | Material = "SmoothPlastic", | |
361 | FormFactor = 'Custom', | |
362 | BrickColor = Color, | |
363 | Transparency = 0, | |
364 | Reflectance = 0, | |
365 | Material = "SmoothPlastic", | |
366 | CanCollide = false, | |
367 | Anchored = true, | |
368 | Parent = workspace, | |
369 | Transparency = 0.3, | |
370 | } | |
371 | game:GetService("Debris"):AddItem(w2, 5) | |
372 | NoOutline(w2) | |
373 | local sz = Vector3.new(0.2, width, len2) | |
374 | w2.Size = sz | |
375 | local sp = Create("SpecialMesh"){ | |
376 | Parent = w2, | |
377 | MeshType = "Wedge", | |
378 | Scale = Vector3.new(0, 1, 1) * sz / w2.Size, | |
379 | } | |
380 | w2:BreakJoints() | |
381 | table.insert(Effects, { | |
382 | w2, | |
383 | "Disappear", | |
384 | .03 | |
385 | }) | |
386 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
387 | table.insert(list, w2) | |
388 | end | |
389 | return unpack(list) | |
390 | end | |
391 | ||
392 | function so(id, par, vol, pit) | |
393 | coroutine.resume(coroutine.create(function() | |
394 | local sou = Instance.new("Sound", par or workspace) | |
395 | sou.Volume = vol | |
396 | sou.Pitch = pit or 1 | |
397 | sou.SoundId = id | |
398 | swait() | |
399 | sou:play() | |
400 | swait(6) | |
401 | sou:Remove() | |
402 | end)) | |
403 | end | |
404 | ||
405 | function clerp(a,b,t) | |
406 | ||
407 | local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end | |
408 | ||
409 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end | |
410 | ||
411 | local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end | |
412 | ||
413 | local qa = {QuaternionFromCFrame(a)} | |
414 | local qb = {QuaternionFromCFrame(b)} | |
415 | local ax, ay, az = a.x, a.y, a.z | |
416 | local bx, by, bz = b.x, b.y, b.z | |
417 | ||
418 | local _t = 1-t | |
419 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
420 | end | |
421 | ||
422 | function rayCast(Pos, Dir, Max, Ignore) | |
423 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
424 | end | |
425 | ||
426 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
427 | if hit.Parent == nil then | |
428 | return | |
429 | end | |
430 | local h = hit.Parent:FindFirstChild("Humanoid") | |
431 | for _, v in pairs(hit.Parent:children()) do | |
432 | if v:IsA("Humanoid") then | |
433 | h = v | |
434 | end | |
435 | end | |
436 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
437 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
438 | if hit.Parent.DebounceHit.Value == true then | |
439 | return | |
440 | end | |
441 | end | |
442 | if h.MaxHealth >= math.huge then | |
443 | hit:BreakJoints() | |
444 | end | |
445 | local c = Create("ObjectValue"){ | |
446 | Name = "creator", | |
447 | Value = owner, | |
448 | Parent = h, | |
449 | } | |
450 | game:GetService("Debris"):AddItem(c, .5) | |
451 | if HitSound ~= nil and HitPitch ~= nil then | |
452 | so(HitSound, hit, 1, HitPitch) | |
453 | end | |
454 | local Damage = math.random(minim, maxim) | |
455 | local blocked = false | |
456 | local block = hit.Parent:findFirstChild("Block") | |
457 | if block ~= nil then | |
458 | if block.className == "IntValue" then | |
459 | if block.Value > 0 then | |
460 | blocked = true | |
461 | block.Value = block.Value - 1 | |
462 | print(block.Value) | |
463 | end | |
464 | end | |
465 | end | |
466 | if blocked == false then | |
467 | h.Health = h.Health - Damage | |
468 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
469 | else | |
470 | h.Health = h.Health - (Damage / 2) | |
471 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
472 | end | |
473 | if Type == "Knockdown" then | |
474 | local hum = hit.Parent.Humanoid | |
475 | hum.PlatformStand = true | |
476 | coroutine.resume(coroutine.create(function(HHumanoid) | |
477 | swait(1) | |
478 | HHumanoid.PlatformStand = false | |
479 | end), hum) | |
480 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
481 | local bodvol = Create("BodyVelocity"){ | |
482 | velocity = angle * knockback, | |
483 | P = 5000, | |
484 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
485 | Parent = hit, | |
486 | } | |
487 | local rl = Create("BodyAngularVelocity"){ | |
488 | P = 3000, | |
489 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
490 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
491 | Parent = hit, | |
492 | } | |
493 | game:GetService("Debris"):AddItem(bodvol, .5) | |
494 | game:GetService("Debris"):AddItem(rl, .5) | |
495 | elseif Type == "Normal" then | |
496 | local vp = Create("BodyVelocity"){ | |
497 | P = 500, | |
498 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
499 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
500 | } | |
501 | if knockback > 0 then | |
502 | vp.Parent = hit.Parent.Torso | |
503 | end | |
504 | game:GetService("Debris"):AddItem(vp, .5) | |
505 | elseif Type == "Up" then | |
506 | local bodyVelocity = Create("BodyVelocity"){ | |
507 | velocity = vt(0, 20, 0), | |
508 | P = 5000, | |
509 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
510 | Parent = hit, | |
511 | } | |
512 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
513 | elseif Type == "Snare" then | |
514 | local bp = Create("BodyPosition"){ | |
515 | P = 2000, | |
516 | D = 100, | |
517 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
518 | position = hit.Parent.Torso.Position, | |
519 | Parent = hit.Parent.Torso, | |
520 | } | |
521 | game:GetService("Debris"):AddItem(bp, 1) | |
522 | elseif Type == "Freeze" then | |
523 | local BodPos = Create("BodyPosition"){ | |
524 | P = 50000, | |
525 | D = 1000, | |
526 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
527 | position = hit.Parent.Torso.Position, | |
528 | Parent = hit.Parent.Torso, | |
529 | } | |
530 | local BodGy = Create("BodyGyro") { | |
531 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
532 | P = 20e+003, | |
533 | Parent = hit.Parent.Torso, | |
534 | cframe = hit.Parent.Torso.CFrame, | |
535 | } | |
536 | hit.Parent.Torso.Anchored = true | |
537 | coroutine.resume(coroutine.create(function(Part) | |
538 | swait(1.5) | |
539 | Part.Anchored = false | |
540 | end), hit.Parent.Torso) | |
541 | game:GetService("Debris"):AddItem(BodPos, 3) | |
542 | game:GetService("Debris"):AddItem(BodGy, 3) | |
543 | end | |
544 | local debounce = Create("BoolValue"){ | |
545 | Name = "DebounceHit", | |
546 | Parent = hit.Parent, | |
547 | Value = true, | |
548 | } | |
549 | game:GetService("Debris"):AddItem(debounce, Delay) | |
550 | c = Instance.new("ObjectValue") | |
551 | c.Name = "creator" | |
552 | c.Value = Player | |
553 | c.Parent = h | |
554 | game:GetService("Debris"):AddItem(c, .5) | |
555 | end | |
556 | end | |
557 | ||
558 | function ShowDamage(Pos, Text, Time, Color) | |
559 | local Rate = (1 / 30) | |
560 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
561 | local Text = (Text or "") | |
562 | local Time = (Time or 2) | |
563 | local Color = (Color or Color3.new(1, 0, 0)) | |
564 | local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0)) | |
565 | EffectPart.Anchored = true | |
566 | local BillboardGui = Create("BillboardGui"){ | |
567 | Size = UDim2.new(3, 0, 3, 0), | |
568 | Adornee = EffectPart, | |
569 | Parent = EffectPart, | |
570 | } | |
571 | local TextLabel = Create("TextLabel"){ | |
572 | BackgroundTransparency = 1, | |
573 | Size = UDim2.new(1, 0, 1, 0), | |
574 | Text = Text, | |
575 | TextColor3 = Color, | |
576 | TextScaled = true, | |
577 | Font = Enum.Font.ArialBold, | |
578 | Parent = BillboardGui, | |
579 | } | |
580 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
581 | EffectPart.Parent = game:GetService("Workspace") | |
582 | delay(0, function() | |
583 | local Frames = (Time / Rate) | |
584 | for Frame = 1, Frames do | |
585 | wait(Rate) | |
586 | local Percent = (Frame / Frames) | |
587 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
588 | TextLabel.TextTransparency = Percent | |
589 | end | |
590 | if EffectPart and EffectPart.Parent then | |
591 | EffectPart:Destroy() | |
592 | end | |
593 | end) | |
594 | end | |
595 | ||
596 | Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Smoky grey","Handle",Vector3.new(0.442519516, 2.0650897, 0.295012921)) | |
597 | Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.947258949, -0.45997858, -0.0570378304, 7.77969425e-011, -0.999999881, -1.37820278e-012, -1.39760203e-010, 1.37820257e-012, -1, 1, 7.77969356e-011, -1.39760203e-010)) | |
598 | FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Smoky grey","FakeHandle",Vector3.new(0.442519516, 2.0650897, 0.295012921)) | |
599 | FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00143384933, 0.00119042397, 1.43051147e-006, 1, -3.30743766e-012, -1.37846817e-011, 3.30743766e-012, 1, -2.06202139e-011, 1.37846817e-011, 2.06202139e-011, 1)) | |
600 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Lime green","Hitbox",Vector3.new(2.19002581, 6.55274916, 0.590025842)) | |
601 | Hitboxweld=weld(m,FakeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.17896843, -4.79059315, -4.76837158e-007, 1, 2.0566379e-019, 5.67611236e-012, -2.27116525e-019, 1, -1.52766688e-013, -5.67611236e-012, 1.52766688e-013, 1)) | |
602 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.442519516, 0.200000003, 0.309763551)) | |
603 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.405433416, 0.701894522, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
604 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
605 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.295013011, 0.200000003, 0.295012951)) | |
606 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.515680313, -1.24921036, -0.295011044, 1, 2.06574115e-019, 0, 2.06574115e-019, 1, 0, 0, 0, 1)) | |
607 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.774408579, 1)) | |
608 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.442519516, 0.200000003, 0.32451418)) | |
609 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.405433416, 0.701894522, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
610 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.773333311, 0.346640021, 1)) | |
611 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 0.295012861, 0.442519456)) | |
612 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -7.51639271, 0.443106174, -2.97838199e-008, 1.94848582e-011, 0.999994636, 2.58582196e-012, 1, -1.94823463e-011, -0.999994636, 2.86134896e-012, -2.97838199e-008)) | |
613 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
614 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.295013011, 0.295012772, 0.295012951)) | |
615 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.515707016, -2.06437659, 4.46099548e-008, 4.16034491e-005, -0.999989271, -0.999989271, 9.6335441e-007, -4.62988687e-008, 9.63345315e-007, 1, 4.16012699e-005)) | |
616 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.14750649, 0.147506386, 1.67862356)) | |
617 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.885039032, 0.295012772, 0.295012921)) | |
618 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.51570034, -1.91668773, -9.53674316e-007, 0.999989271, -2.75521359e-013, -3.70870001e-013, -2.75503253e-013, 1, -6.03156414e-013, 3.70870001e-013, 6.07985884e-013, 0.999989271)) | |
619 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
620 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.885039032, 0.295012772, 0.590025842)) | |
621 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.51570034, -1.62167501, -9.53674316e-007, 0.999989271, -2.75521359e-013, -3.70870001e-013, -2.75503253e-013, 1, -6.03156414e-013, 3.70870001e-013, 6.07985884e-013, 0.999989271)) | |
622 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
623 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Smoky grey","Part",Vector3.new(0.295013011, 2.06508946, 0.295012921)) | |
624 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.220681667, 0.000894546509, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
625 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
626 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.295013011, 0.200000003, 0.295012951)) | |
627 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.515694618, -1.24922132, 0.295011997, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
628 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.774408579, 1)) | |
629 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.442519516, 0.200000003, 0.309763551)) | |
630 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.258158922, -0.44693923, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
631 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
632 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.737532496, 1.62257028, 0.236010328)) | |
633 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.500944138, -2.87547874, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
634 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
635 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(1.03254545, 0.200000003, 0.590025842)) | |
636 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000577926636, -1.25290799, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
637 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
638 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.442519516, 0.200000003, 0.295012921)) | |
639 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000577926636, -1.10540175, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
640 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
641 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 0.200000003, 0.295012921)) | |
642 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.442921877, -5.82329798, -9.53674316e-007, 0.999994636, -2.75512252e-013, 1.20729954e-011, 6.40126642e-019, 1, -2.00535422e-012, -1.20729954e-011, 2.00608974e-012, 0.999994636)) | |
643 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 0.73753202, 1)) | |
644 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.590025902, 5.75274944, 0.590025842)) | |
645 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.220380783, -4.7907896, -9.53674316e-007, 1, -2.75534153e-013, 5.59502444e-012, 2.75533936e-013, 1, -1.40031042e-012, -5.59502444e-012, 1.40031042e-012, 1)) | |
646 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.442519516, 0.200000003, 0.32451418)) | |
647 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.258158922, -0.44693923, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
648 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.773333311, 0.346640021, 1)) | |
649 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.442519516, 0.200000003, 0.32451418)) | |
650 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.110691786, -0.191638708, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
651 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.773333311, 0.346640021, 1)) | |
652 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.442519516, 0.200000003, 0.309763551)) | |
653 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.110691786, -0.191638708, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
654 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
655 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.442519516, 0.200000003, 0.309763551)) | |
656 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.25796771, 0.446596622, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
657 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
658 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.442519516, 0.200000003, 0.32451418)) | |
659 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.110505342, 0.191305399, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
660 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.773333311, 0.346640021, 1)) | |
661 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.77007711, 0.590025842)) | |
662 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.148234606, -6.77999687, -4.76837158e-007, 0.999994636, -3.30741142e-012, -8.79209205e-012, 3.03188355e-012, 1, -2.20568841e-011, 8.79386841e-012, 2.2059396e-011, 0.999994636)) | |
663 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
664 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.295013011, 0.200000003, 0.295012921)) | |
665 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221826315, -1.1054008, -9.53674316e-007, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
666 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
667 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.885039032, 0.200000003, 0.885038733)) | |
668 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.51568079, -1.40040469, 1.90734863e-006, 1, -1.02663131e-020, 0, -1.02663131e-020, 1, 0, 0, 0, 1)) | |
669 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
670 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.442519516, 0.200000003, 0.309763551)) | |
671 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.405618906, -0.702226162, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
672 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
673 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295012981, 0.200000003, 0.295012921)) | |
674 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221667767, -3.16900206, -1.43051147e-006, 0.999994636, -2.75512252e-013, 8.49046528e-012, 6.40146029e-019, 1, -1.70229109e-012, -8.49046528e-012, 1.70302661e-012, 0.999994636)) | |
675 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.737533867, 1)) | |
676 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(1.03254545, 0.200000003, 0.885038733)) | |
677 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000566482544, -1.40041232, -9.53674316e-007, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
678 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
679 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.442519516, 0.200000003, 0.309763551)) | |
680 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.110505342, 0.191305399, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
681 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
682 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.442519516, 0.200000003, 0.32451418)) | |
683 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.25796771, 0.446596622, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
684 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.773333311, 0.346640021, 1)) | |
685 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.885039032, 0.200000003, 0.590025842)) | |
686 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.515706539, -1.25290704, -9.53674316e-007, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
687 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
688 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.295013011, 0.200000003, 0.295012921)) | |
689 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.220693111, -1.1054008, -9.53674316e-007, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
690 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
691 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.442519516, 0.200000003, 0.32451418)) | |
692 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.405618906, -0.702226162, 0, 0.865923226, 0.500177085, 1.67872543e-008, -0.500177085, 0.865923226, 5.24679216e-008, 1.17067778e-008, -5.38297869e-008, 1)) | |
693 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.773333311, 0.346640021, 1)) | |
694 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295012832, 1.47506392, 0.295012921)) | |
695 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.369297743, -6.63180447, -4.76837158e-007, -0.999994636, 3.30741012e-012, -5.96323204e-008, 3.03188355e-012, 1, -2.20568841e-011, 5.96323204e-008, -2.2059396e-011, -0.999994636)) | |
696 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.885039032, 4.13017941, 0.295012921)) | |
697 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.515714169, -5.75185299, -1.90734863e-006, 1, -2.75524395e-013, -3.52162743e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.52162743e-013, 6.03156414e-013, 1)) | |
698 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
699 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.309763402, 0.295012951)) | |
700 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.86102295e-006, 9.53674316e-007, -0.000194549561, 1, -4.63448572e-007, -3.23592047e-007, -3.23591962e-007, 1.64063181e-007, -1, 4.63448629e-007, 1, 1.64063024e-007)) | |
701 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
702 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.324514031, 0.295012951)) | |
703 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.86102295e-006, 9.53674316e-007, -0.000194549561, 1, -4.63448572e-007, -3.23592047e-007, -3.23591962e-007, 1.64063181e-007, -1, 4.63448629e-007, 1, 1.64063024e-007)) | |
704 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.554624319, 1, 1)) | |
705 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.18005168, 0.442519188, 0.590025842)) | |
706 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0743150711, -1.69562244, -4.76837158e-007, 1, -2.75524395e-013, -7.45878637e-011, 2.75524178e-013, 1, 1.48707172e-010, 7.45878637e-011, -1.48707172e-010, 1)) | |
707 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295012981, 0.200000003, 0.295012921)) | |
708 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221646786, -5.82227278, -9.53674316e-007, 0.999994636, -2.75512252e-013, 8.49046528e-012, 6.40146029e-019, 1, -1.70229109e-012, -8.49046528e-012, 1.70302661e-012, 0.999994636)) | |
709 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.737533867, 1)) | |
710 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.295013011, 0.29501307, 0.295012921)) | |
711 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.515041351, -7.81274223, 9.53674316e-007, 1, -2.75534153e-013, 5.61278801e-012, 2.75533936e-013, 1, -1.40031042e-012, -5.61278801e-012, 1.40031042e-012, 1)) | |
712 | mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
713 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 2.50760889, 0.295012921)) | |
714 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.442756176, -4.49544907, 0, -0.999994636, 4.46044921e-013, -5.96452097e-008, 1.70532628e-013, 1, -2.17245666e-012, 5.96452097e-008, -2.17319218e-012, -0.999994636)) | |
715 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
716 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295012832, 3.83516645, 0.295012921)) | |
717 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.664005995, -3.83165455, -4.76837158e-007, -0.999994636, 4.46044704e-013, -5.9642197e-008, 1.70532411e-013, 1, -2.17245666e-012, 5.9642197e-008, -2.17319218e-012, -0.999994636)) | |
718 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.295013011, 0.200000003, 0.295012951)) | |
719 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.516839504, -1.24921942, -0.295013905, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
720 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.774408579, 1)) | |
721 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.885039032, 0.200000003, 0.885038733)) | |
722 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.516690731, -1.39850712, -9.53674316e-007, 0.999994636, -2.87668977e-013, 3.06331349e-012, 3.44146416e-015, 1, -1.37230505e-012, -3.06331349e-012, 1.64791791e-012, 0.999994636)) | |
723 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
724 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295012981, 0.590025663, 0.295012921)) | |
725 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.221410513, -2.21052313, 0, -0.999994636, 4.46101083e-013, -5.96629377e-008, 1.70589007e-013, 1, -1.86926863e-012, 5.96629377e-008, -1.87000415e-012, -0.999994636)) | |
726 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.885039032, 0.200000003, 0.590025842)) | |
727 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.516839266, -1.25290704, -9.53674316e-007, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
728 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
729 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Smoky grey","Part",Vector3.new(0.295013011, 2.0650897, 0.295012921)) | |
730 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221837759, 0.000894069672, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
731 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
732 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295013011, 0.295012772, 0.295012951)) | |
733 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.86102295e-006, -7.51719093, 0.369443893, -2.97932274e-008, 2.2059396e-011, 0.999994636, 3.03188355e-012, 1, -2.20568841e-011, -0.999994636, 3.30741055e-012, -2.9793231e-008)) | |
734 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
735 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.295012981, 2.50760913, 0.590025842)) | |
736 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221670628, -4.49578571, -9.53674316e-007, 0.999994636, -2.75512252e-013, 8.49046528e-012, 6.40146029e-019, 1, -1.70229109e-012, -8.49046528e-012, 1.70302661e-012, 0.999994636)) | |
737 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1.18005121, 0.295012921)) | |
738 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.442702055, -2.50398636, -4.76837158e-007, -0.999994636, 4.46044704e-013, -5.96449254e-008, 1.70532411e-013, 1, -2.17248441e-012, 5.96449254e-008, -2.17321994e-012, -0.999994636)) | |
739 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
740 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.295012981, 0.200000003, 0.295012921)) | |
741 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.221019745, 1.26017833, 0, 1, 9.9763433e-018, -7.45067757e-011, -9.97532752e-018, 1, 1.49954715e-010, 7.45067757e-011, -1.49954715e-010, 1)) | |
742 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.7375319, 0.5)) | |
743 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.590025961, 0.200000003, 0.295012951)) | |
744 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.43051147e-006, 2.43220711, 0.221660852, 4.63391068e-008, 4.46825474e-008, -0.999994636, -1.51188004e-008, -1, -4.46823094e-008, -0.999994636, 1.51191593e-008, -4.63391068e-008)) | |
745 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.7375319, 1)) | |
746 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.590025961, 0.29501313, 0.590025902)) | |
747 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -7.81263161, -0.0730409622, -2.97896676e-008, 2.1756319e-011, 0.999994636, 3.03188355e-012, 1, -2.17538071e-011, -0.999994636, 3.30741055e-012, -2.97896676e-008)) | |
748 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
749 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 0.200000003, 0.295012921)) | |
750 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.442914724, -3.16820765, -9.53674316e-007, 0.999994636, -3.32356538e-013, 1.56541308e-011, 5.68447064e-014, 1, -2.00535422e-012, -1.56541308e-011, 2.00608974e-012, 0.999994636)) | |
751 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 0.73753202, 1)) | |
752 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.295013011, 0.295012653, 0.295012921)) | |
753 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.220681667, 1.18094492, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
754 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
755 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.442519516, 0.295013011, 0.295012921)) | |
756 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000577926636, 1.18094552, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
757 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.295013011, 0.200000003, 0.295012951)) | |
758 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.516839504, -1.24921942, 0.295011997, 1, -2.75533285e-013, -1.00870701e-013, 2.75533285e-013, 1, -1.20869981e-012, 1.00870701e-013, 1.20869981e-012, 1)) | |
759 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.774408579, 1)) | |
760 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 0.295012772, 0.200000003)) | |
761 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.24520874e-006, -7.2211132, 0.590576887, -2.97847187e-008, 2.00882505e-011, 0.999994636, 2.97503276e-012, 1, -2.00857525e-011, -0.999994636, 3.25055976e-012, -2.97847187e-008)) | |
762 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 0.737532377)) | |
763 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.295013011, 0.295012772, 0.295012951)) | |
764 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000162124634, -0.515693188, -3.68544936, 4.4589239e-008, 4.16090261e-005, -1, -1, 9.63814387e-007, -4.45491359e-008, 9.63812568e-007, 1, 4.16090261e-005)) | |
765 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.14750649, 0.147506386, 1.67862356)) | |
766 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.295012981, 0.590025902, 0.590025842)) | |
767 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221664906, -2.80066252, -4.76837158e-007, 0.999994636, -2.75512252e-013, 5.59144397e-012, 6.40165364e-019, 1, -1.40031042e-012, -5.59144397e-012, 1.40104595e-012, 0.999994636)) | |
768 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.295012861, 0.590025842)) | |
769 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.441378117, -7.8126545, 4.76837158e-007, 1, -2.75534153e-013, 5.60212987e-012, 2.75533936e-013, 1, -1.40031042e-012, -5.60212987e-012, 1.40031042e-012, 1)) | |
770 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
771 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cool yellow","Part",Vector3.new(0.295013011, 0.295012653, 0.295012921)) | |
772 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221837759, 1.1809448, -9.53674316e-007, 1, -2.75524395e-013, -3.7087694e-013, 2.75524178e-013, 1, -6.03156414e-013, 3.7087694e-013, 6.03156414e-013, 1)) | |
773 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
774 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.295012981, 0.200000003, 0.295012921)) | |
775 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.221020699, 1.26017833, 0, 1, 9.9763433e-018, -7.45067757e-011, -9.97532752e-018, 1, 1.49954715e-010, 7.45067757e-011, -1.49954715e-010, 1)) | |
776 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.7375319, 0.5)) | |
777 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 3.09763432, 0.200000003)) | |
778 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-006, -3.01968145, 0.885297298, -2.97987981e-008, 2.57460719e-013, 0.999994636, -6.94917659e-018, 1, -2.56739074e-013, -0.999994636, 2.7550469e-013, -2.97987981e-008)) | |
779 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 0.737532377)) | |
780 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 3.09763432, 0.295012951)) | |
781 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-006, 3.01982832, 1.10655999, -1.39933377e-007, -4.45522055e-008, -0.999994636, 2.86610089e-007, -1, 4.45516228e-008, -0.999994636, -2.86611339e-007, 1.39933377e-007)) | |
782 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
783 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295013011, 3.09763479, 0.200000003)) | |
784 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.24520874e-006, 3.02018595, 0.885407448, -3.11451095e-006, 6.73515251e-006, -0.999994636, -9.20183595e-007, -1, -6.73511386e-006, -0.999994636, 9.20167849e-007, 3.11451709e-006)) | |
785 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.737532377)) | |
786 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 2.50760865, 0.200000003)) | |
787 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-006, -5.82237434, 0.885300398, -2.97994376e-008, 2.57405208e-013, 0.999994636, -6.94917659e-018, 1, -2.56683563e-013, -0.999994636, 2.7550469e-013, -2.97994376e-008)) | |
788 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 0.737532377)) | |
789 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295013011, 0.295012772, 0.295012951)) | |
790 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.33786011e-006, -7.22234058, 0.664441347, -2.9783191e-008, 2.17563467e-011, 0.999994636, 3.03188355e-012, 1, -2.17538348e-011, -0.999994636, 3.30741099e-012, -2.9783191e-008)) | |
791 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
792 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 0.295012861, 0.295012951)) | |
793 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-006, -7.22363949, 0.811548233, -2.9798791e-008, -4.60201321e-013, 0.999994636, -1.67088796e-013, 1, 1.42011403e-013, -0.999994636, 1.17143505e-013, -2.9798791e-008)) | |
794 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
795 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295013011, 2.50760913, 0.200000003)) | |
796 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.19345093e-005, -5.82271338, 0.885406017, 3.1608879e-006, -6.71891894e-006, 0.999994636, 5.22557343e-007, 1, 6.7188812e-006, -0.999994636, 5.22539153e-007, 3.16089131e-006)) | |
797 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.737532377)) | |
798 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.442519099, 0.295012921)) | |
799 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.737729549, -1.69281816, -9.53674316e-007, -0.999994636, 3.89201068e-013, -5.96419838e-008, 1.13688993e-013, 1, -2.77888823e-012, 5.96419838e-008, -2.77962375e-012, -0.999994636)) | |
800 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
801 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.295012832, 1.32755756, 0.295012921)) | |
802 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.664032698, -6.41297722, 4.76837158e-007, -0.999994636, 2.75512279e-013, -5.96358518e-008, 8.56986463e-019, 1, -1.70230496e-012, 5.96358518e-008, -1.70302661e-012, -0.999994636)) | |
803 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Lime green","Part",Vector3.new(0.200000003, 2.50760865, 0.295012951)) | |
804 | Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.24520874e-006, -5.82254457, 1.1065681, -2.98008658e-008, 2.82357471e-013, 0.999994636, 3.44146437e-015, 1, 2.41195952e-014, -0.999994636, 2.87673775e-013, -2.980088e-008)) | |
805 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.737532437, 1, 1)) | |
806 | ||
807 | function attackone() | |
808 | attack = true | |
809 | Humanoid.WalkSpeed = 5 | |
810 | for i = 0, 1, 0.05 do | |
811 | swait() | |
812 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .2) | |
813 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .2) | |
814 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, -.5) * angles(math.rad(130), math.rad(0), math.rad(30)), 0.2) | |
815 | LW.C0 = clerp(LW.C0, CFrame.new(.5, 0.7, -.5) * angles(math.rad(145), math.rad(0), math.rad(50)), 0.2) | |
816 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
817 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
818 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(80)), 0.25) | |
819 | end | |
820 | local con = Hitbox.Touched:connect(function(hit) | |
821 | Damagefunc(Hitbox, hit, 30, 50, math.random(1, 5), "Knockdown", RootPart, .2, "rbxassetid://199149221", .8) | |
822 | end) | |
823 | so("rbxassetid://203691447",Hitbox,1,0.9) | |
824 | Humanoid.WalkSpeed = 0 | |
825 | for i = 0, 1, 0.03 do | |
826 | swait() | |
827 | ||
828 | local blcf = Hitbox.CFrame * CFrame.new(0, .3, 0) | |
829 | if scfr and (Hitbox.Position - scfr.p).magnitude > .1 then | |
830 | local h = 5 | |
831 | local a, b = Triangle((scfr * CFrame.new(0, h / 2, 0)).p, (scfr * CFrame.new(0, -h / 2, 0)).p, (blcf * CFrame.new(0, h / 2, 0)).p) | |
832 | if a then | |
833 | game.Debris:AddItem(a, 1) | |
834 | end | |
835 | if b then | |
836 | game.Debris:AddItem(b, 1) | |
837 | end | |
838 | local a, b = Triangle((blcf * CFrame.new(0, h / 2, 0)).p, (blcf * CFrame.new(0, -h / 2, 0)).p, (scfr * CFrame.new(0, -h / 2, 0)).p) | |
839 | if a then | |
840 | game.Debris:AddItem(a, 1) | |
841 | end | |
842 | if b then | |
843 | game.Debris:AddItem(b, 1) | |
844 | end | |
845 | scfr = blcf | |
846 | elseif not scfr then | |
847 | scfr = blcf | |
848 | end | |
849 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -.5) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
850 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
851 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(30), math.rad(0), math.rad(-30)), 0.3) | |
852 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(35), math.rad(0), math.rad(50)), 0.3) | |
853 | RH.C0 = clerp(RH.C0, cf(1, -.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(20)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
854 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(30)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
855 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(-20)), 0.3) | |
856 | end | |
857 | attack = false | |
858 | Humanoid.WalkSpeed = 10 | |
859 | con:disconnect() | |
860 | scfr = nil | |
861 | end | |
862 | ||
863 | function attacktwo() | |
864 | attack = true | |
865 | Humanoid.WalkSpeed = 5 | |
866 | for i = 0,1,0.05 do | |
867 | swait() | |
868 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .2) | |
869 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(-80)), .2) | |
870 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(70)), 0.2) | |
871 | LW.C0 = clerp(LW.C0, CFrame.new(-.5, 0.5, -.5) * angles(math.rad(0), math.rad(-120), math.rad(-80)), 0.2) | |
872 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
873 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-150), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
874 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, -.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.25) | |
875 | end | |
876 | Humanoid.WalkSpeed = 20 | |
877 | local con = Hitbox.Touched:connect(function(hit) | |
878 | Damagefunc(Hitbox, hit, 30, 50, math.random(1, 5), "Knockdown", RootPart, .2, "rbxassetid://199149186", .8) | |
879 | end) | |
880 | for i = 1,3 do | |
881 | so("rbxassetid://203691492",Hitbox,1,0.9) | |
882 | for i = 0,1,0.06 do | |
883 | swait() | |
884 | local blcf = Hitbox.CFrame * CFrame.new(0, .3, 0) | |
885 | if scfr and (Hitbox.Position - scfr.p).magnitude > .1 then | |
886 | local h = 5 | |
887 | local a, b = Triangle((scfr * CFrame.new(0, h / 2, 0)).p, (scfr * CFrame.new(0, -h / 2, 0)).p, (blcf * CFrame.new(0, h / 2, 0)).p) | |
888 | if a then | |
889 | game.Debris:AddItem(a, 1) | |
890 | end | |
891 | if b then | |
892 | game.Debris:AddItem(b, 1) | |
893 | end | |
894 | local a, b = Triangle((blcf * CFrame.new(0, h / 2, 0)).p, (blcf * CFrame.new(0, -h / 2, 0)).p, (scfr * CFrame.new(0, -h / 2, 0)).p) | |
895 | if a then | |
896 | game.Debris:AddItem(a, 1) | |
897 | end | |
898 | if b then | |
899 | game.Debris:AddItem(b, 1) | |
900 | end | |
901 | scfr = blcf | |
902 | elseif not scfr then | |
903 | scfr = blcf | |
904 | end | |
905 | Torso.Velocity = Head.CFrame.lookVector * 30 | |
906 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), -6*i), .3) | |
907 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .2) | |
908 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(85)), 0.2) | |
909 | LW.C0 = clerp(LW.C0, CFrame.new(0, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-85)), 0.2) | |
910 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(30)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
911 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-30)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
912 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, -.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.25) | |
913 | end | |
914 | end | |
915 | attack = false | |
916 | scfr = nil | |
917 | con:disconnect() | |
918 | Humanoid.WalkSpeed = 10 | |
919 | end | |
920 | ||
921 | function attackthree() | |
922 | attack = true | |
923 | for i = 0,1,0.05 do | |
924 | swait() | |
925 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(70)), .2) | |
926 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(-70)), .2) | |
927 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.2) | |
928 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, -.3) * angles(math.rad(80), math.rad(0), math.rad(10)), 0.2) | |
929 | RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
930 | LH.C0 = clerp(LH.C0, cf(-1, -.8, 0) * angles(math.rad(0), math.rad(-90), math.rad(30)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
931 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, -.7, 0) * angles(math.rad(-90), math.rad(0), math.rad(-50)), 0.25) | |
932 | end | |
933 | Torso.Velocity = Head.CFrame.lookVector * 90 | |
934 | if Humanoid.Jump == true then | |
935 | Torso.Velocity = Head.CFrame.lookVector * 50 | |
936 | end | |
937 | so("rbxassetid://203691447",Hitbox,1,0.9) | |
938 | local con = Hitbox.Touched:connect(function(hit) | |
939 | Damagefunc(Hitbox, hit, 30, 50, math.random(1, 5), "Knockdown", RootPart, .2, "rbxassetid://199149186", .8) | |
940 | end) | |
941 | for i = 0,1,0.03 do | |
942 | swait() | |
943 | local blcf = Hitbox.CFrame * CFrame.new(0, .3, 0) | |
944 | if scfr and (Hitbox.Position - scfr.p).magnitude > .1 then | |
945 | local h = 5 | |
946 | local a, b = Triangle((scfr * CFrame.new(0, h / 2, 0)).p, (scfr * CFrame.new(0, -h / 2, 0)).p, (blcf * CFrame.new(0, h / 2, 0)).p) | |
947 | if a then | |
948 | game.Debris:AddItem(a, 1) | |
949 | end | |
950 | if b then | |
951 | game.Debris:AddItem(b, 1) | |
952 | end | |
953 | local a, b = Triangle((blcf * CFrame.new(0, h / 2, 0)).p, (blcf * CFrame.new(0, -h / 2, 0)).p, (scfr * CFrame.new(0, -h / 2, 0)).p) | |
954 | if a then | |
955 | game.Debris:AddItem(a, 1) | |
956 | end | |
957 | if b then | |
958 | game.Debris:AddItem(b, 1) | |
959 | end | |
960 | scfr = blcf | |
961 | elseif not scfr then | |
962 | scfr = blcf | |
963 | end | |
964 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), .2) | |
965 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(70)), .2) | |
966 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.2) | |
967 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30), math.rad(-70)), 0.2) | |
968 | RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
969 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(5)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
970 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, -.7, 0) * angles(math.rad(-90), math.rad(0), math.rad(-50)), 0.25) | |
971 | end | |
972 | attack = false | |
973 | con:disconnect() | |
974 | scfr = nil | |
975 | end | |
976 | ||
977 | mouse.Button1Down:connect(function() | |
978 | if attack == false and attacktype == 1 then | |
979 | attacktype = 2 | |
980 | attackone() | |
981 | elseif attack == false and attacktype == 2 then | |
982 | attacktype = 3 | |
983 | attacktwo() | |
984 | elseif attack == false and attacktype == 3 then | |
985 | attacktype = 1 | |
986 | attackthree() | |
987 | end | |
988 | end) | |
989 | ||
990 | mouse.KeyDown:connect(function(k) | |
991 | k = k:lower() | |
992 | if attack == false and k == '' then | |
993 | ||
994 | end | |
995 | end) | |
996 | ||
997 | local sine = 0 | |
998 | local change = 1 | |
999 | local val = 0 | |
1000 | local idle = 0 | |
1001 | ||
1002 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
1003 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
1004 | ||
1005 | while true do | |
1006 | swait() | |
1007 | sine = sine + change | |
1008 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1009 | local velderp = RootPart.Velocity.y | |
1010 | hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1011 | if equipped == true or equipped == false then | |
1012 | if attack == false then | |
1013 | idle = idle + 1 | |
1014 | else | |
1015 | idle = 0 | |
1016 | end | |
1017 | if idle >= 500 then | |
1018 | if attack == false then | |
1019 | end | |
1020 | end | |
1021 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
1022 | Anim = "Jump" | |
1023 | if attack == false then | |
1024 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
1025 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .2) | |
1026 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.2) | |
1027 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3) | |
1028 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
1029 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
1030 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(20)), 0.25) | |
1031 | end | |
1032 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
1033 | Anim = "Fall" | |
1034 | if attack == false then | |
1035 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .2) | |
1036 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .2) | |
1037 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(70)), 0.2) | |
1038 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-70)), 0.3) | |
1039 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(30)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
1040 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-30)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
1041 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-30)), 0.25) | |
1042 | end | |
1043 | elseif torvel < 1 and hitfloor ~= nil then | |
1044 | Anim = "Idle" | |
1045 | if attack == false then | |
1046 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), .2) | |
1047 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-3), math.rad(-3), math.rad(30)), .2) | |
1048 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(20), math.rad(10)), .2) | |
1049 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-15)), .2) | |
1050 | RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * RHCF * angles(math.rad(-3), math.rad(20), math.rad(7)), .2) | |
1051 | LH.C0 = clerp(LH.C0, cf(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-8)), .2) | |
1052 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(15)), 0.25) | |
1053 | end | |
1054 | elseif torvel > 2 and hitfloor ~= nil then | |
1055 | Anim = "Walk" | |
1056 | if attack == false then | |
1057 | change = 3 | |
1058 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .2) | |
1059 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .2) | |
1060 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.2) | |
1061 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3) | |
1062 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(20)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
1063 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-20)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .2) | |
1064 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-50)), 0.25) | |
1065 | end | |
1066 | end | |
1067 | end | |
1068 | if #Effects > 0 then | |
1069 | for e = 1, #Effects do | |
1070 | if Effects[e] ~= nil then | |
1071 | local Thing = Effects[e] | |
1072 | if Thing ~= nil then | |
1073 | local Part = Thing[1] | |
1074 | local Mode = Thing[2] | |
1075 | local Delay = Thing[3] | |
1076 | local IncX = Thing[4] | |
1077 | local IncY = Thing[5] | |
1078 | local IncZ = Thing[6] | |
1079 | if Thing[1].Transparency <= 1 then | |
1080 | if Thing[2] == "Block1" then | |
1081 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1082 | Mesh = Thing[1].Mesh | |
1083 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1084 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1085 | elseif Thing[2] == "Cylinder" then | |
1086 | Mesh = Thing[1].Mesh | |
1087 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1088 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1089 | elseif Thing[2] == "Blood" then | |
1090 | Mesh = Thing[7] | |
1091 | Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0) | |
1092 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1093 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1094 | elseif Thing[2] == "Elec" then | |
1095 | Mesh = Thing[1].Mesh | |
1096 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
1097 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1098 | elseif Thing[2] == "Disappear" then | |
1099 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1100 | end | |
1101 | else | |
1102 | Part.Parent = nil | |
1103 | table.remove(Effects, e) | |
1104 | end | |
1105 | end | |
1106 | end | |
1107 | end | |
1108 | end | |
1109 | end |