SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | - | print("FE Compatibility code by Mokiros") |
4 | + | print("Fixed by kilcrafter (crift_games1)") |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | - | local Player = game:GetService("Players").LocalPlayer |
59 | + | local Player = owner |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | - | local Mouse = Player:GetMouse() |
71 | + | |
72 | --Give the server mouse data 30 times every second, but only if the values changed | |
73 | --If player is not moving their mouse, client won't fire events | |
74 | while wait(1/30) do | |
75 | if h~=Mouse.Hit or t~=Mouse.Target then | |
76 | h,t=Mouse.Hit,Mouse.Target | |
77 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
78 | end | |
79 | end]==],Player.Character) | |
80 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
81 | end | |
82 | plr = owner | |
83 | chr = plr.Character or plr.CharacterAdded:wait() | |
84 | fire = Instance.new("Fire") | |
85 | shield = Instance.new('Part') | |
86 | shield.FormFactor = "Custom" | |
87 | shield.Size = Vector3.new(.2,.2,.2) | |
88 | shield.BottomSurface = "Smooth" | |
89 | shield.TopSurface = "Smooth" | |
90 | shield.Anchored = true | |
91 | shield.CanCollide = false | |
92 | shield.BrickColor = BrickColor.new(0,0,0) | |
93 | shield.Transparency = .5 | |
94 | mesh = Instance.new("SpecialMesh",shield) | |
95 | mesh.MeshType = "Sphere" | |
96 | tele = Instance.new("Part") | |
97 | tele.Anchored = true | |
98 | tele.Transparency = .5 | |
99 | tele.CanCollide = false | |
100 | cil = Instance.new("CylinderMesh",tele) | |
101 | tele.BrickColor = BrickColor.new(1,1,1) | |
102 | tele.Size = Vector3.new(5,1,5) | |
103 | box = Instance.new("Part") | |
104 | box.Transparency = .5 | |
105 | box.Anchored = true | |
106 | box.CanCollide = false | |
107 | box.FormFactor = Enum.FormFactor.Custom | |
108 | box.Size = Vector3.new(.2,.2,.2) | |
109 | box.TopSurface = Enum.SurfaceType.Smooth | |
110 | box.BottomSurface = Enum.SurfaceType.Smooth | |
111 | ||
112 | mouse.KeyDown:connect(function(key) | |
113 | if key == 'f'then | |
114 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
115 | local clone = fire:Clone() | |
116 | clone.Parent = chr["Right Arm"] | |
117 | clone.Color = Color3.new(1,1,1) | |
118 | clone.SecondaryColor = clone.Color | |
119 | wait(2) | |
120 | clone:Destroy() | |
121 | local target = mouse.Target | |
122 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent) | |
123 | victim.Character.Torso.Anchored = true | |
124 | while true do | |
125 | game:GetService('RunService').RenderStepped:wait() | |
126 | victim.Character.HumanoidRootPart.CFrame = victim.Character.HumanoidRootPart.CFrame + Vector3.new(0,.1,0) | |
127 | end | |
128 | end | |
129 | elseif key == '' then | |
130 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
131 | local clone = fire:Clone() | |
132 | clone.Parent = chr["Right Arm"] | |
133 | clone.Color = Color3.new(0.3333333333333333,0.6666666666666667,1) | |
134 | clone.SecondaryColor = clone.Color | |
135 | wait(2) | |
136 | clone:Destroy() | |
137 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent) | |
138 | local children = victim.Character:GetChildren() | |
139 | victim.Character.Humanoid.WalkSpeed = 0 | |
140 | victim.Character.Torso.Anchored = true | |
141 | for i,v in pairs(children) do | |
142 | if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then | |
143 | v.Anchored = true | |
144 | v.CanCollide = false | |
145 | for i = 0,1,.1 do | |
146 | wait() | |
147 | v.Transparency = i | |
148 | end | |
149 | end | |
150 | end | |
151 | end | |
152 | elseif key == 'c' then | |
153 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
154 | local clone = fire:Clone() | |
155 | clone.Parent = chr["Right Arm"] | |
156 | clone.Color = Color3.new(1,0,0) | |
157 | clone.SecondaryColor = clone.Color | |
158 | wait(2) | |
159 | clone:Destroy() | |
160 | local explosion = Instance.new('Explosion',workspace) | |
161 | explosion.Position = mouse.Target.Position | |
162 | end | |
163 | elseif key == 'q' then | |
164 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
165 | local clone = fire:Clone() | |
166 | clone.Parent = chr["Right Arm"] | |
167 | clone.Color = Color3.new(0,1,0) | |
168 | clone.SecondaryColor = clone.Color | |
169 | wait(2) | |
170 | clone:Destroy() | |
171 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent) | |
172 | local children = victim.Character:GetChildren() | |
173 | victim.Character.Humanoid.WalkSpeed = 0 | |
174 | victim.Character.Torso.Anchored = true | |
175 | for i,v in pairs(children) do | |
176 | if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then | |
177 | wait(.25) | |
178 | v.BrickColor = BrickColor.Green() | |
179 | v.CanCollide = false | |
180 | v.Parent = workspace | |
181 | v.Anchored = false | |
182 | end | |
183 | end | |
184 | end | |
185 | elseif key == 'r' then | |
186 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
187 | local clone = fire:Clone() | |
188 | clone.Parent = chr["Right Arm"] | |
189 | clone.Color = Color3.new(0,0,0) | |
190 | clone.SecondaryColor = clone.Color | |
191 | wait(2) | |
192 | clone:Destroy() | |
193 | local ball = shield:Clone() | |
194 | ball.Parent = workspace | |
195 | ||
196 | ball.Touched:connect(function(p) | |
197 | if p.Name ~= "Base" and p.Parent ~=chr or p.Name ~= "Base" and p.Parent.Parent ~= chr then | |
198 | p:Destroy() | |
199 | end | |
200 | end) | |
201 | ||
202 | while ball.Size.Y < 26 do | |
203 | game:GetService('RunService').RenderStepped:wait() | |
204 | ball.Size = ball.Size + Vector3.new(.25,.25,.25) | |
205 | ball.CFrame = chr.Torso.CFrame | |
206 | end | |
207 | for i = .5,1,.05 do | |
208 | game:GetService('RunService').RenderStepped:wait() | |
209 | ball.Transparency = i | |
210 | end | |
211 | ball:Destroy() | |
212 | end | |
213 | elseif key == 't' then | |
214 | local dis = shield:Clone() | |
215 | local telep = tele:Clone() | |
216 | telep.Parent = workspace | |
217 | dis.Parent = workspace | |
218 | dis.BrickColor = BrickColor.new(1,1,1) | |
219 | for i = 1,25 do | |
220 | game:GetService('RunService').RenderStepped:wait() | |
221 | dis.Size = dis.Size + Vector3.new(.35,.35,.35) | |
222 | dis.CFrame = chr.Torso.CFrame | |
223 | telep.Size = telep.Size + Vector3.new(0,5,0) | |
224 | telep.CFrame = chr.Torso.CFrame | |
225 | end | |
226 | for i = .5,1,.05 do | |
227 | game:GetService('RunService').RenderStepped:wait() | |
228 | dis.Transparency = i | |
229 | telep.Transparency = i | |
230 | dis.CFrame = chr.Torso.CFrame | |
231 | telep.CFrame = chr.Torso.CFrame | |
232 | end | |
233 | dis:Destroy() | |
234 | telep:Destroy() | |
235 | chr:SetPrimaryPartCFrame(mouse.Hit+Vector3.new(0,20,0)) | |
236 | elseif | |
237 | key == 'g' then | |
238 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
239 | local target = mouse.Target | |
240 | local clone = fire:Clone() | |
241 | clone.Parent = chr["Right Arm"] | |
242 | clone.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)) | |
243 | clone.SecondaryColor = clone.Color | |
244 | wait(2) | |
245 | clone:Destroy() | |
246 | local boxB = box:Clone() | |
247 | boxB.Parent = target | |
248 | boxB.BrickColor = BrickColor.new(math.random(0,1),math.random(0,1),math.random(0,1)) | |
249 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent).Character | |
250 | victim.Humanoid.WalkSpeed = 0 | |
251 | for i = .2,10,.2 do | |
252 | game:GetService('RunService').RenderStepped:wait() | |
253 | boxB.Size = Vector3.new(i,i,i) | |
254 | boxB.CFrame = victim.Torso.CFrame | |
255 | end | |
256 | for i = .5,1,.025 do | |
257 | game:GetService('RunService').RenderStepped:wait() | |
258 | boxB.Transparency = i | |
259 | end | |
260 | wait() | |
261 | boxB:Destroy() | |
262 | local children = victim:GetChildren() | |
263 | for i,v in pairs(children) do | |
264 | clone = fire:Clone() | |
265 | clone.Parent = v | |
266 | clone.Color = Color3.new(1,0,0) | |
267 | victim.Humanoid.Health = victim.Humanoid.Health - 10 | |
268 | if v.ClassName == "Part" then | |
269 | v.BrickColor = BrickColor.Red() | |
270 | end | |
271 | end | |
272 | end | |
273 | elseif key == 'h' then | |
274 | local clone = fire:Clone() | |
275 | clone.Parent = chr["Right Arm"] | |
276 | clone.Color = Color3.new(1,1,1) | |
277 | clone.SecondaryColor = clone.Color | |
278 | wait(.5) | |
279 | clone:Destroy() | |
280 | local sphere = shield:Clone() | |
281 | sphere.Parent = workspace | |
282 | sphere.Touched:connect(function(p) | |
283 | local debounce = false | |
284 | local h = p.Parent:FindFirstChild("Humanoid") | |
285 | if h and h.Parent.Name ~= plr.Name and debounce == false then | |
286 | debounce = true | |
287 | local dis = shield:Clone() | |
288 | local telep = tele:Clone() | |
289 | telep.Parent = workspace | |
290 | dis.Parent = workspace | |
291 | dis.BrickColor = BrickColor.new(1,1,1) | |
292 | for i = 1,25 do | |
293 | game:GetService('RunService').RenderStepped:wait() | |
294 | dis.Size = dis.Size + Vector3.new(.35,.35,.35) | |
295 | dis.CFrame = h.Parent.Torso.CFrame | |
296 | telep.Size = telep.Size + Vector3.new(0,5,0) | |
297 | telep.CFrame = h.Parent.Torso.CFrame | |
298 | end | |
299 | for i = .5,1,.05 do | |
300 | game:GetService('RunService').RenderStepped:wait() | |
301 | dis.Transparency = i | |
302 | telep.Transparency = i | |
303 | dis.CFrame = h.Parent.Torso.CFrame | |
304 | telep.CFrame = h.Parent.Torso.CFrame | |
305 | end | |
306 | dis:Destroy() | |
307 | telep:Destroy() | |
308 | h.Parent:MoveTo(h.Parent.PrimaryPart.Position + Vector3.new(math.random(-50,50),20,math.random(-50,50))) | |
309 | wait(5) | |
310 | debounce = false | |
311 | end | |
312 | end) | |
313 | for i = .2,25,.5 do | |
314 | game:GetService('RunService').RenderStepped:wait() | |
315 | sphere.Size = Vector3.new(i,i,i) | |
316 | sphere.CFrame = chr.Torso.CFrame | |
317 | end | |
318 | for i = .5,1,.05 do | |
319 | game:GetService('RunService').RenderStepped:wait() | |
320 | sphere.Transparency = i | |
321 | end | |
322 | sphere:Destroy() | |
323 | elseif key == 'j' and mouse.Target.ClassName == "Part" then | |
324 | local target = mouse.Target | |
325 | local sword = tele:Clone() | |
326 | sword.FormFactor = "Custom" | |
327 | sword.BrickColor = BrickColor.new(0,0,0) | |
328 | sword.Parent = workspace | |
329 | sword.Size = Vector3.new(.2,.2,.2) | |
330 | local swordB = sword:Clone() | |
331 | swordB.Parent = workspace | |
332 | for i = 1,5,.2 do | |
333 | game:GetService('RunService').RenderStepped:wait() | |
334 | sword.Size = Vector3.new(.2,i,.2) | |
335 | sword.CFrame = chr["Right Arm"].CFrame | |
336 | swordB.Size = Vector3.new(.2,i,.2) | |
337 | swordB.CFrame = chr["Left Arm"].CFrame | |
338 | end | |
339 | for i = 1,30 do | |
340 | game:GetService('RunService').RenderStepped:wait() | |
341 | swordB.CFrame = chr["Left Arm"].CFrame | |
342 | sword.CFrame = chr["Right Arm"].CFrame | |
343 | end | |
344 | local swordC = sword:Clone() | |
345 | swordC.Parent = workspace | |
346 | sword.CFrame = target.CFrame + Vector3.new(0,10,0) | |
347 | for i = 3,7,.5 do | |
348 | game:GetService('RunService').RenderStepped:wait() | |
349 | sword.Size = Vector3.new(.2,i,.2) | |
350 | sword.CFrame = target.CFrame + Vector3.new(0,10,0) | |
351 | swordB.CFrame = chr["Left Arm"].CFrame | |
352 | swordC.CFrame = chr["Right Arm"].CFrame | |
353 | end | |
354 | for i = 10,0,-.2 do | |
355 | game:GetService('RunService').RenderStepped:wait() | |
356 | sword.Rotation = Vector3.new(0,0,0) | |
357 | sword.CFrame = target.CFrame + Vector3.new(0,i,0) | |
358 | sword.Rotation = Vector3.new(0,0,0) | |
359 | swordB.CFrame = chr["Left Arm"].CFrame | |
360 | swordC.CFrame = chr["Right Arm"].CFrame | |
361 | end | |
362 | if target.Parent.ClassName == "Hat" then | |
363 | target.Parent.Parent.Humanoid.Health = target.Parent.Parent.Humanoid.Health - 15 | |
364 | else | |
365 | target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 35 | |
366 | end | |
367 | for i = .5,1,.05 do | |
368 | game:GetService('RunService').RenderStepped:wait() | |
369 | sword.Transparency = i | |
370 | swordB.Transparency = i | |
371 | swordC.Transparency = i | |
372 | end | |
373 | sword:Destroy() | |
374 | swordB:Destroy() | |
375 | swordC:Destroy() | |
376 | elseif key == 'k' and mouse.Target and mouse.Target.Parent.ClassName == "Model" and mouse.Target.ClassName == "Part" then | |
377 | local target = mouse.Target | |
378 | local children = target.Parent:GetChildren() | |
379 | for i,v in pairs(children) do | |
380 | v.BrickColor = BrickColor.new(1,0,0) | |
381 | local clone = fire:Clone() | |
382 | clone.Parent = v | |
383 | clone.Color = Color3.new(1,0,0) | |
384 | wait(.25) | |
385 | v:Destroy() | |
386 | end | |
387 | elseif key == 'x' and mouse.Target.ClassName == "Part" then | |
388 | local t = mouse.Target.Transparency | |
389 | for i = t,0.7,.02 do | |
390 | game:GetService('RunService').RenderStepped:wait() | |
391 | mouse.Target.Transparency = i | |
392 | end | |
393 | mouse.Target:Destroy() | |
394 | elseif key == 'z' then | |
395 | local part = Instance.new("Part",workspace) | |
396 | part.CFrame = CFrame.new(50,50,50) | |
397 | local bv = Instance.new("BodyVelocity",part) | |
398 | Instance.new("CFrameValue",part) | |
399 | local rotate = Instance.new("BodyAngularVelocity",part) | |
400 | rotate.AngularVelocity = Vector3.new(math.random(3.5,7.5),math.random(3.5,7.5),math.random(3.5,7.5)) | |
401 | local cvalue = part:WaitForChild("Value") | |
402 | part.Touched:connect(function(p) | |
403 | if p.Name == "Part" or p.Name == "Head" then | |
404 | for i = 0,1,.05 do | |
405 | game:GetService('RunService').RenderStepped:wait() | |
406 | part.Transparency = i | |
407 | p.Transparency = i | |
408 | end | |
409 | p:Destroy() | |
410 | part:Destroy() | |
411 | elseif p.Name == "Baseplate" or p.Name == "Base" or p.Name == "BasePlate" then | |
412 | cvalue.Value = part.CFrame | |
413 | part.Anchored = true | |
414 | for i = 10,25,.5 do | |
415 | game:GetService('RunService').RenderStepped:wait() | |
416 | part.Size = Vector3.new(i,i,i) | |
417 | part.CFrame = cvalue.Value | |
418 | end | |
419 | for i = 0,1.,.05 do | |
420 | game:GetService('RunService').RenderStepped:wait() | |
421 | part.Transparency = i | |
422 | end | |
423 | part:Destroy() | |
424 | end | |
425 | end) | |
426 | part.Parent = chr | |
427 | part.BrickColor = BrickColor.new(193,1,1) | |
428 | part.Material = "Slate" | |
429 | part.Anchored = false | |
430 | part.CanCollide = false | |
431 | part.Name = "bomb" | |
432 | part.FormFactor = "Custom" | |
433 | part.Size = Vector3.new(.2,.2,.2) | |
434 | part.BottomSurface = "Smooth" | |
435 | part.TopSurface = "Smooth" | |
436 | local sbox = Instance.new("SelectionBox",part) | |
437 | sbox.Adornee = part | |
438 | sbox.Color3 = Color3.new(0,0,0) | |
439 | sbox.LineThickness = 0.005 | |
440 | sbox.Transparency = .75 | |
441 | sbox.SurfaceColor3 = Color3.new(0,0,0) | |
442 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge,math.huge) | |
443 | for i = 1,9 do | |
444 | wait() | |
445 | local clone = part:Clone() | |
446 | Instance.new("CFrameValue",clone) | |
447 | local rotateB = Instance.new("BodyAngularVelocity",part) | |
448 | rotateB.AngularVelocity = Vector3.new(math.random(5,15),math.random(5,15),math.random(5,15)) | |
449 | clone.CFrame = CFrame.new(100,100,100) | |
450 | local cvalueB = clone:WaitForChild("Value") | |
451 | wait() | |
452 | clone.Parent = chr | |
453 | clone.Name = "bomb" | |
454 | clone.Touched:connect(function(p) | |
455 | if p.Name == "Part" or p.Name == "Head" then | |
456 | for i = 0,1,.05 do | |
457 | game:GetService('RunService').RenderStepped:wait() | |
458 | clone.Transparency = i | |
459 | p.Transparency = i | |
460 | end | |
461 | p:Destroy() | |
462 | clone:Destroy() | |
463 | elseif p.Name == "Baseplate" or p.Name == "Base" or p.Name == "BasePlate" then | |
464 | cvalueB.Value = clone.CFrame | |
465 | clone.Anchored = true | |
466 | for i = 10,25,.5 do | |
467 | game:GetService('RunService').RenderStepped:wait() | |
468 | clone.Size = Vector3.new(i,i,i) | |
469 | clone.CFrame = cvalueB.Value | |
470 | end | |
471 | for i = 0,1.,.05 do | |
472 | game:GetService('RunService').RenderStepped:wait() | |
473 | clone.Transparency = i | |
474 | end | |
475 | clone:Destroy() | |
476 | end | |
477 | end) | |
478 | end | |
479 | local children = chr:GetChildren() | |
480 | for i,v in pairs(children) do | |
481 | if v.Name == "bomb" then | |
482 | for i = .2,10,.5 do | |
483 | game:GetService('RunService').RenderStepped:wait() | |
484 | v.Size = Vector3.new(i,i,i) | |
485 | v.CFrame = chr.Torso.CFrame * CFrame.Angles(math.random(),math.pi,math.random()) + Vector3.new(0,20,0) | |
486 | end | |
487 | local bvB = v:WaitForChild("BodyVelocity") | |
488 | bvB.Velocity = mouse.Hit.lookVector*200 | |
489 | end | |
490 | end | |
491 | elseif key == 'e' then | |
492 | local kill = Instance.new("Part") | |
493 | local bv = Instance.new("BodyVelocity",kill) | |
494 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
495 | local rotate = Instance.new("BodyAngularVelocity",kill) | |
496 | rotate.AngularVelocity = Vector3.new(math.random(10,20),math.random(10,20),math.random(10,20)) | |
497 | kill.CFrame = CFrame.new(50,50,50) | |
498 | kill.Touched:connect(function(p) | |
499 | if p.Name == "Head" and p.Parent ~= chr or p.Name == "Torso" and p.Parent ~= chr then | |
500 | p.Parent.Humanoid.Health = 0 | |
501 | p:Destroy() | |
502 | for i = 1,10 do | |
503 | game:GetService('RunService').RenderStepped:wait() | |
504 | kill.Size = kill.Size - Vector3.new(.2,.2,.2) | |
505 | kill.Transparency = kill.Transparency - .1 | |
506 | end | |
507 | end | |
508 | end) | |
509 | kill.BrickColor = BrickColor.new(0,0,0) | |
510 | kill.Material = "Slate" | |
511 | kill.Anchored = false | |
512 | kill.CanCollide = false | |
513 | kill.FormFactor = "Custom" | |
514 | kill.Size = Vector3.new(1,1,1) | |
515 | kill.TopSurface = "Smooth" | |
516 | kill.BottomSurface = "Smooth" | |
517 | wait() | |
518 | local sbox = Instance.new("SelectionBox",kill) | |
519 | sbox.Adornee = kill | |
520 | sbox.Color3 = Color3.new(1,1,1) | |
521 | sbox.LineThickness = .010 | |
522 | sbox.Transparency = .5 | |
523 | kill.Parent = workspace | |
524 | kill.CFrame = chr.Head.CFrame | |
525 | wait() | |
526 | kill.BodyVelocity.Velocity = mouse.Hit.lookVector*100 | |
527 | kill.ChildAdded:connect(function(c) | |
528 | for i = 0,1,.2 do | |
529 | game:GetService('RunService').RenderStepped:wait() | |
530 | c.Transparency = i | |
531 | c.SelectionBox.Transparency = i | |
532 | end | |
533 | c:Destroy() | |
534 | end) | |
535 | while kill.Transparency == 0 do | |
536 | wait(.09) | |
537 | local clone = kill:Clone() | |
538 | clone.Anchored = true | |
539 | clone.Parent = kill | |
540 | clone.CFrame = kill.CFrame | |
541 | end | |
542 | end | |
543 | end) | |
544 | --=<=Abilitys above=>=-- | |
545 | ew = function(Object, Parent, Name, Data) | |
546 | local Object = Instance.new(Object) | |
547 | for Index, Value in pairs(Data or {}) do | |
548 | Object[Index] = Value | |
549 | end | |
550 | Object.Parent = Parent | |
551 | Object.Name = Name | |
552 | return Object | |
553 | end | |
554 | ||
555 | local Player = owner | |
556 | repeat wait(1) until Player.Character | |
557 | local Character = Player.Character | |
558 | Character.Animate.Disabled = true | |
559 | local la = Character:FindFirstChild("Left Arm") | |
560 | local ra = Character:FindFirstChild("Right Arm") | |
561 | local ll = Character:FindFirstChild("Left Leg") | |
562 | local rl = Character:FindFirstChild("Right Leg") | |
563 | local Torso = Character:FindFirstChild("Torso") | |
564 | z = Instance.new("Sound", Torso) | |
565 | z.SoundId = "rbxassetid://182096702" -- Put Music ID Here. | |
566 | z.Looped = true | |
567 | z.Volume = 10 | |
568 | wait(.1) | |
569 | z:Play() | |
570 | local Humanoid = Character:findFirstChild("Humanoid") | |
571 | Character.Animate.Disabled = true | |
572 | Character.Sound:Destroy() | |
573 | Humanoid.Animator:Destroy() | |
574 | ||
575 | local LimbAccess = {LA=true,RA=true,LL=true,RL=true,RJ=true,NJ=true,Weapon=true} | |
576 | local State = "Lounge" | |
577 | local Active = true | |
578 | local Mode = "Staff" | |
579 | function Lerp(a,b,i) -- A = First pos, B = Second Pos, i = Speed | |
580 | return a:lerp(b,i) | |
581 | end | |
582 | Left_Arm = Instance.new("Weld",Torso) | |
583 | Left_Arm.Part0 = Torso | |
584 | Left_Arm.Part1 = la | |
585 | Left_Arm.Name = "LeftArmJ" | |
586 | Left_Arm.C0 = CFrame.new(-1.5,0.5,0) | |
587 | Left_Arm.C1 = CFrame.new(0,0.5,0) | |
588 | Right_Arm = Instance.new("Weld",Torso) | |
589 | Right_Arm.Part0 = Torso | |
590 | Right_Arm.Part1 = ra | |
591 | Right_Arm.Name = "RightArmJ" | |
592 | Right_Arm.C0 = CFrame.new(1.5,0.5,0) | |
593 | Right_Arm.C1 = CFrame.new(0,0.5,0) | |
594 | Left_Leg = Instance.new("Weld",Torso) | |
595 | Left_Leg.Part0 = Torso | |
596 | Left_Leg.Part1 = ll | |
597 | Left_Leg.Name = "LeftLegJ" | |
598 | Left_Leg.C0 = CFrame.new(-0.5,-1,0) | |
599 | Left_Leg.C1 = CFrame.new(0,1,0) | |
600 | Right_Leg = Instance.new("Weld",Torso) | |
601 | Right_Leg.Name = "RightLegJ" | |
602 | Right_Leg.Part0 = Torso | |
603 | Right_Leg.Part1 = rl | |
604 | Right_Leg.C0 = CFrame.new(0.5,-1,0) | |
605 | Right_Leg.C1 = CFrame.new(0,1,0) | |
606 | Staffw = Instance.new("Weld",Torso) | |
607 | Staffw.Part0 = Torso | |
608 | Staffw.Part1 = Handle | |
609 | Staffw.Name = "StaffJoint" | |
610 | ||
611 | local RootJoint = Instance.new("Weld",Character["HumanoidRootPart"]) | |
612 | RootJoint.Name = "RootJ" | |
613 | RootJoint.Part0 = Character["HumanoidRootPart"] | |
614 | RootJoint.Part1 = Torso | |
615 | ||
616 | local NeckJ = Instance.new("Weld",Torso) | |
617 | NeckJ.Name = "NeckJ" | |
618 | NeckJ.Part0 = Torso | |
619 | NeckJ.Part1 = Character.Head | |
620 | NeckJ.C1 = CFrame.new(0,-1.5,0) | |
621 | ||
622 | function Change() | |
623 | ||
624 | end | |
625 | _G.MoveCheck1 = false | |
626 | _G.SatanState = false | |
627 | ||
628 | function SpellBinder(SpellID) | |
629 | if _G.MoveCheck1 == false then | |
630 | _G.MoveCheck1 = true | |
631 | if _G.SatanState == false then | |
632 | _G.SatanState = true | |
633 | ||
634 | ID = 357442018 | |
635 | _G.SpellBindStuff = 0 | |
636 | _G.SpellBind = game:GetObjects("rbxassetid://437368177")[1] | |
637 | _G.SpellBind.Decal.Texture = "rbxassetid://" .. SpellID | |
638 | _G.SpellBind.Decal1.Texture = "rbxassetid://" .. SpellID | |
639 | _G.SpellBind.Parent = owner.Character | |
640 | - | _G.SpellBind.Parent = game.Players.LocalPlayer.Character |
640 | + | _G.SpellBind.CFrame = owner.Character.Torso.CFrame - owner.Character.Torso.CFrame.lookVector * 35 |
641 | - | _G.SpellBind.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame - game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 35 |
641 | + | _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, owner.Character.Torso.Position)* CFrame.Angles(1.6,0,0) |
642 | - | _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, game.Players.LocalPlayer.Character.Torso.Position)* CFrame.Angles(1.6,0,0) |
642 | + | |
643 | _G.SpellBind.ParticleEmitter.Size = NumberSequence.new(5) | |
644 | ||
645 | _G.UnsealEnforca = game:GetService("RunService").RenderStepped:connect(function() | |
646 | _G.SpellBind.CFrame = owner.Character.Torso.CFrame + owner.Character.Torso.CFrame.lookVector * 35 | |
647 | - | _G.SpellBind.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 35 |
647 | + | _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, owner.Character.Torso.Position)* CFrame.Angles(1.6,_G.SpellBindStuff,0) |
648 | - | _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, game.Players.LocalPlayer.Character.Torso.Position)* CFrame.Angles(1.6,_G.SpellBindStuff,0) |
648 | + | |
649 | end) | |
650 | ||
651 | ||
652 | for i = 1, 117 do | |
653 | _G.SpellBind.Size = _G.SpellBind.Size + Vector3.new(0.50,0,0.50) | |
654 | wait(0.07) | |
655 | end | |
656 | ||
657 | ||
658 | wait(0.1) | |
659 | ||
660 | _G.chatcustom("You shall not pass!", "Really red", owner) | |
661 | - | _G.chatcustom("You shall not pass!", "Really red", game.Players.LocalPlayer) |
661 | + | |
662 | else | |
663 | _G.MoveCheck1 = true | |
664 | wait(0.6) | |
665 | ||
666 | for i = 1, 117 do | |
667 | _G.SpellBind.Size = _G.SpellBind.Size - Vector3.new(0.50,0,0.50) | |
668 | wait(0.07) | |
669 | end | |
670 | ||
671 | ||
672 | _G.UnsealEnforca:disconnect() | |
673 | _G.SpellBind.Parent = _G.newParent | |
674 | wait(0.1) | |
675 | _G.SatanState = false | |
676 | _G.MoveCheck1 = false | |
677 | end | |
678 | end | |
679 | end | |
680 | ||
681 | ||
682 | ||
683 | _G.ConnectionAgent = Mouse.KeyDown:connect(function(key) | |
684 | if key == "q" and State == "Flying" and Active == true then | |
685 | State = "Lounge" | |
686 | Humanoid.WalkSpeed = 30 | |
687 | elseif key == "q" and State == "Lounge" and Active == true then | |
688 | State = "Flying" | |
689 | Humanoid.WalkSpeed = 20 | |
690 | elseif key == "q" and State == "Battle" and Active == true then | |
691 | State = "Flying" | |
692 | Humanoid.WalkSpeed = 50 | |
693 | elseif key == "e" and State == "Battle" and Active == true then | |
694 | SpellBinder(375165574) | |
695 | elseif key == "e" and Active == true then | |
696 | --[[ | |
697 | Humanoid.WalkSpeed = 0 | |
698 | State = "Changing" | |
699 | Mode = "Changing" | |
700 | Active = false | |
701 | Change() | |
702 | --]] | |
703 | end | |
704 | end) | |
705 | ||
706 | Player.Character.Humanoid.Died:connect(function() | |
707 | _G.ConnectionAgent:disconnect() | |
708 | end) | |
709 | ||
710 | angle = 0 | |
711 | angle2 = 0 | |
712 | angle3 = 0 | |
713 | anglespeed = 2 | |
714 | anglespeed2 = 1 | |
715 | anglespeed3 = .4 | |
716 | game:GetService("RunService").Stepped:connect(function() | |
717 | angle = ((angle % 100) + anglespeed/10) | |
718 | angle2 = ((angle2 % 100) + anglespeed2/10) | |
719 | angle3 = ((angle3 % 100) + anglespeed3/10) --it'll go from 0 to 100 and repeat in a loop. basically it will get to its destination and back --ok | |
720 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Flying" then -- idle | |
721 | if not Humanoid.WalkSpeed == 50 then | |
722 | Humanoid.WalkSpeed = 50 | |
723 | end | |
724 | if LimbAccess.RJ then | |
725 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2) | |
726 | end | |
727 | if LimbAccess.LA then | |
728 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(0)+math.sin(angle3)*.06),.1) | |
729 | end | |
730 | if LimbAccess.NJ then | |
731 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25) | |
732 | end | |
733 | if LimbAccess.RA then | |
734 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1) | |
735 | end | |
736 | if LimbAccess.LL then | |
737 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
738 | end | |
739 | if LimbAccess.RL then | |
740 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
741 | end | |
742 | if LimbAccess.Weapon then | |
743 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2) | |
744 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2) | |
745 | end | |
746 | elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Flying" then -- walk | |
747 | if LimbAccess.RJ then | |
748 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2) | |
749 | end | |
750 | if LimbAccess.LA then | |
751 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(7)+math.sin(angle3)*.06),.1) | |
752 | end | |
753 | if LimbAccess.NJ then | |
754 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25) | |
755 | end | |
756 | if LimbAccess.RA then | |
757 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1) | |
758 | end | |
759 | if LimbAccess.LL then | |
760 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
761 | end | |
762 | if LimbAccess.RL then | |
763 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
764 | end | |
765 | if LimbAccess.Weapon then | |
766 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2) | |
767 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2) | |
768 | end | |
769 | end | |
770 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Lounge" then -- idle | |
771 | if not Humanoid.WalkSpeed == 30 then | |
772 | Humanoid.WalkSpeed = 30 | |
773 | end | |
774 | if LimbAccess.RJ then | |
775 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2) | |
776 | end | |
777 | if LimbAccess.LA then | |
778 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-3)+math.sin(angle3)*.06),.1) | |
779 | end | |
780 | if LimbAccess.NJ then | |
781 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
782 | end | |
783 | if LimbAccess.RA then | |
784 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(3)),.1) | |
785 | end | |
786 | if LimbAccess.LL then | |
787 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1) | |
788 | end | |
789 | if LimbAccess.RL then | |
790 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(15)+math.sin(angle3)*-.02),.1) | |
791 | end | |
792 | if LimbAccess.Weapon then | |
793 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2) | |
794 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2) | |
795 | end | |
796 | elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Lounge" then -- walk | |
797 | if LimbAccess.RJ then | |
798 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2) | |
799 | end | |
800 | if LimbAccess.LA then | |
801 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-23)+math.sin(angle3)*.06),.1) | |
802 | end | |
803 | if LimbAccess.NJ then | |
804 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
805 | end | |
806 | if LimbAccess.RA then | |
807 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(23)),.1) | |
808 | end | |
809 | if LimbAccess.LL then | |
810 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
811 | end | |
812 | if LimbAccess.RL then | |
813 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
814 | end | |
815 | if LimbAccess.Weapon then | |
816 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2) | |
817 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2) | |
818 | end | |
819 | end | |
820 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Battle" then -- idle | |
821 | if not Humanoid.WalkSpeed == 20 then | |
822 | Humanoid.WalkSpeed = 20 | |
823 | end | |
824 | if LimbAccess.RJ then | |
825 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2) | |
826 | end | |
827 | if LimbAccess.LA then | |
828 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1) | |
829 | end | |
830 | if LimbAccess.NJ then | |
831 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
832 | end | |
833 | if LimbAccess.RA then | |
834 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1) | |
835 | end | |
836 | if LimbAccess.LL then | |
837 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1) | |
838 | end | |
839 | if LimbAccess.RL then | |
840 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(5)+math.sin(angle3)*-.02),.1) | |
841 | end | |
842 | if LimbAccess.Weapon then | |
843 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-.5,-1),.2) | |
844 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.6,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(-90)),.2) | |
845 | end | |
846 | elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Battle" then -- walk | |
847 | if LimbAccess.RJ then | |
848 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,.5+math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2) | |
849 | end | |
850 | if LimbAccess.LA then | |
851 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-.9,0.6,-.8)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1) | |
852 | end | |
853 | if LimbAccess.NJ then | |
854 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
855 | end | |
856 | if LimbAccess.RA then | |
857 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.4,-.3)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1) | |
858 | end | |
859 | if LimbAccess.LL then | |
860 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.7,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
861 | end | |
862 | if LimbAccess.RL then | |
863 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
864 | end | |
865 | if LimbAccess.Weapon then | |
866 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(.4,.5,-1),.2) | |
867 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.1,0)*CFrame.Angles(math.rad(135),math.rad(120),math.rad(-135)),.2) | |
868 | end | |
869 | end | |
870 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Changing" then -- idle | |
871 | if LimbAccess.RJ then | |
872 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2) | |
873 | end | |
874 | if LimbAccess.LA then | |
875 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.3,0.51,-.7)*CFrame.Angles(math.rad(5),math.rad(-165),math.rad(-90)),.1) | |
876 | end | |
877 | if LimbAccess.NJ then | |
878 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-10),math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
879 | end | |
880 | if LimbAccess.RA then | |
881 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.3,0.49,-.7)*CFrame.Angles(math.rad(5),math.rad(165),math.rad(90)),.1) | |
882 | end | |
883 | if LimbAccess.LL then | |
884 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-1,-1,-.4)*CFrame.Angles(0,math.rad(25),math.rad(75)),.1) | |
885 | end | |
886 | if LimbAccess.RL then | |
887 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(1,-1,-.4)*CFrame.Angles(0,math.rad(-25),math.rad(-75)),.1) | |
888 | end | |
889 | end | |
890 | end) | |
891 | ||
892 | Player = owner | |
893 | - | Player = game:GetService("Players").LocalPlayer |
893 | + | |
894 | rarm=Cha["Right Arm"] | |
895 | larm=Cha["Left Arm"] | |
896 | rar=Cha["Right Leg"] | |
897 | lar=Cha["Left Leg"] | |
898 | ||
899 | Handle = Instance.new("Part",Cha) | |
900 | Handle.TopSurface = "Smooth" | |
901 | Handle.BottomSurface = "Smooth" | |
902 | Handle.Size = Vector3.new(1,1,1) | |
903 | Handle.CanCollide = false | |
904 | Handle.Transparency = 0 | |
905 | Handle.BrickColor = BrickColor.new("Crimson") | |
906 | HandleMesh = Instance.new("SpecialMesh", Handle) | |
907 | HandleMesh.MeshType = "Brick" | |
908 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
909 | HandleWeld = Instance.new("Weld",Cha) | |
910 | HandleWeld.Part0 = rarm | |
911 | HandleWeld.Part1 = Handle | |
912 | HandleWeld.C1 = CFrame.new(0, 0.4, 0) | |
913 | ||
914 | ||
915 | Hand = Instance.new("Part",Cha) | |
916 | Hand.TopSurface = "Smooth" | |
917 | Hand.BottomSurface = "Smooth" | |
918 | Hand.Size = Vector3.new(1,1,1) | |
919 | Hand.CanCollide = false | |
920 | Hand.Transparency = 0 | |
921 | Hand.BrickColor = BrickColor.new("Royal purple") | |
922 | HandMesh = Instance.new("SpecialMesh", Hand) | |
923 | HandMesh.MeshType = "Brick" | |
924 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
925 | HandWeld = Instance.new("Weld",Cha) | |
926 | HandWeld.Part0 = rarm | |
927 | HandWeld.Part1 = Hand | |
928 | HandWeld.C1 = CFrame.new(0, 0.4, 0) | |
929 | ||
930 | Handle = Instance.new("Part",Cha) | |
931 | Handle.TopSurface = "Smooth" | |
932 | Handle.BottomSurface = "Smooth" | |
933 | Handle.Size = Vector3.new(1,1,1) | |
934 | Handle.CanCollide = false | |
935 | Handle.Transparency = 0 | |
936 | Handle.BrickColor = BrickColor.new("Crimson") | |
937 | HandleMesh = Instance.new("SpecialMesh", Handle) | |
938 | HandleMesh.MeshType = "Brick" | |
939 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
940 | HandleWeld = Instance.new("Weld",Cha) | |
941 | HandleWeld.Part0 = larm | |
942 | HandleWeld.Part1 = Handle | |
943 | HandleWeld.C1 = CFrame.new(0, 0.4, 0) | |
944 | ||
945 | ||
946 | Hand = Instance.new("Part",Cha) | |
947 | Hand.TopSurface = "Smooth" | |
948 | Hand.BottomSurface = "Smooth" | |
949 | Hand.Size = Vector3.new(1,1,1) | |
950 | Hand.CanCollide = false | |
951 | Hand.Transparency = 0 | |
952 | Hand.BrickColor = BrickColor.new("Royal purple") | |
953 | HandMesh = Instance.new("SpecialMesh", Hand) | |
954 | HandMesh.MeshType = "Brick" | |
955 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
956 | HandWeld = Instance.new("Weld",Cha) | |
957 | HandWeld.Part0 = larm | |
958 | HandWeld.Part1 = Hand | |
959 | HandWeld.C1 = CFrame.new(0, 0.4, 0) | |
960 | ||
961 | Handle = Instance.new("Part",Cha) | |
962 | Handle.TopSurface = "Smooth" | |
963 | Handle.BottomSurface = "Smooth" | |
964 | Handle.Size = Vector3.new(1,1,1) | |
965 | Handle.CanCollide = false | |
966 | Handle.Transparency = 0 | |
967 | Handle.BrickColor = BrickColor.new("Crimson") | |
968 | HandleMesh = Instance.new("SpecialMesh", Handle) | |
969 | HandleMesh.MeshType = "Brick" | |
970 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
971 | HandleWeld = Instance.new("Weld",Cha) | |
972 | HandleWeld.Part0 = larm | |
973 | HandleWeld.Part1 = Handle | |
974 | HandleWeld.C1 = CFrame.new(0, 0.2, 0) | |
975 | ||
976 | ||
977 | Hand = Instance.new("Part",Cha) | |
978 | Hand.TopSurface = "Smooth" | |
979 | Hand.BottomSurface = "Smooth" | |
980 | Hand.Size = Vector3.new(1,1,1) | |
981 | Hand.CanCollide = false | |
982 | Hand.Transparency = 0 | |
983 | Hand.BrickColor = BrickColor.new("Bright green") | |
984 | HandMesh = Instance.new("SpecialMesh", Hand) | |
985 | HandMesh.MeshType = "Brick" | |
986 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
987 | HandWeld = Instance.new("Weld",Cha) | |
988 | HandWeld.Part0 = larm | |
989 | HandWeld.Part1 = Hand | |
990 | HandWeld.C1 = CFrame.new(0, 0.2, 0) | |
991 | ||
992 | Handle = Instance.new("Part",Cha) | |
993 | Handle.TopSurface = "Smooth" | |
994 | Handle.BottomSurface = "Smooth" | |
995 | Handle.Size = Vector3.new(1,1,1) | |
996 | Handle.CanCollide = false | |
997 | Handle.Transparency = 0 | |
998 | Handle.BrickColor = BrickColor.new("Crimson") | |
999 | HandleMesh = Instance.new("SpecialMesh", Handle) | |
1000 | HandleMesh.MeshType = "Brick" | |
1001 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
1002 | HandleWeld = Instance.new("Weld",Cha) | |
1003 | HandleWeld.Part0 = rarm | |
1004 | HandleWeld.Part1 = Handle | |
1005 | HandleWeld.C1 = CFrame.new(0, 0.2, 0) | |
1006 | ||
1007 | ||
1008 | Hand = Instance.new("Part",Cha) | |
1009 | Hand.TopSurface = "Smooth" | |
1010 | Hand.BottomSurface = "Smooth" | |
1011 | Hand.Size = Vector3.new(1,1,1) | |
1012 | Hand.CanCollide = false | |
1013 | Hand.Transparency = 0 | |
1014 | Hand.BrickColor = BrickColor.new("Bright green") | |
1015 | HandMesh = Instance.new("SpecialMesh", Hand) | |
1016 | HandMesh.MeshType = "Brick" | |
1017 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
1018 | HandWeld = Instance.new("Weld",Cha) | |
1019 | HandWeld.Part0 = rarm | |
1020 | HandWeld.Part1 = Hand | |
1021 | HandWeld.C1 = CFrame.new(0, 0.2, 0) | |
1022 | ||
1023 | Handle = Instance.new("Part",Cha) | |
1024 | Handle.TopSurface = "Smooth" | |
1025 | Handle.BottomSurface = "Smooth" | |
1026 | Handle.Size = Vector3.new(1,1,1) | |
1027 | Handle.CanCollide = false | |
1028 | Handle.Transparency = 0 | |
1029 | Handle.BrickColor = BrickColor.new("Crimson") | |
1030 | HandleMesh = Instance.new("SpecialMesh", Handle) | |
1031 | HandleMesh.MeshType = "Brick" | |
1032 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
1033 | HandleWeld = Instance.new("Weld",Cha) | |
1034 | HandleWeld.Part0 = rarm | |
1035 | HandleWeld.Part1 = Handle | |
1036 | HandleWeld.C1 = CFrame.new(0, 0.6, 0) | |
1037 | ||
1038 | ||
1039 | Hand = Instance.new("Part",Cha) | |
1040 | Hand.TopSurface = "Smooth" | |
1041 | Hand.BottomSurface = "Smooth" | |
1042 | Hand.Size = Vector3.new(1,1,1) | |
1043 | Hand.CanCollide = false | |
1044 | Hand.Transparency = 0 | |
1045 | Hand.BrickColor = BrickColor.new("Bright green") | |
1046 | HandMesh = Instance.new("SpecialMesh", Hand) | |
1047 | HandMesh.MeshType = "Brick" | |
1048 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
1049 | HandWeld = Instance.new("Weld",Cha) | |
1050 | HandWeld.Part0 = rarm | |
1051 | HandWeld.Part1 = Hand | |
1052 | HandWeld.C1 = CFrame.new(0, 0.6, 0) | |
1053 | ||
1054 | Handle = Instance.new("Part",Cha) | |
1055 | Handle.TopSurface = "Smooth" | |
1056 | Handle.BottomSurface = "Smooth" | |
1057 | Handle.Size = Vector3.new(1,1,1) | |
1058 | Handle.CanCollide = false | |
1059 | Handle.Transparency = 0 | |
1060 | Handle.BrickColor = BrickColor.new("Crimson") | |
1061 | HandleMesh = Instance.new("SpecialMesh", Handle) | |
1062 | HandleMesh.MeshType = "Brick" | |
1063 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
1064 | HandleWeld = Instance.new("Weld",Cha) | |
1065 | HandleWeld.Part0 = larm | |
1066 | HandleWeld.Part1 = Handle | |
1067 | HandleWeld.C1 = CFrame.new(0, 0.6, 0) | |
1068 | ||
1069 | ||
1070 | Hand = Instance.new("Part",Cha) | |
1071 | Hand.TopSurface = "Smooth" | |
1072 | Hand.BottomSurface = "Smooth" | |
1073 | Hand.Size = Vector3.new(1,1,1) | |
1074 | Hand.CanCollide = false | |
1075 | Hand.Transparency = 0 | |
1076 | Hand.BrickColor = BrickColor.new("Bright green") | |
1077 | HandMesh = Instance.new("SpecialMesh", Hand) | |
1078 | HandMesh.MeshType = "Brick" | |
1079 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
1080 | HandWeld = Instance.new("Weld",Cha) | |
1081 | HandWeld.Part0 = larm | |
1082 | HandWeld.Part1 = Hand | |
1083 | HandWeld.C1 = CFrame.new(0, 0.6, 0) | |
1084 | ||
1085 | wait(0.1) | |
1086 | ||
1087 | rs = game:GetService'RunService' | |
1088 | plrs = game:GetService'Players' | |
1089 | lp = owner | |
1090 | c = lp.Character | |
1091 | root = lp.Character.HumanoidRootPart | |
1092 | human = c.Humanoid | |
1093 | FPS = 0 | |
1094 | inf = 0 | |
1095 | opos1 = Vector3.new(1) | |
1096 | opos2 = Vector3.new(2) | |
1097 | opos3 = Vector3.new(3) | |
1098 | waves = Instance.new("Model", c) | |
1099 | res = Instance.new("Model", c) | |
1100 | ||
1101 | local function b() | |
1102 | local t=tick(); | |
1103 | local l=t%1*3; | |
1104 | local t=.5*math.pi*(l%1); | |
1105 | if l<0.5 then | |
1106 | return Color3.new(47,0,32); | |
1107 | elseif l<2 then | |
1108 | return Color3.new(193,0,0); | |
1109 | else | |
1110 | return Color3.new(0,10,0); | |
1111 | end; | |
1112 | end; | |
1113 | speedParts = function() | |
1114 | for i = 1, 4 do | |
1115 | local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -c.HumanoidRootPart.Velocity / 5) * (math.sin(tick()) + 2) | |
1116 | local CFramepos = root.CFrame:toWorldSpace(CFrame.new(pos)).p | |
1117 | local opos | |
1118 | if i == 1 then | |
1119 | opos = opos1 | |
1120 | elseif i == 2 then | |
1121 | opos = opos2 | |
1122 | else | |
1123 | opos = opos3 | |
1124 | end | |
1125 | if human.MoveDirection ~= Vector3.new(7, 8, 9) then | |
1126 | local e | |
1127 | if #res:children() <= 3 then | |
1128 | e = Instance.new("Part") | |
1129 | else | |
1130 | e = res:FindFirstChild("Tail") | |
1131 | end | |
1132 | e.Parent = waves | |
1133 | e.Anchored = true | |
1134 | e.CanCollide = false | |
1135 | e.Transparency = 0 | |
1136 | e.Material = "Slate" | |
1137 | e.Name = "Tail" | |
1138 | e.Color = b(); --Color = a(); | |
1139 | e.Size = Vector3.new(.2, (CFramepos - opos).magnitude, .2) | |
1140 | e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 4, 2) | |
1141 | end | |
1142 | if i == 1 then | |
1143 | opos1 = CFramepos | |
1144 | elseif i == 2 then | |
1145 | opos2 = CFramepos | |
1146 | else | |
1147 | opos3 = CFramepos | |
1148 | end | |
1149 | end | |
1150 | end | |
1151 | ||
1152 | rs.RenderStepped:connect(function() | |
1153 | FPS = 1 / rs.RenderStepped:wait() | |
1154 | for i, v in pairs (waves:children()) do | |
1155 | v.Transparency = v.Transparency + .05 / (FPS / 60) | |
1156 | if v.Transparency >= .98 then | |
1157 | v.Transparency = 1 | |
1158 | v.Parent = res | |
1159 | end | |
1160 | end | |
1161 | inf = inf + (8 + root.Velocity.magnitude / 15) / (FPS / 60) | |
1162 | speedParts() | |
1163 | end) | |
1164 | ||
1165 | local p = owner | |
1166 | local char = p.Character | |
1167 | local size = 15 | |
1168 | part = function() | |
1169 | ||
1170 | local a = Instance.new("Part", script) | |
1171 | a.Anchored = true | |
1172 | a.CanCollide = true | |
1173 | a.CFrame = char.Torso.CFrame | |
1174 | a.Size = Vector3.new(size, 0.2, 0.2) | |
1175 | a.Transparency = 5 | |
1176 | return a | |
1177 | end | |
1178 | ||
1179 | part2 = function() | |
1180 | ||
1181 | local a = Instance.new("Part", script) | |
1182 | a.Anchored = true | |
1183 | a.CanCollide = true | |
1184 | a.CFrame = char.Torso.CFrame | |
1185 | a.Size = Vector3.new(0.2, size, 0.2) | |
1186 | a.Transparency = 5 | |
1187 | return a | |
1188 | end | |
1189 | ||
1190 | part3 = function() | |
1191 | ||
1192 | local a = Instance.new("Part", script) | |
1193 | a.Anchored = true | |
1194 | a.CanCollide = false | |
1195 | a.Size = Vector3.new(size, size, 1) | |
1196 | a.Transparency = 5 | |
1197 | a.Material = "Neon" | |
1198 | a.BrickColor = BrickColor.new("Really black") | |
1199 | local b = Instance.new("BlockMesh", a) | |
1200 | b.Scale = Vector3.new(1, 1, 0) | |
1201 | return a | |
1202 | end | |
1203 | ||
1204 | local replicating = false | |
1205 | local root, a, b, c, d, a2, b2, c2, d2, aa, bb, cc, dd, z, x, c, v, b, n = nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil | |
1206 | replicate = function() | |
1207 | ||
1208 | replicating = true | |
1209 | script:ClearAllChildren() | |
1210 | root = part() | |
1211 | root.Transparency = 5 | |
1212 | root.Size = Vector3.new(0.2, 0.2, 0.2) | |
1213 | root.CanCollide = false | |
1214 | a = part() | |
1215 | b = part() | |
1216 | c = part() | |
1217 | d = part() | |
1218 | a2 = part() | |
1219 | b2 = part() | |
1220 | c2 = part() | |
1221 | d2 = part() | |
1222 | aa = part2() | |
1223 | bb = part2() | |
1224 | cc = part2() | |
1225 | dd = part2() | |
1226 | z = part3() | |
1227 | x = part3() | |
1228 | c = part3() | |
1229 | v = part3() | |
1230 | b = part3() | |
1231 | n = part3() | |
1232 | replicating = false | |
1233 | end | |
1234 | ||
1235 | script.ChildRemoved:connect(function(a) | |
1236 | ||
1237 | if a.ClassName == "Part" and replicating == false then | |
1238 | replicate() | |
1239 | end | |
1240 | end | |
1241 | ) | |
1242 | replicate() | |
1243 | local tick = 0 | |
1244 | CreateRegion3FromLocAndSize = function(Position, Size) | |
1245 | ||
1246 | local SizeOffset = Size / 2 | |
1247 | local Point1 = Position - SizeOffset | |
1248 | local Point2 = Position + SizeOffset | |
1249 | return Region3.new(Point1, Point2) | |
1250 | end | |
1251 | ||
1252 | local set = false | |
1253 | local whitelist = {""} | |
1254 | p.Chatted:connect(function(ms) | |
1255 | ||
1256 | if ms:sub(1, 5) == "size-" then | |
1257 | size = tonumber(ms:sub(6)) | |
1258 | replicate() | |
1259 | else | |
1260 | if ms:sub(1, 4) == "set-" then | |
1261 | set = true | |
1262 | z.CanCollide = false | |
1263 | x.CanCollide = false | |
1264 | c.CanCollide = false | |
1265 | v.CanCollide = false | |
1266 | b.CanCollide = false | |
1267 | n.CanCollide = false | |
1268 | else | |
1269 | if ms:sub(1, 6) == "unset-" then | |
1270 | set = false | |
1271 | z.CanCollide = false | |
1272 | x.CanCollide = false | |
1273 | c.CanCollide = false | |
1274 | v.CanCollide = false | |
1275 | b.CanCollide = false | |
1276 | n.CanCollide = false | |
1277 | else | |
1278 | if ms:sub(1, 10) == "whitelist-" then | |
1279 | table.insert(whitelist, ms:sub(11)) | |
1280 | else | |
1281 | if ms:sub(1, 12) == "unwhitelist-" then | |
1282 | for i,v in pairs(whitelist) do | |
1283 | if ms:sub(13) == v then | |
1284 | table.remove(whitelist, i) | |
1285 | break | |
1286 | end | |
1287 | end | |
1288 | end | |
1289 | end | |
1290 | end | |
1291 | end | |
1292 | end | |
1293 | end | |
1294 | ) | |
1295 | local magicpos = nil | |
1296 | game:GetService("RunService").Heartbeat:connect(function() | |
1297 | ||
1298 | pcall(function() | |
1299 | ||
1300 | local void = char:GetChildren() | |
1301 | for _,pl in pairs(whitelist) do | |
1302 | if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then | |
1303 | for i,v in pairs(game.Players[pl].Character:GetChildren()) do | |
1304 | table.insert(void, v) | |
1305 | end | |
1306 | end | |
1307 | end | |
1308 | for i,v in pairs(game.Players:GetPlayers()) do | |
1309 | if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then | |
1310 | v:LoadCharacter() | |
1311 | end | |
1312 | end | |
1313 | char.Humanoid.Health = math.huge | |
1314 | tick = tick + 0.01 | |
1315 | if not set then | |
1316 | root.CFrame = root.CFrame:lerp(CFrame.new(char.Torso.CFrame.p) * CFrame.Angles(math.sin(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2)), 0.1) | |
1317 | magicpos = char.Torso.CFrame | |
1318 | else | |
1319 | root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05) | |
1320 | end | |
1321 | local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size)) | |
1322 | for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do | |
1323 | if v.Name ~= "Base" then | |
1324 | v:Destroy() | |
1325 | end | |
1326 | end | |
1327 | a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1328 | b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1329 | c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2) | |
1330 | d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2) | |
1331 | a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1332 | b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1333 | c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2) | |
1334 | d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2) | |
1335 | aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2) | |
1336 | bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2) | |
1337 | cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2) | |
1338 | dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2) | |
1339 | z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1340 | x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1341 | c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90)) | |
1342 | v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90)) | |
1343 | b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
1344 | n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
1345 | end | |
1346 | ) | |
1347 | end | |
1348 | ) | |
1349 | --=<=Skin=>=-- | |
1350 | Player=owner | |
1351 | local p = owner | |
1352 | - | local p = game.Players.LocalPlayer |
1352 | + | |
1353 | local larm = char["Left Arm"] | |
1354 | local rarm = char["Right Arm"] | |
1355 | local lleg = char["Left Leg"] | |
1356 | local rleg = char["Right Leg"] | |
1357 | local hed = char.Head | |
1358 | local torso = char.Torso | |
1359 | local hum = char.Humanoid | |
1360 | local cam = game.Workspace.CurrentCamera | |
1361 | local root = char.HumanoidRootPart | |
1362 | local deb = false | |
1363 | local shot = 0 | |
1364 | local debris=game:service"Debris" | |
1365 | local l = game:GetService("Lighting") | |
1366 | local rs = game:GetService("RunService").RenderStepped | |
1367 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
1368 | math.randomseed(os.time()) | |
1369 | for i,v in pairs(char:children()) do | |
1370 | if v:IsA("Hat") then | |
1371 | v:Destroy() | |
1372 | end | |
1373 | end | |
1374 | for i,v in pairs (hed:GetChildren()) do | |
1375 | if v:IsA("Sound") then | |
1376 | v:Destroy() | |
1377 | end | |
1378 | end | |
1379 | ---------------------------------------------------- | |
1380 | Debounces = { | |
1381 | CanAttack = true; | |
1382 | NoIdl = false; | |
1383 | Slashing = false; | |
1384 | Slashed = false; | |
1385 | RPunch = false; | |
1386 | RPunched = false; | |
1387 | LPunch = false; | |
1388 | LPunched = false; | |
1389 | } | |
1390 | local Touche = {char.Name, } | |
1391 | ---------------------------------------------------- | |
1392 | hed.face.Texture = "" | |
1393 | char["Body Colors"].HeadColor = BrickColor.new("Institutional white") | |
1394 | char["Body Colors"].TorsoColor = BrickColor.new("Institutional white") | |
1395 | char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white") | |
1396 | char["Body Colors"].RightArmColor = BrickColor.new("Institutional white") | |
1397 | char["Body Colors"].RightLegColor = BrickColor.new("Institutional white") | |
1398 | char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white") | |
1399 | ---------------------------------------------------- | |
1400 | ypcall(function() | |
1401 | char.Shirt:Destroy() | |
1402 | char.Pants:Destroy() | |
1403 | shirt = Instance.new("Shirt", char) | |
1404 | shirt.Name = "Shirt" | |
1405 | pants = Instance.new("Pants", char) | |
1406 | pants.Name = "Pants" | |
1407 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
1408 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
1409 | end) |