SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | ||
7 | print([[ | |
8 | ___________________________________ | |
9 | ||
10 | Kyutatsuki13's Chara script | |
11 | Build 0002 | |
12 | Don't even mind why I did this, it was a challenge ! | |
13 | ||
14 | ___________________________________ | |
15 | ]]) | |
16 | ||
17 | ||
18 | warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)") | |
19 | ||
20 | local p = game:GetService("Players").LocalPlayer | |
21 | local char = p.Character | |
22 | local mouse = p:GetMouse() | |
23 | local larm = char:WaitForChild("Left Arm") | |
24 | local rarm = char:WaitForChild("Right Arm") | |
25 | local lleg = char:WaitForChild("Left Leg") | |
26 | local rleg = char:WaitForChild("Right Leg") | |
27 | local hed = char:WaitForChild("Head") | |
28 | local torso = char:WaitForChild("Torso") | |
29 | local root = char:WaitForChild("HumanoidRootPart") | |
30 | local hum = char:FindFirstChildOfClass("Humanoid") | |
31 | local debris = game:GetService("Debris") | |
32 | local input = game:GetService("UserInputService") | |
33 | local run = game:GetService("RunService") | |
34 | local rs = run.RenderStepped | |
35 | local wingpose = "Idle" | |
36 | local DebrisModel = Instance.new("Model",char) | |
37 | DebrisModel.Name = "Debris" | |
38 | repeat rs:wait() until p.CharacterAppearanceLoaded | |
39 | ||
40 | noidle = false | |
41 | shift = false | |
42 | control = false | |
43 | no_nosound_able = false | |
44 | kills = 0 | |
45 | ||
46 | ---------------------------------------------------------------------------- | |
47 | ||
48 | function rswait(value) | |
49 | if value ~= nil and value ~= 0 then | |
50 | for i=1,value do | |
51 | rs:wait() | |
52 | end | |
53 | else | |
54 | rs:wait() | |
55 | end | |
56 | end | |
57 | ||
58 | ---------------------------------------------------------------------------- | |
59 | ||
60 | local timeposition = 0 | |
61 | ||
62 | function music(id) | |
63 | if not torso:FindFirstChild("MusicRuin") then | |
64 | soundz = Instance.new("Sound",torso) | |
65 | end | |
66 | soundz.Volume = 10 | |
67 | soundz.Name = "MusicRuin" | |
68 | soundz.Looped = true | |
69 | soundz.PlaybackSpeed = 1 | |
70 | soundz.SoundId = "rbxassetid://"..id | |
71 | soundz:Stop() | |
72 | soundz:Play() | |
73 | if no_nosound_able == true then | |
74 | soundz.TimePosition = timeposition | |
75 | end | |
76 | end | |
77 | ||
78 | ---------------------------------------------------------------------------- | |
79 | ||
80 | function lerp(a, b, t) | |
81 | return a + (b - a)*t | |
82 | end | |
83 | ||
84 | ---------------------------------------------------------------------------- | |
85 | ||
86 | function Lerp(c1,c2,al) | |
87 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
88 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
89 | for i,v in pairs(com1) do | |
90 | com1[i] = v+(com2[i]-v)*al | |
91 | end | |
92 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
93 | end | |
94 | ||
95 | ---------------------------------------------------------------------------- | |
96 | ||
97 | function slerp(a, b, t) | |
98 | dot = a:Dot(b) | |
99 | if dot > 0.99999 or dot < -0.99999 then | |
100 | return t <= 0.5 and a or b | |
101 | else | |
102 | r = math.acos(dot) | |
103 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
104 | end | |
105 | end | |
106 | ||
107 | ---------------------------------------------------------------------------- | |
108 | ||
109 | function clerp(c1,c2,al) | |
110 | ||
111 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
112 | ||
113 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
114 | ||
115 | for i,v in pairs(com1) do | |
116 | ||
117 | com1[i] = lerp(v,com2[i],al) | |
118 | ||
119 | end | |
120 | ||
121 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
122 | ||
123 | end | |
124 | ||
125 | ---------------------------------------------------------------------------- | |
126 | ||
127 | function findAllNearestTorso(pos,dist) | |
128 | local list = workspace:children() | |
129 | local torso = {} | |
130 | local temp = nil | |
131 | local human = nil | |
132 | local temp2 = nil | |
133 | for x = 1, #list do | |
134 | temp2 = list[x] | |
135 | if (temp2.className == "Model") and (temp2 ~= char) then | |
136 | temp = temp2:findFirstChild("Torso") | |
137 | human = temp2:findFirstChildOfClass("Humanoid") | |
138 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
139 | if (temp.Position - pos).magnitude < dist then | |
140 | table.insert(torso,temp) | |
141 | dist = (temp.Position - pos).magnitude | |
142 | end | |
143 | end | |
144 | end | |
145 | end | |
146 | return torso | |
147 | end | |
148 | ||
149 | ---------------------------------------------------------------------------- | |
150 | ||
151 | function checkIfNotPlayer(model) | |
152 | if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then | |
153 | return true | |
154 | else | |
155 | return false | |
156 | end | |
157 | end | |
158 | ||
159 | ---------------------------------------------------------------------------- | |
160 | ||
161 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
162 | ||
163 | local wld = Instance.new("Weld", wp1) | |
164 | ||
165 | wld.Part0 = wp0 | |
166 | ||
167 | wld.Part1 = wp1 | |
168 | ||
169 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
170 | ||
171 | return wld | |
172 | ||
173 | end | |
174 | ||
175 | function weld(model) | |
176 | local parts,last = {} | |
177 | local function scan(parent) | |
178 | for _,v in pairs(parent:GetChildren()) do | |
179 | if (v:IsA("BasePart")) then | |
180 | if (last) then | |
181 | local w = Instance.new("Weld") | |
182 | w.Name = ("%s_Weld"):format(v.Name) | |
183 | w.Part0,w.Part1 = last,v | |
184 | w.C0 = last.CFrame:inverse() | |
185 | w.C1 = v.CFrame:inverse() | |
186 | w.Parent = last | |
187 | end | |
188 | last = v | |
189 | table.insert(parts,v) | |
190 | end | |
191 | scan(v) | |
192 | end | |
193 | end | |
194 | scan(model) | |
195 | for _,v in pairs(parts) do | |
196 | v.Anchored = false | |
197 | v.Locked = true | |
198 | v.Anchored = false | |
199 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
200 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
201 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
202 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
203 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
204 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
205 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0) | |
206 | end | |
207 | end | |
208 | ||
209 | ---------------------------------------------------------------------------- | |
210 | ||
211 | function calculate(part,asd) | |
212 | local Head = hed | |
213 | local RightShoulder = asd | |
214 | local RightArm = part | |
215 | local MousePosition = mouse.Hit.p | |
216 | local ToMouse = (MousePosition - Head.Position).unit | |
217 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
218 | local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0))) | |
219 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
220 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
221 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
222 | if tostring(LateralAngle) == "-1.#IND" then | |
223 | LateralAngle = 0 | |
224 | end | |
225 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
226 | if LateralAngle > (math.pi / 2) then | |
227 | LateralAngle = (math.pi / 2) | |
228 | local Torso = root | |
229 | local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p) | |
230 | if Point.Z > 0 then | |
231 | if Point.X > -0 and RightArm == rarm then | |
232 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0) | |
233 | elseif Point.X < 0 and RightArm == rarm then | |
234 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0) | |
235 | end | |
236 | end | |
237 | end | |
238 | if Cross.Y < 0 then | |
239 | LateralAngle = -LateralAngle | |
240 | end | |
241 | return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)) | |
242 | end | |
243 | ||
244 | ---------------------------------------------------------------------------- | |
245 | ||
246 | function sound(id,position,vol,pitch,start,finish) | |
247 | coroutine.resume(coroutine.create(function() | |
248 | ||
249 | local part = Instance.new("Part",workspace) | |
250 | part.Position = position | |
251 | part.Size = Vector3.new(0,0,0) | |
252 | part.CanCollide = false | |
253 | part.Transparency = 1 | |
254 | ||
255 | local sound = Instance.new("Sound",part) | |
256 | ||
257 | sound.SoundId = "rbxassetid://"..id | |
258 | ||
259 | repeat rs:wait() until sound.IsLoaded | |
260 | ||
261 | if vol ~= nil then | |
262 | sound.Volume = vol | |
263 | end | |
264 | ||
265 | if pitch ~= nil then | |
266 | sound.PlaybackSpeed = pitch | |
267 | end | |
268 | ||
269 | if start ~= nil then | |
270 | sound.TimePosition = start | |
271 | end | |
272 | ||
273 | if finish ~= nil then | |
274 | debris:AddItem(part,finish-start) | |
275 | else | |
276 | debris:AddItem(part,sound.TimeLength) | |
277 | end | |
278 | ||
279 | sound:Play() | |
280 | ||
281 | return sound | |
282 | ||
283 | end)) | |
284 | end | |
285 | ||
286 | ---------------------------------------------------------------------------- | |
287 | ||
288 | function computeDirection(vec) | |
289 | local lenSquared = vec.magnitude * vec.magnitude | |
290 | local invSqrt = 1 / math.sqrt(lenSquared) | |
291 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
292 | end | |
293 | ||
294 | ---------------------------------------------------------------------------- | |
295 | ||
296 | local shaking = 0 | |
297 | function shake(num) if num > shaking then shaking = num end end | |
298 | game:GetService("RunService").RenderStepped:connect(function() | |
299 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100) | |
300 | if shaking > 0 then shaking = shaking - 1 else shaking = 0 end | |
301 | end) | |
302 | ||
303 | plr = game:GetService("Players").LocalPlayer | |
304 | DebrisModel = Instance.new("Model",plr.Character) | |
305 | DebrisModel.Name = "DebrisModel" | |
306 | ||
307 | function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration) | |
308 | ||
309 | local part = Instance.new("Part",DebrisModel) | |
310 | part.Anchored = true | |
311 | part.CanCollide = false | |
312 | part.Size = Vector3.new(1,1,1) | |
313 | part.Transparency = transparency | |
314 | part.Material = material | |
315 | part.Color = color | |
316 | part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z)) | |
317 | ||
318 | local partmesh = Instance.new("SpecialMesh",part) | |
319 | if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end | |
320 | partmesh.Scale = size | |
321 | ||
322 | local pvalue = Instance.new("Vector3Value",part) | |
323 | pvalue.Name = "Position" | |
324 | pvalue.Value = part.Position | |
325 | ||
326 | local svalue = Instance.new("Vector3Value",part) | |
327 | svalue.Name = "Size" | |
328 | svalue.Value = sizechange | |
329 | ||
330 | local rvalue = Instance.new("Vector3Value",part) | |
331 | rvalue.Name = "Rotation" | |
332 | rvalue.Value = rotationchange | |
333 | ||
334 | local tvalue = Instance.new("NumberValue",part) | |
335 | tvalue.Name = "Transparency" | |
336 | tvalue.Value = transparencychange | |
337 | ||
338 | local avalue = Instance.new("NumberValue",part) | |
339 | avalue.Name = "Acceleration" | |
340 | avalue.Value = acceleration | |
341 | ||
342 | part.Name = "EFFECT" | |
343 | ||
344 | return part | |
345 | ||
346 | end | |
347 | ||
348 | game:GetService("RunService").RenderStepped:connect(function() | |
349 | ||
350 | ||
351 | if not plr.Character:FindFirstChild("DebrisModel") then | |
352 | DebrisModel = Instance.new("Model",plr.Character) | |
353 | DebrisModel.Name = "DebrisModel" | |
354 | end | |
355 | ||
356 | for i,v in pairs(DebrisModel:GetChildren()) do | |
357 | if v:IsA("BasePart") and v.Name == "EFFECT" then | |
358 | local pvalue = v:FindFirstChild("Position").Value | |
359 | local svalue = v:FindFirstChild("Size").Value | |
360 | local rvalue = v:FindFirstChild("Rotation").Value | |
361 | local tvalue = v:FindFirstChild("Transparency").Value | |
362 | local avalue = v:FindFirstChild("Acceleration").Value | |
363 | local mesh = v:FindFirstChild("Mesh") | |
364 | mesh.Scale = mesh.Scale + svalue | |
365 | v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue) | |
366 | v.Transparency = v.Transparency + tvalue | |
367 | v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z)) | |
368 | if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then | |
369 | v:Destroy() | |
370 | end | |
371 | end | |
372 | end | |
373 | ||
374 | ||
375 | end) | |
376 | ||
377 | ---------------------------------------------------------------------------- | |
378 | skin_color = BrickColor.new("Light orange") | |
379 | p:ClearCharacterAppearance() | |
380 | --hed:WaitForChild("face"):Destroy() | |
381 | ||
382 | ---------------------------------------------------------------------------- | |
383 | music(540857600) | |
384 | equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin")) | |
385 | ||
386 | local size = 1 | |
387 | ||
388 | newWeld(torso, larm, -1.5*size, 0.5*size, 0) | |
389 | larm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
390 | newWeld(torso, rarm, 1.5*size, 0.5*size, 0) | |
391 | rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
392 | newWeld(torso, hed, 0, 1.5*size, 0) | |
393 | newWeld(torso, lleg, -0.5*size, -1, 0) | |
394 | lleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
395 | newWeld(torso, rleg, 0.5*size, -1*size, 0) | |
396 | rleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
397 | newWeld(root, torso, 0, -1*size, 0) | |
398 | torso.Weld.C1 = CFrame.new(0, -1*size, 0) | |
399 | ||
400 | emitters={} | |
401 | for i,v in pairs(char:GetChildren()) do | |
402 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then | |
403 | local emitter = Instance.new("ParticleEmitter",v) | |
404 | emitter.LightEmission = 1 | |
405 | emitter.Transparency = NumberSequence.new(0.95,1) | |
406 | emitter.Size = NumberSequence.new(2,5) | |
407 | emitter.SpreadAngle = Vector2.new(360,360) | |
408 | emitter.Speed = NumberRange.new(1) | |
409 | emitter.Lifetime = NumberRange.new(0.75) | |
410 | emitter.Texture = "rbxassetid://133619974" | |
411 | emitter.Rate = 20 | |
412 | emitter.Color = ColorSequence.new(Color3.new(1,0,0)) | |
413 | emitter.LockedToPart = true | |
414 | table.insert(emitters,emitter) | |
415 | end | |
416 | end | |
417 | ---------------------------------------------------------------------------------------- | |
418 | hair = Instance.new("Part",char) | |
419 | hair.Color = Color3.fromRGB(30,10,0) | |
420 | hair.CanCollide = false | |
421 | meshhair = Instance.new("SpecialMesh",hair) | |
422 | meshhair.MeshId = "rbxassetid://431809364" | |
423 | meshhair.Scale = Vector3.new(1,1,1)*1.1 | |
424 | newWeld(hed,hair,0,0.22,0) | |
425 | ||
426 | Model0 = Instance.new("Model") | |
427 | Part1 = Instance.new("Part") | |
428 | Part2 = Instance.new("Part") | |
429 | Part3 = Instance.new("Part") | |
430 | Part4 = Instance.new("Part") | |
431 | Part5 = Instance.new("Part") | |
432 | Part6 = Instance.new("Part") | |
433 | Part7 = Instance.new("Part") | |
434 | Model0.Parent = char | |
435 | Part1.Parent = Model0 | |
436 | Part1.Anchored = true | |
437 | Part1.CanCollide = false | |
438 | Part1.Size = Vector3.new(2.02000022, 0.370000094, 1.01999998) | |
439 | Part1.CFrame = CFrame.new(87.5, 17.1749992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
440 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
441 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
442 | Part1.Position = Vector3.new(87.5, 17.1749992, 83.5) | |
443 | Part1.Color = Color3.new(0, 1, 0) | |
444 | Part2.Parent = Model0 | |
445 | Part2.Anchored = true | |
446 | Part2.CanCollide = false | |
447 | Part2.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) | |
448 | Part2.CFrame = CFrame.new(88.0500031, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
449 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
450 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
451 | Part2.Position = Vector3.new(88.0500031, 18.9549999, 83.2799988) | |
452 | Part2.Color = Color3.new(0, 1, 0) | |
453 | Part3.Parent = Model0 | |
454 | Part3.Anchored = true | |
455 | Part3.CanCollide = false | |
456 | Part3.Size = Vector3.new(2.02000022, 0.590000093, 1.01999998) | |
457 | Part3.CFrame = CFrame.new(87.5, 17.6550007, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
458 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
459 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
460 | Part3.Position = Vector3.new(87.5, 17.6550007, 83.5) | |
461 | Part3.Color = Color3.new(0.992157, 0.917647, 0.552941) | |
462 | Part4.Parent = Model0 | |
463 | Part4.Anchored = true | |
464 | Part4.CanCollide = false | |
465 | Part4.Size = Vector3.new(2.02000022, 0.110000037, 0.439999968) | |
466 | Part4.CFrame = CFrame.new(87.5, 18.9549999, 83.7900009, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
467 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
468 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
469 | Part4.Position = Vector3.new(87.5, 18.9549999, 83.7900009) | |
470 | Part4.Color = Color3.new(0, 1, 0) | |
471 | Part5.Parent = Model0 | |
472 | Part5.Anchored = true | |
473 | Part5.CanCollide = false | |
474 | Part5.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) | |
475 | Part5.CFrame = CFrame.new(86.9499969, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
476 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
477 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
478 | Part5.Position = Vector3.new(86.9499969, 18.9549999, 83.2799988) | |
479 | Part5.Color = Color3.new(0, 1, 0) | |
480 | Part6.Name = "asd" | |
481 | Part6.Parent = Model0 | |
482 | Part6.Transparency = 1 | |
483 | Part6.Anchored = true | |
484 | Part6.CanCollide = false | |
485 | Part6.Size = Vector3.new(2, 2, 1) | |
486 | Part6.CFrame = CFrame.new(87.5, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
487 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
488 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
489 | Part6.Position = Vector3.new(87.5, 18, 83.5) | |
490 | Part7.Parent = Model0 | |
491 | Part7.Anchored = true | |
492 | Part7.CanCollide = false | |
493 | Part7.Size = Vector3.new(2.02000022, 0.949999988, 1.01999998) | |
494 | Part7.CFrame = CFrame.new(87.5, 18.4249992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
495 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
496 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
497 | Part7.Position = Vector3.new(87.5, 18.4249992, 83.5) | |
498 | Part7.Color = Color3.new(0, 1, 0) | |
499 | weld(Model0) | |
500 | newWeld(torso,Model0.asd) | |
501 | ||
502 | Model0 = Instance.new("Model") | |
503 | Part1 = Instance.new("Part") | |
504 | Part2 = Instance.new("Part") | |
505 | Model0.Parent = char | |
506 | Part1.Parent = Model0 | |
507 | Part1.Anchored = true | |
508 | Part1.CanCollide = false | |
509 | Part1.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) | |
510 | Part1.CFrame = CFrame.new(49.5, 18.0999985, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
511 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
512 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
513 | Part1.Position = Vector3.new(49.5, 18.0999985, 83.5) | |
514 | Part1.Color = Color3.new(0, 1, 0) | |
515 | Part2.Name = "asd" | |
516 | Part2.Parent = Model0 | |
517 | Part2.Transparency = 1 | |
518 | Part2.Anchored = true | |
519 | Part2.CanCollide = false | |
520 | Part2.Size = Vector3.new(1, 2, 1) | |
521 | Part2.CFrame = CFrame.new(49.5, 18.0450001, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
522 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
523 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
524 | Part2.Position = Vector3.new(49.5, 18.0450001, 83.5) | |
525 | weld(Model0) | |
526 | Model1=Model0:Clone() | |
527 | Model1.Parent=char | |
528 | newWeld(larm,Model0.asd,0,0,0) | |
529 | newWeld(rarm,Model1.asd,0,0,0) | |
530 | ||
531 | Model0 = Instance.new("Model") | |
532 | Part1 = Instance.new("Part") | |
533 | Part2 = Instance.new("Part") | |
534 | Part3 = Instance.new("Part") | |
535 | Model0.Parent = char | |
536 | Part1.Parent = Model0 | |
537 | Part1.Anchored = true | |
538 | Part1.CanCollide = false | |
539 | Part1.Size = Vector3.new(1.03999996, 0.27000007, 1.03999996) | |
540 | Part1.CFrame = CFrame.new(28, 17.125, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
541 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
542 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
543 | Part1.Position = Vector3.new(28, 17.125, 83.5) | |
544 | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
545 | Part2.Parent = Model0 | |
546 | Part2.Anchored = true | |
547 | Part2.CanCollide = false | |
548 | Part2.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) | |
549 | Part2.CFrame = CFrame.new(28, 18.0550003, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
550 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
551 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
552 | Part2.Position = Vector3.new(28, 18.0550003, 83.5) | |
553 | Part2.Color = Color3.new(0.411765, 0.25098, 0.156863) | |
554 | Part3.Name = "asd" | |
555 | Part3.Parent = Model0 | |
556 | Part3.Transparency = 1 | |
557 | Part3.Anchored = true | |
558 | Part3.CanCollide = false | |
559 | Part3.Size = Vector3.new(1, 2, 1) | |
560 | Part3.CFrame = CFrame.new(28, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
561 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
562 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
563 | Part3.Position = Vector3.new(28, 18, 83.5) | |
564 | weld(Model0) | |
565 | Model1=Model0:Clone() | |
566 | Model1.Parent=char | |
567 | newWeld(lleg,Model0.asd,0,0,0) | |
568 | newWeld(rleg,Model1.asd,0,0,0) | |
569 | ||
570 | ---------------------------------------------------------------------------- | |
571 | HitBox = Instance.new("Part",DebrisModel) | |
572 | HitBox.Size = Vector3.new(0.5,0.5,2.45) | |
573 | HitBox.CanCollide = false | |
574 | HitBox:BreakJoints() | |
575 | HitBox.Transparency = 1 | |
576 | newWeld(rarm,HitBox,0,-0.95,-1.9) | |
577 | atch0 = Instance.new("Attachment",HitBox) | |
578 | atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2) | |
579 | atch1 = Instance.new("Attachment",HitBox) | |
580 | atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2) | |
581 | trail = Instance.new("Trail",HitBox) | |
582 | trail.Attachment0 = atch0 | |
583 | trail.Attachment1 = atch1 | |
584 | trail.Lifetime = 0.2 | |
585 | trail.Enabled = true | |
586 | trail.LightEmission = 1 | |
587 | trail.LightInfluence = 0 | |
588 | trail.Color = ColorSequence.new(Color3.new(1,0,0)) | |
589 | trail.Transparency = NumberSequence.new(0,1) | |
590 | ||
591 | function ded(model) | |
592 | kills = kills + 1 | |
593 | model.Archivable = true | |
594 | model.Head:ClearAllChildren() | |
595 | local clone = model:Clone() | |
596 | clone.Parent = workspace | |
597 | clone.Name = "DED" | |
598 | model:Destroy() | |
599 | clone:FindFirstChildOfClass("Humanoid"):Destroy() | |
600 | local emitters={} | |
601 | for i,v in pairs(clone:GetChildren()) do | |
602 | if v:IsA("Accoutrement") then | |
603 | v:Destroy() | |
604 | end | |
605 | if v:IsA("Part") then | |
606 | v.Anchored = true | |
607 | v.CanCollide = false | |
608 | v.Transparency = 1 | |
609 | local emitter = Instance.new("ParticleEmitter",v) | |
610 | emitter.LightEmission = 1 | |
611 | emitter.Transparency = NumberSequence.new(0,1) | |
612 | emitter.Size = NumberSequence.new(0,0.8) | |
613 | emitter.SpreadAngle = Vector2.new(360,360) | |
614 | emitter.Speed = NumberRange.new(0.5) | |
615 | emitter.Lifetime = NumberRange.new(0.75) | |
616 | emitter.Texture = "rbxassetid://744949545" | |
617 | emitter.Rate = 20 | |
618 | emitter.Color = ColorSequence.new(Color3.new(1,1,1)) | |
619 | emitter.LockedToPart = false | |
620 | table.insert(emitters,emitter) | |
621 | end | |
622 | end | |
623 | delay(1, function() | |
624 | sound(427025525,clone.Head.Position,10,1) | |
625 | for i,v in pairs(emitters) do | |
626 | v.Speed = NumberRange.new(4) | |
627 | v.Acceleration = Vector3.new(0,10,0) | |
628 | delay(0.5, function() | |
629 | v.Enabled = false | |
630 | debris:AddItem(clone,0.75) | |
631 | end) | |
632 | end | |
633 | end) | |
634 | end | |
635 | ||
636 | local alreadytouched = {} | |
637 | HitBox.Touched:connect(function(ht) | |
638 | coroutine.resume(coroutine.create(function() | |
639 | local hit = ht.Parent | |
640 | if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then | |
641 | local hurt = true | |
642 | for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end | |
643 | if hurt == true then | |
644 | table.insert(alreadytouched,hit) | |
645 | sound(388826051,ht.Position,10,1) | |
646 | ded(hit) | |
647 | end | |
648 | end | |
649 | end)) | |
650 | end) | |
651 | ||
652 | function createknife() | |
653 | Model0 = Instance.new("Model") | |
654 | Part1 = Instance.new("Part") | |
655 | BlockMesh2 = Instance.new("BlockMesh") | |
656 | Part3 = Instance.new("Part") | |
657 | BlockMesh4 = Instance.new("BlockMesh") | |
658 | Part5 = Instance.new("Part") | |
659 | Part6 = Instance.new("Part") | |
660 | BlockMesh7 = Instance.new("BlockMesh") | |
661 | Part8 = Instance.new("Part") | |
662 | Part9 = Instance.new("Part") | |
663 | Part10 = Instance.new("Part") | |
664 | SpecialMesh11 = Instance.new("SpecialMesh") | |
665 | Part12 = Instance.new("Part") | |
666 | Model0.Parent = char | |
667 | Part1.Parent = Model0 | |
668 | Part1.Anchored = true | |
669 | Part1.CanCollide = false | |
670 | Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
671 | Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
672 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
673 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
674 | Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997) | |
675 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
676 | BlockMesh2.Parent = Part1 | |
677 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
678 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
679 | Part3.Parent = Model0 | |
680 | Part3.Anchored = true | |
681 | Part3.CanCollide = false | |
682 | Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007) | |
683 | Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
684 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
685 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
686 | Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989) | |
687 | Part3.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
688 | BlockMesh4.Parent = Part3 | |
689 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
690 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
691 | Part5.Parent = Model0 | |
692 | Part5.Anchored = true | |
693 | Part5.CanCollide = false | |
694 | Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005) | |
695 | Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
696 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
697 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
698 | Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003) | |
699 | Part5.Color = Color3.new(1, 0, 0) | |
700 | Part6.Parent = Model0 | |
701 | Part6.Anchored = true | |
702 | Part6.CanCollide = false | |
703 | Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
704 | Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
705 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
706 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
707 | Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997) | |
708 | Part6.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
709 | BlockMesh7.Parent = Part6 | |
710 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
711 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
712 | Part8.Name = "asd" | |
713 | Part8.Parent = Model0 | |
714 | Part8.Anchored = true | |
715 | Part8.CanCollide = false | |
716 | Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007) | |
717 | Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
718 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
719 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
720 | Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003) | |
721 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
722 | Part9.Parent = Model0 | |
723 | Part9.Anchored = true | |
724 | Part9.CanCollide = false | |
725 | Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039) | |
726 | Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
727 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
728 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
729 | Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989) | |
730 | Part9.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
731 | Part10.Parent = Model0 | |
732 | Part10.Rotation = Vector3.new(0, 0, 180) | |
733 | Part10.Anchored = true | |
734 | Part10.CanCollide = false | |
735 | Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012) | |
736 | Part10.CFrame = CFrame.new(49.5, 20.5750046, 50.1800003, -0.99999994, -8.74227766e-08, 3.82137093e-15, 8.74227695e-08, -1, 3.17865059e-08, 1.04250613e-15, 3.17865059e-08, 1) | |
737 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
738 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
739 | Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003) | |
740 | Part10.Color = Color3.new(1, 0, 0) | |
741 | SpecialMesh11.Parent = Part10 | |
742 | SpecialMesh11.MeshType = Enum.MeshType.Wedge | |
743 | Part12.Parent = Model0 | |
744 | Part12.Anchored = true | |
745 | Part12.CanCollide = false | |
746 | Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039) | |
747 | Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
748 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
749 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
750 | Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997) | |
751 | Part12.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
752 | weld(Model0) | |
753 | for i,v in pairs(Model0:GetChildren()) do | |
754 | if v:IsA("Part") and v.Color == Color3.new(1,0,0) then | |
755 | v.Material = Enum.Material.Neon | |
756 | end | |
757 | end | |
758 | return Model0 | |
759 | end | |
760 | ||
761 | knife = createknife() | |
762 | newWeld(rarm,knife.asd,0,-1,0) | |
763 | ||
764 | ---------------------------------------------------------------------------------------- | |
765 | ||
766 | function createpistol() | |
767 | Model0 = Instance.new("Model") | |
768 | Part1 = Instance.new("Part") | |
769 | BlockMesh2 = Instance.new("BlockMesh") | |
770 | Part3 = Instance.new("Part") | |
771 | Part4 = Instance.new("Part") | |
772 | Part5 = Instance.new("Part") | |
773 | Part6 = Instance.new("Part") | |
774 | Part7 = Instance.new("Part") | |
775 | Part8 = Instance.new("Part") | |
776 | Part9 = Instance.new("Part") | |
777 | Part10 = Instance.new("Part") | |
778 | Part11 = Instance.new("Part") | |
779 | Part12 = Instance.new("Part") | |
780 | Part13 = Instance.new("Part") | |
781 | Part14 = Instance.new("Part") | |
782 | Part15 = Instance.new("Part") | |
783 | Part16 = Instance.new("Part") | |
784 | Part17 = Instance.new("Part") | |
785 | Part18 = Instance.new("Part") | |
786 | Part19 = Instance.new("Part") | |
787 | Model0.Name = "Pistol" | |
788 | Model0.Parent = char | |
789 | Part1.Name = "ShootPos" | |
790 | Part1.Parent = Model0 | |
791 | Part1.BrickColor = BrickColor.new("Really black") | |
792 | Part1.Anchored = true | |
793 | Part1.CanCollide = false | |
794 | Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
795 | Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
796 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
797 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
798 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
799 | Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434) | |
800 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
801 | BlockMesh2.Parent = Part1 | |
802 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
803 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
804 | Part3.Parent = Model0 | |
805 | Part3.BrickColor = BrickColor.new("Pearl") | |
806 | Part3.Anchored = true | |
807 | Part3.CanCollide = false | |
808 | Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
809 | Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
810 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
811 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
812 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
813 | Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429) | |
814 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
815 | Part4.Parent = Model0 | |
816 | Part4.BrickColor = BrickColor.new("Pearl") | |
817 | Part4.Anchored = true | |
818 | Part4.CanCollide = false | |
819 | Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007) | |
820 | Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
821 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
822 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
823 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
824 | Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429) | |
825 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
826 | Part5.Parent = Model0 | |
827 | Part5.BrickColor = BrickColor.new("Pearl") | |
828 | Part5.Rotation = Vector3.new(15, 0, 0) | |
829 | Part5.Anchored = true | |
830 | Part5.CanCollide = false | |
831 | Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006) | |
832 | Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753) | |
833 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
834 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
835 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
836 | Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469) | |
837 | Part5.Orientation = Vector3.new(15, 0, 0) | |
838 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
839 | Part6.Parent = Model0 | |
840 | Part6.BrickColor = BrickColor.new("Pearl") | |
841 | Part6.Anchored = true | |
842 | Part6.CanCollide = false | |
843 | Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998) | |
844 | Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
845 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
846 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
847 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
848 | Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433) | |
849 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
850 | Part7.Parent = Model0 | |
851 | Part7.BrickColor = BrickColor.new("Pearl") | |
852 | Part7.Anchored = true | |
853 | Part7.CanCollide = false | |
854 | Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
855 | Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
856 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
857 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
858 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
859 | Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429) | |
860 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
861 | Part8.Parent = Model0 | |
862 | Part8.BrickColor = BrickColor.new("Black") | |
863 | Part8.Rotation = Vector3.new(-15, 0, 0) | |
864 | Part8.Anchored = true | |
865 | Part8.CanCollide = false | |
866 | Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993) | |
867 | Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
868 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
869 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
870 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
871 | Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481) | |
872 | Part8.Orientation = Vector3.new(-15, 0, 0) | |
873 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
874 | Part9.Parent = Model0 | |
875 | Part9.BrickColor = BrickColor.new("Pearl") | |
876 | Part9.Anchored = true | |
877 | Part9.CanCollide = false | |
878 | Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
879 | Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
880 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
881 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
882 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
883 | Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429) | |
884 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
885 | Part10.Parent = Model0 | |
886 | Part10.BrickColor = BrickColor.new("Pearl") | |
887 | Part10.Anchored = true | |
888 | Part10.CanCollide = false | |
889 | Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
890 | Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
891 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
892 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
893 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
894 | Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429) | |
895 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
896 | Part11.Parent = Model0 | |
897 | Part11.BrickColor = BrickColor.new("Pearl") | |
898 | Part11.Anchored = true | |
899 | Part11.CanCollide = false | |
900 | Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024) | |
901 | Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
902 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
903 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
904 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
905 | Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433) | |
906 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
907 | Part12.Parent = Model0 | |
908 | Part12.BrickColor = BrickColor.new("Pearl") | |
909 | Part12.Rotation = Vector3.new(-30, 0, 0) | |
910 | Part12.Anchored = true | |
911 | Part12.CanCollide = false | |
912 | Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007) | |
913 | Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448) | |
914 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
915 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
916 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
917 | Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431) | |
918 | Part12.Orientation = Vector3.new(-30, 0, 0) | |
919 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
920 | Part13.Parent = Model0 | |
921 | Part13.BrickColor = BrickColor.new("Pearl") | |
922 | Part13.Anchored = true | |
923 | Part13.CanCollide = false | |
924 | Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007) | |
925 | Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
926 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
927 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
928 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
929 | Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429) | |
930 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
931 | Part14.Parent = Model0 | |
932 | Part14.BrickColor = BrickColor.new("Pearl") | |
933 | Part14.Rotation = Vector3.new(-30, 0, 0) | |
934 | Part14.Anchored = true | |
935 | Part14.CanCollide = false | |
936 | Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25) | |
937 | Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329) | |
938 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
939 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
940 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
941 | Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447) | |
942 | Part14.Orientation = Vector3.new(-30, 0, 0) | |
943 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
944 | Part15.Parent = Model0 | |
945 | Part15.BrickColor = BrickColor.new("White") | |
946 | Part15.Rotation = Vector3.new(-105, 0, 0) | |
947 | Part15.Anchored = true | |
948 | Part15.CanCollide = false | |
949 | Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007) | |
950 | Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371) | |
951 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
952 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
953 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
954 | Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915) | |
955 | Part15.Orientation = Vector3.new(-75, 180, 180) | |
956 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
957 | Part16.Name = "asd" | |
958 | Part16.Parent = Model0 | |
959 | Part16.BrickColor = BrickColor.new("Pearl") | |
960 | Part16.Rotation = Vector3.new(-15, 0, 0) | |
961 | Part16.Anchored = true | |
962 | Part16.CanCollide = false | |
963 | Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006) | |
964 | Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
965 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
966 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
967 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
968 | Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692) | |
969 | Part16.Orientation = Vector3.new(-15, 0, 0) | |
970 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
971 | Part17.Parent = Model0 | |
972 | Part17.BrickColor = BrickColor.new("Pearl") | |
973 | Part17.Anchored = true | |
974 | Part17.CanCollide = false | |
975 | Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
976 | Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
977 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
978 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
979 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
980 | Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437) | |
981 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
982 | Part18.Parent = Model0 | |
983 | Part18.BrickColor = BrickColor.new("Pearl") | |
984 | Part18.Anchored = true | |
985 | Part18.CanCollide = false | |
986 | Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
987 | Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
988 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
989 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
990 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
991 | Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429) | |
992 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
993 | Part19.Parent = Model0 | |
994 | Part19.BrickColor = BrickColor.new("Pearl") | |
995 | Part19.Anchored = true | |
996 | Part19.CanCollide = false | |
997 | Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007) | |
998 | Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
999 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
1000 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
1001 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1002 | Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433) | |
1003 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1004 | for i,v in pairs(Model0:GetChildren()) do | |
1005 | if v:IsA("Part") then | |
1006 | v.Color = Color3.new(1,1,0) | |
1007 | v.Material = Enum.Material.Neon | |
1008 | v.Transparency = 0 | |
1009 | v.CanCollide = false | |
1010 | end | |
1011 | end | |
1012 | weld(Model0) | |
1013 | return Model0 | |
1014 | end | |
1015 | ||
1016 | mode = "determination" | |
1017 | function justice() | |
1018 | mode = "justice" | |
1019 | for i=1,5 do rs:wait() | |
1020 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
1021 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,1,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005) | |
1022 | end | |
1023 | knife:Destroy() | |
1024 | pistol = createpistol() | |
1025 | newWeld(rarm,pistol.asd,0,-1,0) | |
1026 | pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0) | |
1027 | end | |
1028 | ||
1029 | function determination() | |
1030 | mode = "determination" | |
1031 | for i=1,5 do rs:wait() | |
1032 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
1033 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,0,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005) | |
1034 | end | |
1035 | pistol:Destroy() | |
1036 | knife = createknife() | |
1037 | newWeld(rarm,knife.asd,0,-1,0) | |
1038 | end | |
1039 | ||
1040 | debounce = false | |
1041 | mouse.KeyDown:connect(function(key) | |
1042 | if debounce == false then | |
1043 | debounce = true | |
1044 | if key == "e" then | |
1045 | sound(462606062,root.Position,10,1) | |
1046 | if mode == "determination" then | |
1047 | justice() | |
1048 | elseif mode == "justice" then | |
1049 | determination() | |
1050 | end | |
1051 | end | |
1052 | delay(0.3,function() debounce = false end) | |
1053 | end | |
1054 | end) | |
1055 | ||
1056 | ---------------------------------------------------------------------------------------- | |
1057 | ||
1058 | function slash() | |
1059 | local spd = 0.2 | |
1060 | for i=1,15 do rs:wait() | |
1061 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1062 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd) | |
1063 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), spd) | |
1064 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), spd) | |
1065 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd) | |
1066 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(-10)), spd) | |
1067 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1068 | end | |
1069 | sound(357417055,root.Position,10,1) | |
1070 | attacking = true | |
1071 | local spd = 0.4 | |
1072 | for i=1,5 do rs:wait() | |
1073 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1074 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd) | |
1075 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), spd) | |
1076 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), spd) | |
1077 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd) | |
1078 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1079 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-80),math.rad(20)), spd) | |
1080 | end | |
1081 | end | |
1082 | ||
1083 | mouse.Button1Down:connect(function() | |
1084 | if debounce == false and mode == "determination" then | |
1085 | alreadytouched = {} | |
1086 | noidle = true | |
1087 | debounce = true | |
1088 | slash() | |
1089 | attacking = false | |
1090 | noidle = false | |
1091 | delay(0.05,function() debounce = false end) | |
1092 | end | |
1093 | end) | |
1094 | ||
1095 | ----------------------------- | |
1096 | local jumped = false | |
1097 | function boom() | |
1098 | freeze = true | |
1099 | sound(446961725,root.Position,10,1) | |
1100 | local bg = Instance.new("BodyGyro",root) | |
1101 | bg.Name = "lolnochara" | |
1102 | bg.P = 10000 | |
1103 | bg.D = 100 | |
1104 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
1105 | if jumped == false then | |
1106 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1107 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1108 | else | |
1109 | root.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1110 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1111 | end | |
1112 | ||
1113 | local spd = 0.2 | |
1114 | for i=1,20 do rs:wait() | |
1115 | if jumped == false then | |
1116 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1117 | else | |
1118 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1119 | end | |
1120 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1121 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1122 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1123 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(0),math.rad(90)), spd) | |
1124 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1125 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd) | |
1126 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd) | |
1127 | end | |
1128 | ||
1129 | bg:Destroy() | |
1130 | ||
1131 | sound(470245800,root.Position,10,1) | |
1132 | ||
1133 | local Part0 = Instance.new("Part",DebrisModel) | |
1134 | Part0.Name = "Bullet" | |
1135 | Part0.Material = Enum.Material.Neon | |
1136 | Part0.Color = Color3.new(1,1,0) | |
1137 | Part0.Anchored = true | |
1138 | local mesh = Instance.new("SpecialMesh",Part0) | |
1139 | mesh.MeshType = Enum.MeshType.Brick | |
1140 | Part0.CanCollide = false | |
1141 | local Position = rarm.Position | |
1142 | local Target = mouse.Hit.p | |
1143 | local direction = Target - Position | |
1144 | local direction = computeDirection(direction) | |
1145 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
1146 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1147 | Part0.Size = Vector3.new(5,1,5) | |
1148 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1) | |
1149 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
1150 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
1151 | local loop = nil | |
1152 | local i = 0 | |
1153 | rs:connect(function() | |
1154 | local lole = (i/10) | |
1155 | mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole) | |
1156 | Part0.Transparency = Part0.Transparency + 0.1 | |
1157 | i = i + 1 | |
1158 | if Part0.Transparency >= 1 then | |
1159 | Part0:Destroy() | |
1160 | end | |
1161 | end) | |
1162 | ||
1163 | if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then | |
1164 | coroutine.resume(coroutine.create(function() | |
1165 | sound(388826051,part.Position,10,1) | |
1166 | ded(part.Parent) | |
1167 | end)) | |
1168 | end | |
1169 | ||
1170 | local spd = 0.5 | |
1171 | for i=1,10 do rs:wait() | |
1172 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1173 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1174 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1175 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(40),math.rad(90)), spd) | |
1176 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1177 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd) | |
1178 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd) | |
1179 | end | |
1180 | ||
1181 | freeze = false | |
1182 | ||
1183 | end | |
1184 | ||
1185 | mouse.Button1Down:connect(function() | |
1186 | if debounce == false and mode == "justice" then | |
1187 | alreadytouched = {} | |
1188 | noidle = true | |
1189 | debounce = true | |
1190 | boom() | |
1191 | attacking = false | |
1192 | noidle = false | |
1193 | delay(0.05,function() debounce = false end) | |
1194 | end | |
1195 | end) | |
1196 | ||
1197 | ---------------------------------------------------------------------------------------- | |
1198 | velocityYFall=0 | |
1199 | velocityYFall2=0 | |
1200 | velocityYFall3=0 | |
1201 | velocityYFall4=0 | |
1202 | neckrotY=0 | |
1203 | neckrotY2=0 | |
1204 | torsorotY=0 | |
1205 | torsorotY2=0 | |
1206 | torsoY=0 | |
1207 | torsoY2=0 | |
1208 | colored = 0 | |
1209 | sine = 0 | |
1210 | change=0.4 | |
1211 | movement=5 | |
1212 | timeranim=0 | |
1213 | running = false | |
1214 | glitched = false | |
1215 | backup = hed.Weld.C1 | |
1216 | glitchedC1 = hed.Weld.C1 | |
1217 | ||
1218 | mouse.KeyDown:connect(function(key) | |
1219 | key = string.lower(key) | |
1220 | if string.byte(key) == 48 then | |
1221 | running = true | |
1222 | local keyup = mouse.KeyUp:connect(function(key) | |
1223 | if string.byte(key) == 48 then | |
1224 | running = false | |
1225 | end | |
1226 | end) | |
1227 | repeat rs:wait() until running == false | |
1228 | keyup:disconnect() | |
1229 | end | |
1230 | end) | |
1231 | ||
1232 | icolor=1 | |
1233 | imode=false | |
1234 | ||
1235 | didjump = false | |
1236 | jumppower = 0 | |
1237 | freeze = false | |
1238 | debounceimpact = false | |
1239 | ||
1240 | function jumpimpact() | |
1241 | if debounceimpact == false then | |
1242 | debounceimpact = true | |
1243 | if jumppower < -150 then jumppower = -150 end | |
1244 | shake(-jumppower/5) | |
1245 | for i=1,-jumppower/20 do rs:wait() | |
1246 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05) | |
1247 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)*size-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05) | |
1248 | end | |
1249 | debounceimpact = false | |
1250 | end | |
1251 | end | |
1252 | ||
1253 | local sond = nil | |
1254 | rs:connect(function() | |
1255 | ||
1256 | if not torso:FindFirstChild("STATICSOUND") then | |
1257 | sond=Instance.new("Sound",torso) | |
1258 | sond.Name = "STATICSOUND" | |
1259 | sond.SoundId = "rbxassetid://223103466" | |
1260 | sond.Looped = true | |
1261 | sond:Play() | |
1262 | end | |
1263 | ||
1264 | if icolor > 1 then | |
1265 | imode = false | |
1266 | elseif icolor < 0 then | |
1267 | imode = true | |
1268 | end | |
1269 | ||
1270 | if imode == true then | |
1271 | icolor = icolor + 0.01 | |
1272 | else | |
1273 | icolor = icolor - 0.01 | |
1274 | end | |
1275 | ||
1276 | for i,v in pairs(emitters) do | |
1277 | v.Acceleration = root.CFrame.upVector*(666/100) | |
1278 | end | |
1279 | ||
1280 | if p.Character.Parent == nil then | |
1281 | local model = Instance.new("Model") | |
1282 | model.Name = p.Name | |
1283 | p.Character = model | |
1284 | for i,v in pairs(char:GetChildren()) do | |
1285 | v.Parent = p.Character | |
1286 | end | |
1287 | end | |
1288 | ||
1289 | char = p.Character | |
1290 | if p.Character.Parent ~= workspace then | |
1291 | p.Character.Parent = workspace | |
1292 | end | |
1293 | for i,v in pairs(char:GetChildren()) do | |
1294 | if v:IsA("Accoutrement") then | |
1295 | if v.Handle:FindFirstChild("Mesh") then | |
1296 | v.Handle:FindFirstChild("Mesh").Offset = Vector3.new() | |
1297 | v.Handle.Transparency = 0 | |
1298 | end | |
1299 | elseif v:IsA("BasePart") then | |
1300 | v.Anchored = false | |
1301 | if v:FindFirstChildOfClass("BodyPosition") then | |
1302 | v:FindFirstChildOfClass("BodyPosition"):Destroy() | |
1303 | end | |
1304 | if v:FindFirstChildOfClass("BodyVelocity") then | |
1305 | v:FindFirstChildOfClass("BodyVelocity"):Destroy() | |
1306 | end | |
1307 | if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then | |
1308 | v:FindFirstChildOfClass("BodyGyro"):Destroy() | |
1309 | end | |
1310 | if v:FindFirstChild("Mesh") then | |
1311 | v:FindFirstChild("Mesh").Offset = Vector3.new() | |
1312 | end | |
1313 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then | |
1314 | local force = Instance.new("Part",DebrisModel) | |
1315 | force.Name = v.Name.."FORCEFIELD" | |
1316 | force.Size = v.Size+(Vector3.new(1,1,1)*0.2) | |
1317 | force.CanCollide = false | |
1318 | force.Transparency = 1 | |
1319 | newWeld(v,force,0,0,0) | |
1320 | else | |
1321 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then | |
1322 | newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0) | |
1323 | end | |
1324 | end | |
1325 | if v.Name ~= "HumanoidRootPart" then | |
1326 | v.Transparency = 0 | |
1327 | else | |
1328 | v.Transparency = 1 | |
1329 | end | |
1330 | end | |
1331 | end | |
1332 | ||
1333 | if mode == "determination" then | |
1334 | trail.Enabled = true | |
1335 | else | |
1336 | trail.Enabled = false | |
1337 | end | |
1338 | ||
1339 | if freeze == false then | |
1340 | if running == false then | |
1341 | hum.WalkSpeed = 12*size | |
1342 | change=0.4 | |
1343 | movement=5 | |
1344 | else | |
1345 | hum.WalkSpeed = (666/10)*size | |
1346 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then | |
1347 | change=1 | |
1348 | else | |
1349 | change=0.4 | |
1350 | end | |
1351 | movement=15 | |
1352 | end | |
1353 | else | |
1354 | hum.WalkSpeed = 1 | |
1355 | change=0.4 | |
1356 | movement=5 | |
1357 | end | |
1358 | ||
1359 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then | |
1360 | velocityYFall = root.Velocity.Y/1.5 | |
1361 | else | |
1362 | if -root.Velocity.Y/1.5 < -5 then | |
1363 | velocityYFall = 5 | |
1364 | elseif -root.Velocity.Y/1.5 > 150 then | |
1365 | velocityYFall = -150 | |
1366 | end | |
1367 | end | |
1368 | ||
1369 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
1370 | velocityYFall2 = root.Velocity.Y/180 | |
1371 | else | |
1372 | if -root.Velocity.Y/180 < 0 then | |
1373 | velocityYFall2 = 0 | |
1374 | elseif -root.Velocity.Y/180 > 1.2 then | |
1375 | velocityYFall2 = -1.2 | |
1376 | end | |
1377 | end | |
1378 | ||
1379 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
1380 | velocityYFall3 = root.Velocity.Y/1.5 | |
1381 | else | |
1382 | if -root.Velocity.Y/1.5 < -5 then | |
1383 | velocityYFall3 = 5 | |
1384 | elseif -root.Velocity.Y/1.5 > 50 then | |
1385 | velocityYFall3 = -50 | |
1386 | end | |
1387 | end | |
1388 | ||
1389 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
1390 | velocityYFall4 = root.Velocity.Y/1.5 | |
1391 | else | |
1392 | if -root.Velocity.Y/180 < -5 then | |
1393 | velocityYFall4 = 5 | |
1394 | elseif -root.Velocity.Y/180 > 50 then | |
1395 | velocityYFall4 = -50 | |
1396 | end | |
1397 | end | |
1398 | ||
1399 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
1400 | neckrotY = root.RotVelocity.Y/6 | |
1401 | else | |
1402 | if root.RotVelocity.Y/6 < -1 then | |
1403 | neckrotY = -1 | |
1404 | elseif root.RotVelocity.Y/6 > 1 then | |
1405 | neckrotY = 1 | |
1406 | end | |
1407 | end | |
1408 | ||
1409 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
1410 | neckrotY2 = root.RotVelocity.Y/8 | |
1411 | else | |
1412 | if root.RotVelocity.Y/8 < -0.6 then | |
1413 | neckrotY2 = -0.6 | |
1414 | elseif root.RotVelocity.Y/8 > 0.6 then | |
1415 | neckrotY2 = 0.6 | |
1416 | end | |
1417 | end | |
1418 | ||
1419 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
1420 | torsorotY = root.RotVelocity.Y/6 | |
1421 | else | |
1422 | if root.RotVelocity.Y/6 < -0.2 then | |
1423 | torsorotY = -0.2 | |
1424 | elseif root.RotVelocity.Y/6 > 0.2 then | |
1425 | torsorotY = 0.2 | |
1426 | end | |
1427 | end | |
1428 | ||
1429 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
1430 | torsorotY2 = root.RotVelocity.Y/8 | |
1431 | else | |
1432 | if root.RotVelocity.Y/8 < -0.2 then | |
1433 | torsorotY2 = -0.2 | |
1434 | elseif root.RotVelocity.Y/8 > 0.2 then | |
1435 | torsorotY2 = 0.2 | |
1436 | end | |
1437 | end | |
1438 | ||
1439 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
1440 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
1441 | ||
1442 | local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
1443 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
1444 | local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
1445 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
1446 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
1447 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
1448 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
1449 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
1450 | local ray = Ray.new(root.Position,Vector3.new(0, -6, 0)) | |
1451 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1452 | ||
1453 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
1454 | ||
1455 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
1456 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
1457 | ||
1458 | local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
1459 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
1460 | ||
1461 | if hum.Health > 0 and noidle == false then | |
1462 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
1463 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new((change/5)*math.sin(sine/4), 1.5, -.2) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4) | |
1464 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.cos(sine/2)+0.1,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/2)*math.sin(sine/4)), 0.1) | |
1465 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1466 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1467 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05+(change/2)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) | |
1468 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(sine/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1469 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1470 | elseif jumped == true then | |
1471 | didjump = true | |
1472 | jumppower = root.Velocity.Y | |
1473 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4) | |
1474 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1) | |
1475 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(velocityYFall)), 0.2) | |
1476 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(-velocityYFall)), 0.2) | |
1477 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(velocityYFall3/10),math.rad(0), math.rad(0)), 0.1) | |
1478 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0)*CFrame.Angles(math.rad(-35),math.rad(0),math.rad(-2)), 0.2) | |
1479 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(2)), 0.2) | |
1480 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then | |
1481 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5*size, -.1*size) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),0, 0), 0.4) | |
1482 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.cos(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1) | |
1483 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(-5-5*math.cos(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2) | |
1484 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(5+5*math.cos(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2) | |
1485 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1*size-(0.1*size)*math.cos(sine/16)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
1486 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(10+2*math.cos(sine/16)),math.rad(-5+1*math.cos(sine/32))), 0.2) | |
1487 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(-10-2*math.cos(sine/16)),math.rad(5+1*math.cos(sine/32))), 0.2) | |
1488 | end | |
1489 | end | |
1490 | if didjump == true and jumped == false and jumppower < 0 then | |
1491 | didjump = false | |
1492 | jumpimpact() | |
1493 | end | |
1494 | ||
1495 | local chance = math.random(0,10000)/100 | |
1496 | if chance <= 5 + (kills/2) then | |
1497 | if glitched == false then | |
1498 | backup = hed.Weld.C1 | |
1499 | end | |
1500 | if torso:FindFirstChild("MusicRuin") then | |
1501 | equalizer.HighGain = 0 | |
1502 | equalizer.MidGain = -20 | |
1503 | equalizer.LowGain = -80 | |
1504 | end | |
1505 | hed.Weld.C1 = glitchedC1 | |
1506 | local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1) | |
1507 | hed.Color = glitch_color | |
1508 | torso.Color = glitch_color | |
1509 | rarm.Color = glitch_color | |
1510 | larm.Color = glitch_color | |
1511 | rleg.Color = glitch_color | |
1512 | lleg.Color = glitch_color | |
1513 | shake(5) | |
1514 | glitched = true | |
1515 | hed.face.Texture = "rbxassetid://435233416" | |
1516 | sond:Resume() | |
1517 | else | |
1518 | if glitched == true then | |
1519 | glitched = false | |
1520 | hed.Weld.C1 = backup | |
1521 | glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20))) | |
1522 | end | |
1523 | if torso:FindFirstChild("MusicRuin") then | |
1524 | equalizer.HighGain = 0 | |
1525 | equalizer.MidGain = 0 | |
1526 | equalizer.LowGain = 0 | |
1527 | end | |
1528 | hed.BrickColor = skin_color | |
1529 | torso.BrickColor = skin_color | |
1530 | rarm.BrickColor = skin_color | |
1531 | larm.BrickColor = skin_color | |
1532 | rleg.BrickColor = skin_color | |
1533 | lleg.BrickColor = skin_color | |
1534 | hed.face.Texture = "rbxassetid://422627909" | |
1535 | sond:Pause() | |
1536 | end | |
1537 | ||
1538 | timeposition = soundz.TimePosition | |
1539 | sine = sine + change | |
1540 | hum.Health = math.huge | |
1541 | hum.MaxHealth = math.huge | |
1542 | end) |