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,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | local h,t | |
87 | --Give the server mouse data every second frame, but only if the values changed | |
88 | --If player is not moving their mouse, client won't fire events | |
89 | local HB = game:GetService("RunService").Heartbeat | |
90 | while true do | |
91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
92 | h,t=Mouse.Hit,Mouse.Target | |
93 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
94 | end | |
95 | --Wait 2 frames | |
96 | for i=1,2 do | |
97 | HB:Wait() | |
98 | end | |
99 | end]==],script) | |
100 | ||
101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
102 | --Real game object | |
103 | local RealGame = game | |
104 | ||
105 | --Metatable for fake service | |
106 | local FakeService_Metatable = { | |
107 | __index = function(self,k) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then | |
110 | return typeof(s[k])=="function" | |
111 | and function(_,...)return s[k](s,...)end or s[k] | |
112 | end | |
113 | end, | |
114 | __newindex = function(self,k,v) | |
115 | local s = rawget(self,"_RealService") | |
116 | if s then s[k]=v end | |
117 | end | |
118 | } | |
119 | local function FakeService(t,RealService) | |
120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
121 | return setmetatable(t,FakeService_Metatable) | |
122 | end | |
123 | ||
124 | --Fake game object | |
125 | local FakeGame = { | |
126 | GetService = function(self,s) | |
127 | return rawget(self,s) or RealGame:GetService(s) | |
128 | end, | |
129 | Players = FakeService({ | |
130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
131 | },"Players"), | |
132 | UserInputService = FakeService(UIS,"UserInputService"), | |
133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
134 | RunService = FakeService({ | |
135 | _btrs = {}, | |
136 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
137 | BindToRenderStep = function(self,name,_,fun) | |
138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
139 | end, | |
140 | UnbindFromRenderStep = function(self,name) | |
141 | self._btrs[name]:Disconnect() | |
142 | end, | |
143 | },"RunService") | |
144 | } | |
145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
146 | FakeGame.service = FakeGame.GetService | |
147 | FakeService(FakeGame,game) | |
148 | --Changing owner to fake player object to support owner:GetMouse() | |
149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
150 | end | |
151 | ||
152 | --Edited by refrop | |
153 | ||
154 | ||
155 | ID = '319332735' | |
156 | Looped = false | |
157 | ||
158 | Music=Instance.new("Sound" ,workspace) | |
159 | Music.Name = "Music" | |
160 | if Looped == true then | |
161 | Music.Looped = true | |
162 | end | |
163 | Music.SoundId = "http://roblox.com/asset/?id=319332735" | |
164 | Music:Play() --Demonic Laugh. (Omega Flowey) You can remove if you wish. Its very loud (To not make play, remove 'Music:Play()') | |
165 | ||
166 | --full credit to krystal and rocky2u for below | |
167 | Fire = false | |
168 | ||
169 | Sparkles = false | |
170 | ||
171 | Box = false | |
172 | ||
173 | local Players = game.Players | |
174 | ||
175 | local Player = Players.LocalPlayer | |
176 | ||
177 | local Mouse = Player:GetMouse() | |
178 | ||
179 | ||
180 | local dist = 25 | |
181 | ||
182 | local trans = 0 | |
183 | ||
184 | local dwn=false | |
185 | ||
186 | local Bin = Instance.new("HopperBin") | |
187 | ||
188 | Bin.Name = "Sans' Telekinesis" | |
189 | ||
190 | Bin.Parent = Player.Backpack | |
191 | ||
192 | ||
193 | local ScreenGUI = Instance.new("ScreenGui", Player.PlayerGui) | |
194 | ||
195 | local Color = Instance.new("Color3Value", ScreenGUI) | |
196 | ||
197 | local ColorValue = Color.Value | |
198 | ||
199 | local Blue = Instance.new("TextButton", ScreenGUI) | |
200 | ||
201 | local Red = Instance.new("TextButton", ScreenGUI) | |
202 | ||
203 | local Green = Instance.new("TextButton", ScreenGUI) | |
204 | ||
205 | local Yellow = Instance.new("TextButton", ScreenGUI) | |
206 | ||
207 | local Pink = Instance.new("TextButton", ScreenGUI) | |
208 | ||
209 | local LightBlue = Instance.new("TextButton", ScreenGUI) | |
210 | ||
211 | local White = Instance.new("TextButton", ScreenGUI) | |
212 | ||
213 | local FireTrue = Instance.new("TextButton", ScreenGUI) | |
214 | ||
215 | local FireFalse = Instance.new("TextButton", ScreenGUI) | |
216 | ||
217 | local SparklesTrue = Instance.new("TextButton", ScreenGUI) | |
218 | ||
219 | local SparklesFalse = Instance.new("TextButton", ScreenGUI) | |
220 | ||
221 | local BoxTrue = Instance.new("TextButton", ScreenGUI) | |
222 | ||
223 | local BoxFalse = Instance.new("TextButton", ScreenGUI) | |
224 | ||
225 | Color.Name = "Color" | |
226 | ||
227 | Blue.BackgroundColor3 = BrickColor.new("Bright blue").Color | |
228 | ||
229 | Blue.Transparency = 0.5 | |
230 | ||
231 | Blue.Size = UDim2.new(0, 20 ,0, 20) | |
232 | ||
233 | Blue.Position = UDim2.new(1, -35, 1, -35) | |
234 | ||
235 | Blue.Name = "Blue" | |
236 | ||
237 | Blue.Text = "" | |
238 | ||
239 | Blue.Visible = false | |
240 | ||
241 | Red.BackgroundColor3 = BrickColor.new("Bright red").Color | |
242 | ||
243 | Red.Transparency = 0.5 | |
244 | ||
245 | Red.Size = UDim2.new(0, 20 ,0, 20) | |
246 | ||
247 | Red.Position = UDim2.new(1,-65, 1, -35) | |
248 | ||
249 | Red.Name = "Red" | |
250 | ||
251 | Red.Text = "" | |
252 | ||
253 | Red.Visible = false | |
254 | ||
255 | Green.BackgroundColor3 = BrickColor.new("Bright green").Color | |
256 | ||
257 | Green.Transparency = 0.5 | |
258 | ||
259 | Green.Size = UDim2.new(0, 20 ,0, 20) | |
260 | ||
261 | Green.Position = UDim2.new(1,-95, 1, -35) | |
262 | ||
263 | Green.Name = "Green" | |
264 | ||
265 | Green.Text = "" | |
266 | ||
267 | Green.Visible = false | |
268 | ||
269 | Yellow.BackgroundColor3 = BrickColor.new("New Yeller").Color | |
270 | ||
271 | Yellow.Transparency = 0.5 | |
272 | ||
273 | Yellow.Size = UDim2.new(0, 20 ,0, 20) | |
274 | ||
275 | Yellow.Position = UDim2.new(1,-125, 1, -35) | |
276 | ||
277 | Yellow.Name = "Yellow" | |
278 | ||
279 | Yellow.Text = "" | |
280 | ||
281 | Yellow.Visible = false | |
282 | ||
283 | Pink.BackgroundColor3 = BrickColor.new("Hot pink").Color | |
284 | ||
285 | Pink.Transparency = 0.5 | |
286 | ||
287 | Pink.Size = UDim2.new(0, 20 ,0, 20) | |
288 | ||
289 | Pink.Position = UDim2.new(1,-155, 1, -35) | |
290 | ||
291 | Pink.Name = "Pink" | |
292 | ||
293 | Pink.Text = "" | |
294 | ||
295 | Pink.Visible = false | |
296 | ||
297 | LightBlue.BackgroundColor3 = BrickColor.new("Cyan").Color | |
298 | ||
299 | LightBlue.Transparency = 0.5 | |
300 | ||
301 | LightBlue.Size = UDim2.new(0, 20 ,0, 20) | |
302 | ||
303 | LightBlue.Position = UDim2.new(1,-185, 1, -35) | |
304 | ||
305 | LightBlue.Name = "LightBlue" | |
306 | ||
307 | LightBlue.Text = "" | |
308 | ||
309 | LightBlue.Visible = false | |
310 | ||
311 | White.BackgroundColor3 = BrickColor.new("White").Color | |
312 | ||
313 | White.Transparency = 0.5 | |
314 | ||
315 | White.Size = UDim2.new(0, 20 ,0, 20) | |
316 | ||
317 | White.Position = UDim2.new(1,-215, 1, -35) | |
318 | ||
319 | White.Name = "White" | |
320 | ||
321 | White.Text = "" | |
322 | ||
323 | White.Visible = false | |
324 | ||
325 | FireFalse.BackgroundColor3 = BrickColor.new("Really black").Color | |
326 | ||
327 | FireFalse.Transparency = 0.5 | |
328 | ||
329 | FireFalse.Size = UDim2.new(0, 50 ,0, 20) | |
330 | ||
331 | FireFalse.Position = UDim2.new(1,-65, 1, -65) | |
332 | ||
333 | FireFalse.Name = "FireFalse" | |
334 | ||
335 | FireFalse.Text = "Fire: F" | |
336 | ||
337 | FireFalse.Visible = false | |
338 | ||
339 | FireFalse.FontSize = "Size12" | |
340 | ||
341 | FireFalse.Font = "ArialBold" | |
342 | ||
343 | FireFalse.TextColor = BrickColor.new(255,255,255) | |
344 | ||
345 | FireFalse.TextTransparency = 0 | |
346 | ||
347 | FireTrue.BackgroundColor3 = BrickColor.new("Really black").Color | |
348 | ||
349 | FireTrue.Transparency = 0.5 | |
350 | ||
351 | FireTrue.Size = UDim2.new(0, 50 ,0, 20) | |
352 | ||
353 | FireTrue.Position = UDim2.new(1,-65, 1, -65) | |
354 | ||
355 | FireTrue.Name = "FireTrue" | |
356 | ||
357 | FireTrue.Text = "Fire: T" | |
358 | ||
359 | FireTrue.Visible = false | |
360 | ||
361 | FireTrue.FontSize = "Size12" | |
362 | ||
363 | FireTrue.Font = "ArialBold" | |
364 | ||
365 | FireTrue.TextColor = BrickColor.new(255,255,255) | |
366 | ||
367 | FireTrue.TextTransparency = 0 | |
368 | ||
369 | SparklesTrue.BackgroundColor3 = BrickColor.new("Really black").Color | |
370 | ||
371 | SparklesTrue.Transparency = 0.5 | |
372 | ||
373 | SparklesTrue.Size = UDim2.new(0, 50 ,0, 20) | |
374 | ||
375 | SparklesTrue.Position = UDim2.new(1,-125, 1, -65) | |
376 | ||
377 | SparklesTrue.Name = "SparklesTrue" | |
378 | ||
379 | SparklesTrue.Text = "SP: T" | |
380 | ||
381 | SparklesTrue.Visible = false | |
382 | ||
383 | SparklesTrue.FontSize = "Size12" | |
384 | ||
385 | SparklesTrue.Font = "ArialBold" | |
386 | ||
387 | SparklesTrue.TextColor = BrickColor.new(255,255,255) | |
388 | ||
389 | SparklesTrue.TextTransparency = 0 | |
390 | ||
391 | SparklesFalse.BackgroundColor3 = BrickColor.new("Really black").Color | |
392 | ||
393 | SparklesFalse.Transparency = 0.5 | |
394 | ||
395 | SparklesFalse.Size = UDim2.new(0, 50 ,0, 20) | |
396 | ||
397 | SparklesFalse.Position = UDim2.new(1,-125, 1, -65) | |
398 | ||
399 | SparklesFalse.Name = "SparklesFalse" | |
400 | ||
401 | SparklesFalse.Text = "SP: F" | |
402 | ||
403 | SparklesFalse.Visible = false | |
404 | ||
405 | SparklesFalse.FontSize = "Size12" | |
406 | ||
407 | SparklesFalse.Font = "ArialBold" | |
408 | ||
409 | SparklesFalse.TextColor = BrickColor.new(255,255,255) | |
410 | ||
411 | SparklesFalse.TextTransparency = 0 | |
412 | ||
413 | BoxTrue.BackgroundColor3 = BrickColor.new("Really black").Color | |
414 | ||
415 | BoxTrue.Transparency = 0.5 | |
416 | ||
417 | BoxTrue.Size = UDim2.new(0, 50 ,0, 20) | |
418 | ||
419 | BoxTrue.Position = UDim2.new(1,-185, 1, -65) | |
420 | ||
421 | BoxTrue.Name = "BoxTrue" | |
422 | ||
423 | BoxTrue.Text = "Box: T" | |
424 | ||
425 | BoxTrue.Visible = false | |
426 | ||
427 | BoxTrue.FontSize = "Size12" | |
428 | ||
429 | BoxTrue.Font = "ArialBold" | |
430 | ||
431 | BoxTrue.TextColor = BrickColor.new(255,255,255) | |
432 | ||
433 | BoxTrue.TextTransparency = 0 | |
434 | ||
435 | BoxFalse.BackgroundColor3 = BrickColor.new("Really black").Color | |
436 | ||
437 | BoxFalse.Transparency = 0.5 | |
438 | ||
439 | BoxFalse.Size = UDim2.new(0, 50 ,0, 20) | |
440 | ||
441 | BoxFalse.Position = UDim2.new(1,-185, 1, -65) | |
442 | ||
443 | BoxFalse.Name = "BoxFalse" | |
444 | ||
445 | BoxFalse.Text = "Box: F" | |
446 | ||
447 | BoxFalse.Visible = false | |
448 | ||
449 | BoxFalse.FontSize = "Size12" | |
450 | ||
451 | BoxFalse.Font = "ArialBold" | |
452 | ||
453 | BoxFalse.TextColor = BrickColor.new(255, 255, 255) | |
454 | ||
455 | BoxFalse.TextTransparency = 0 | |
456 | ||
457 | local Credits = Instance.new("ScreenGui",Player.PlayerGui) | |
458 | ||
459 | local Text = Instance.new("TextLabel",Credits) | |
460 | ||
461 | Text.BackgroundTransparency = 1 | |
462 | ||
463 | Text.Position = UDim2.new(0, 0, 1, -25) | |
464 | ||
465 | Text.Size = UDim2.new(0, 200, 0, 25) | |
466 | ||
467 | Text.Font = "SourceSans" | |
468 | ||
469 | Text.FontSize = "Size24" | |
470 | ||
471 | Text.Text = "By AzuLX, Issac and Pingu - GSans Script." | |
472 | ||
473 | Text.TextColor3 = Color3.new(255, 255, 255) | |
474 | ||
475 | Text.TextXAlignment = "Left" | |
476 | ||
477 | local bawl = Instance.new("Part", game.Lighting) | |
478 | ||
479 | bawl.Name="TelekinesisGrab" | |
480 | ||
481 | local bp = Instance.new("BodyPosition", bawl) | |
482 | ||
483 | local w = Instance.new("Weld", bawl) | |
484 | ||
485 | function onButton1Down(mouse) | |
486 | ||
487 | bawl.Size = Vector3.new(2,2,2) | |
488 | ||
489 | bawl.Material="Neon" | |
490 | ||
491 | bawl.Shape=0 | |
492 | ||
493 | bawl.Transparency=trans | |
494 | ||
495 | bawl.Name="TelekinesisGrab" | |
496 | ||
497 | bawl.CanCollide = false | |
498 | ||
499 | bawl.Parent = game.Workspace | |
500 | ||
501 | w.Parent = bawl | |
502 | ||
503 | w.Name = "Weld" | |
504 | ||
505 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
506 | ||
507 | bp.Parent = bawl | |
508 | ||
509 | bp.Name="lolx" | |
510 | ||
511 | bawl.Parent = workspace | |
512 | ||
513 | if mouse ~= nil then | |
514 | ||
515 | if mouse.Target ~= nil then | |
516 | ||
517 | w.Part0 = mouse.Target | |
518 | ||
519 | w.Part1 = bawl | |
520 | ||
521 | dwn = true | |
522 | ||
523 | if mouse.Target.Parent:FindFirstChild("Humanoid") then | |
524 | ||
525 | mouse.Target.Parent:FindFirstChild("Humanoid").PlatformStand=true | |
526 | ||
527 | else | |
528 | ||
529 | print('no humanoid') | |
530 | ||
531 | end | |
532 | ||
533 | end | |
534 | ||
535 | end | |
536 | ||
537 | spawn(function() | |
538 | ||
539 | while dwn == true do | |
540 | ||
541 | ypcall(function() | |
542 | ||
543 | bp.Parent = bawl | |
544 | ||
545 | bp.position = Player.Character.Torso.Position + (mouse.Hit.lookVector*dist) | |
546 | ||
547 | wait() | |
548 | ||
549 | end) | |
550 | ||
551 | end | |
552 | ||
553 | end) | |
554 | ||
555 | end | |
556 | ||
557 | function onButton1Up(mouse) | |
558 | ||
559 | dwn=false | |
560 | ||
561 | if bawl ~= nil then | |
562 | ||
563 | bawl.Parent=game.Lighting | |
564 | ||
565 | else | |
566 | ||
567 | print('not found') | |
568 | ||
569 | end | |
570 | ||
571 | end | |
572 | ||
573 | function onKeyDown(key, mouse) | |
574 | ||
575 | key:lower() | |
576 | ||
577 | if key == "r" then | |
578 | ||
579 | if bawl ~= nil then | |
580 | ||
581 | --bawl.Parent=nil | |
582 | ||
583 | end | |
584 | ||
585 | elseif key == "e" then | |
586 | ||
587 | local p = Instance.new("Part", workspace) | |
588 | ||
589 | p.Size = Vector3.new(3,3,3) | |
590 | ||
591 | p.Material = "Neon" | |
592 | ||
593 | p.Position = mouse.Hit.p + Vector3.new(0,2,0) | |
594 | ||
595 | p.BrickColor = bawl.BrickColor | |
596 | ||
597 | p.Shape = "Ball" | |
598 | ||
599 | p.BottomSurface = "Smooth" | |
600 | ||
601 | p.TopSurface = "Smooth" | |
602 | ||
603 | elseif key == "h" then | |
604 | ||
605 | if bawl ~= nil then | |
606 | ||
607 | if bawl:FindFirstChild("Weld") ~= nil then | |
608 | ||
609 | if bawl:FindFirstChild("Weld").Part0 ~= nil then | |
610 | ||
611 | bawl:FindFirstChild("Weld").Part0.Anchored=false | |
612 | ||
613 | end | |
614 | ||
615 | end | |
616 | ||
617 | end | |
618 | ||
619 | elseif key == "g" then | |
620 | ||
621 | if bawl ~= nil then | |
622 | ||
623 | local x = Instance.new("Explosion",workspace) | |
624 | ||
625 | x.Position=bawl.Position | |
626 | ||
627 | else | |
628 | ||
629 | print('some sort of error') | |
630 | ||
631 | end | |
632 | ||
633 | elseif key == "x" then | |
634 | ||
635 | dist=dist - 5 | |
636 | ||
637 | elseif key == "c" then | |
638 | ||
639 | dist=15 | |
640 | ||
641 | elseif key == "v" then | |
642 | ||
643 | dist=100 | |
644 | ||
645 | elseif key == "z" then | |
646 | ||
647 | dist=dist + 5 | |
648 | ||
649 | end | |
650 | ||
651 | end | |
652 | ||
653 | FireX = 0 | |
654 | ||
655 | FireY = 0 | |
656 | ||
657 | FireZ = 0 | |
658 | ||
659 | SPX = 0 | |
660 | ||
661 | SPY = 0 | |
662 | ||
663 | SPZ = 0 | |
664 | ||
665 | BoxColor = "White" | |
666 | ||
667 | FireFalse.MouseButton1Down:connect(function () | |
668 | ||
669 | local Fire = Instance.new("Fire", bawl) | |
670 | Fire.Color = Color3.new(FireX,FireY,FireZ) | |
671 | ||
672 | Player.PlayerGui.ScreenGui.FireFalse.Visible = false | |
673 | ||
674 | Player.PlayerGui.ScreenGui.FireTrue.Visible = true | |
675 | ||
676 | Fire.Color = Color3.new(FireX,FireY,FireZ) | |
677 | ||
678 | end) | |
679 | ||
680 | FireTrue.MouseButton1Down:connect(function () | |
681 | ||
682 | bawl.Fire:remove() | |
683 | ||
684 | Player.PlayerGui.ScreenGui.FireFalse.Visible = true | |
685 | ||
686 | Player.PlayerGui.ScreenGui.FireTrue.Visible = false | |
687 | ||
688 | end) | |
689 | ||
690 | SparklesFalse.MouseButton1Down:connect(function () | |
691 | ||
692 | local SP = Instance.new("Sparkles", bawl) | |
693 | SP.Color = Color3.new(SPX,SPY,SPZ) | |
694 | ||
695 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false | |
696 | ||
697 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = true | |
698 | ||
699 | end) | |
700 | ||
701 | SparklesTrue.MouseButton1Down:connect(function () | |
702 | ||
703 | bawl.Sparkles:remove() | |
704 | ||
705 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true | |
706 | ||
707 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false | |
708 | ||
709 | end) | |
710 | ||
711 | BoxFalse.MouseButton1Down:connect(function () | |
712 | ||
713 | local Box = Instance.new("SelectionBox", bawl) | |
714 | Box.Color = BrickColor.new(BoxColor) | |
715 | Box.Adornee = Box.Parent | |
716 | ||
717 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = false | |
718 | ||
719 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = true | |
720 | ||
721 | end) | |
722 | ||
723 | BoxTrue.MouseButton1Down:connect(function () | |
724 | ||
725 | bawl.SelectionBox:remove() | |
726 | ||
727 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = true | |
728 | ||
729 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = false | |
730 | ||
731 | end) | |
732 | ||
733 | Blue.MouseButton1Down:connect(function () | |
734 | ||
735 | if bawl ~= nil then | |
736 | ||
737 | bawl.BrickColor = BrickColor.new("Bright blue") | |
738 | ||
739 | FireX = 0 | |
740 | FireY = 0 | |
741 | FireZ = 255 | |
742 | ||
743 | SPX = 0 | |
744 | SPY = 0 | |
745 | SPZ = 255 | |
746 | ||
747 | BoxColor = "Bright blue" | |
748 | ||
749 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,0,255) | |
750 | ||
751 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,0,255) | |
752 | ||
753 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright blue") | |
754 | ||
755 | end | |
756 | ||
757 | end) | |
758 | ||
759 | Red.MouseButton1Down:connect(function () | |
760 | ||
761 | if bawl ~= nil then | |
762 | ||
763 | bawl.BrickColor = BrickColor.new("Bright red") | |
764 | ||
765 | FireX = 255 | |
766 | FireY = 0 | |
767 | FireZ = 0 | |
768 | ||
769 | SPX = 255 | |
770 | SPY = 0 | |
771 | SPZ = 0 | |
772 | ||
773 | BoxColor = "Bright red" | |
774 | ||
775 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,0) | |
776 | ||
777 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,0) | |
778 | ||
779 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright red") | |
780 | ||
781 | end | |
782 | ||
783 | end) | |
784 | ||
785 | Green.MouseButton1Down:connect(function () | |
786 | ||
787 | if bawl ~= nil then | |
788 | ||
789 | bawl.BrickColor = BrickColor.new("Bright green") | |
790 | ||
791 | FireX = 0 | |
792 | FireY = 255 | |
793 | FireZ = 0 | |
794 | ||
795 | SPX = 0 | |
796 | SPY = 255 | |
797 | SPZ = 0 | |
798 | ||
799 | BoxColor = "Bright green" | |
800 | ||
801 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,0) | |
802 | ||
803 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,0) | |
804 | ||
805 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright green") | |
806 | ||
807 | end | |
808 | ||
809 | end) | |
810 | ||
811 | Yellow.MouseButton1Down:connect(function () | |
812 | ||
813 | if bawl ~= nil then | |
814 | ||
815 | bawl.BrickColor = BrickColor.new("New Yeller") | |
816 | ||
817 | FireX = 255 | |
818 | FireY = 255 | |
819 | FireZ = 0 | |
820 | ||
821 | SPX = 255 | |
822 | SPY = 255 | |
823 | SPZ = 0 | |
824 | ||
825 | BoxColor = "New Yeller" | |
826 | ||
827 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,0) | |
828 | ||
829 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,0) | |
830 | ||
831 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("New Yeller") | |
832 | ||
833 | end | |
834 | ||
835 | end) | |
836 | ||
837 | Pink.MouseButton1Down:connect(function () | |
838 | ||
839 | if bawl ~= nil then | |
840 | ||
841 | bawl.BrickColor = BrickColor.new("Hot pink") | |
842 | ||
843 | FireX = 255 | |
844 | FireY = 0 | |
845 | FireZ = 255 | |
846 | ||
847 | SPX = 255 | |
848 | SPY = 0 | |
849 | SPZ = 255 | |
850 | ||
851 | BoxColor = "Hot pink" | |
852 | ||
853 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,255) | |
854 | ||
855 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,255) | |
856 | ||
857 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Hot pink") | |
858 | ||
859 | end | |
860 | ||
861 | end) | |
862 | ||
863 | LightBlue.MouseButton1Down:connect(function () | |
864 | ||
865 | if bawl ~= nil then | |
866 | ||
867 | bawl.BrickColor = BrickColor.new("Cyan") | |
868 | ||
869 | FireX = 0 | |
870 | FireY = 255 | |
871 | FireZ = 255 | |
872 | ||
873 | SPX = 0 | |
874 | SPY = 255 | |
875 | SPZ = 255 | |
876 | ||
877 | BoxColor = "Cyan" | |
878 | ||
879 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,255) | |
880 | ||
881 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,255) | |
882 | ||
883 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Cyan") | |
884 | ||
885 | end | |
886 | ||
887 | end) | |
888 | ||
889 | ||
890 | White.MouseButton1Down:connect(function () | |
891 | ||
892 | if bawl ~= nil then | |
893 | ||
894 | bawl.BrickColor = BrickColor.new("White") | |
895 | ||
896 | FireX = 255 | |
897 | FireY = 255 | |
898 | FireZ = 255 | |
899 | ||
900 | SPX = 255 | |
901 | SPY = 255 | |
902 | SPZ = 255 | |
903 | ||
904 | BoxColor = "White" | |
905 | ||
906 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,255) | |
907 | ||
908 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,255) | |
909 | ||
910 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("White") | |
911 | ||
912 | end | |
913 | ||
914 | end) | |
915 | ||
916 | Bin.Selected:connect(function () | |
917 | ||
918 | Fire = false | |
919 | ||
920 | Player.PlayerGui.ScreenGui.Blue.Visible = true | |
921 | ||
922 | Player.PlayerGui.ScreenGui.Red.Visible = true | |
923 | ||
924 | Player.PlayerGui.ScreenGui.Green.Visible = true | |
925 | ||
926 | Player.PlayerGui.ScreenGui.Yellow.Visible = true | |
927 | ||
928 | Player.PlayerGui.ScreenGui.Pink.Visible = true | |
929 | ||
930 | Player.PlayerGui.ScreenGui.LightBlue.Visible = true | |
931 | ||
932 | Player.PlayerGui.ScreenGui.White.Visible = true | |
933 | ||
934 | Player.PlayerGui.ScreenGui.FireFalse.Visible = true | |
935 | ||
936 | Player.PlayerGui.ScreenGui.FireTrue.Visible = false | |
937 | ||
938 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true | |
939 | ||
940 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false | |
941 | ||
942 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = true | |
943 | ||
944 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = false | |
945 | ||
946 | end) | |
947 | ||
948 | Bin.Deselected:connect(function () | |
949 | ||
950 | Fire = false | |
951 | ||
952 | Player.PlayerGui.ScreenGui.Blue.Visible = false | |
953 | ||
954 | Player.PlayerGui.ScreenGui.Red.Visible = false | |
955 | ||
956 | Player.PlayerGui.ScreenGui.Green.Visible = false | |
957 | ||
958 | Player.PlayerGui.ScreenGui.Yellow.Visible = false | |
959 | ||
960 | Player.PlayerGui.ScreenGui.Pink.Visible = false | |
961 | ||
962 | Player.PlayerGui.ScreenGui.LightBlue.Visible = false | |
963 | ||
964 | Player.PlayerGui.ScreenGui.White.Visible = false | |
965 | ||
966 | Player.PlayerGui.ScreenGui.FireFalse.Visible = false | |
967 | ||
968 | Player.PlayerGui.ScreenGui.FireTrue.Visible = false | |
969 | ||
970 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false | |
971 | ||
972 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false | |
973 | ||
974 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = false | |
975 | ||
976 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = false | |
977 | ||
978 | end) | |
979 | ||
980 | Bin.Selected:connect(function(mouse) | |
981 | ||
982 | mouse.Button1Down:connect(function() onButton1Down(mouse) end) | |
983 | ||
984 | mouse.Button1Up:connect(function() onButton1Up(mouse) end) | |
985 | ||
986 | mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end) | |
987 | ||
988 | end) | |
989 | print 'Telek script has loaded, credit to Krystal and rocky2u' | |
990 | dot = false | |
991 | des = false | |
992 | local ChatService = game:GetService("Chat") | |
993 | local player = game.Players.LocalPlayer | |
994 | char = player.Character | |
995 | hum = char.Humanoid | |
996 | torso = hum.Torso | |
997 | lig = Instance.new("PointLight",player.Character.Torso) | |
998 | lig.Color=Color3.new(0,255,255) | |
999 | m=player:GetMouse() | |
1000 | bb = Instance.new("BillboardGui",player.Character.Head) | |
1001 | bb.Enabled = true | |
1002 | bb.AlwaysOnTop = true | |
1003 | bb.Size = UDim2.new(0,200,0,50) | |
1004 | bb.StudsOffset = Vector3.new(0,1,0) | |
1005 | gui=Instance.new("TextBox",bb) | |
1006 | gui.Text = "* " | |
1007 | gui.Size = UDim2.new(0,133,0,45) | |
1008 | gui.Position=UDim2.new(0,57,0,-40) | |
1009 | gui.TextColor3 = Color3.new(255,255,255) | |
1010 | gui.BackgroundColor3=Color3.new(0,0,0) | |
1011 | gui.TextWrapped = true | |
1012 | gui.TextScaled = true | |
1013 | gui.TextXAlignment = "Left" | |
1014 | gui.TextYAlignment = "Top" | |
1015 | gui.Visible = false | |
1016 | gui.BorderColor3 = Color3.new(0,0,0) | |
1017 | ||
1018 | gui1=Instance.new("TextButton",bb) | |
1019 | gui1.Position=UDim2.new(0,5,0,-43) | |
1020 | gui1.Size = UDim2.new(0,190,0,51) | |
1021 | ||
1022 | gui1.TextColor3 = Color3.new(255,255,255) | |
1023 | gui1.BackgroundColor3=Color3.new(255,255,255) | |
1024 | ||
1025 | gui1.Visible = false | |
1026 | img = Instance.new("ImageLabel",bb) | |
1027 | img.Size = UDim2.new(0,46,0,47) | |
1028 | img.Position = UDim2.new(0,10,0,-41) | |
1029 | img.Image = "rbxassetid://388166921" | |
1030 | img.BorderColor3 = Color3.new(0,0,0) | |
1031 | img.Visible = false | |
1032 | asd = Instance.new("Sound",player.Character.Torso) | |
1033 | asd.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
1034 | ||
1035 | asd1 = Instance.new("Sound",player.Character.Torso) | |
1036 | asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
1037 | ||
1038 | asd2 = Instance.new("Sound",player.Character.Torso) | |
1039 | asd2.SoundId = "http://www.roblox.com/asset/?id = 306370481" | |
1040 | asd2.Looped = true | |
1041 | asd3 = Instance.new("Sound",player.Character.Torso) | |
1042 | asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309" | |
1043 | asd3.Looped = true | |
1044 | asd4 = Instance.new("Sound",player.Character.Torso) | |
1045 | asd4.SoundId = "http://www.roblox.com/asset/?id = 366168126" | |
1046 | asd4.Looped = false | |
1047 | asd5 = Instance.new("Sound",player.Character.Torso) | |
1048 | asd5.SoundId = "http://www.roblox.com/asset/?id = 0" | |
1049 | asd5.Looped = true | |
1050 | dunkd = Instance.new("Sound",player.Character.Torso) | |
1051 | dunkd.SoundId = "http://www.roblox.com/asset/?id = 382893859" | |
1052 | dunkd.Looped = false | |
1053 | function play(play) | |
1054 | asd:Play() | |
1055 | asd1:Play() | |
1056 | end | |
1057 | eye = Instance.new("Part",player.Character) | |
1058 | eye.BrickColor = BrickColor.new("Toothpaste") | |
1059 | eye.Material = "Neon" | |
1060 | eye.FormFactor = 3 | |
1061 | eye.Shape = "Ball" | |
1062 | eye.Size = Vector3.new(0.37,0.37,0.1) | |
1063 | weld = Instance.new("Weld",eye) | |
1064 | weld.Part0 = eye | |
1065 | weld.Part1 = player.Character.Head | |
1066 | weld.C0 = CFrame.new(0.1,-0.2,0.45) | |
1067 | eye.Transparency = 1 | |
1068 | -- listen for their chatting | |
1069 | player.Chatted:connect(function(message) | |
1070 | a = string.len(message) | |
1071 | gui.Text = "* " | |
1072 | gui.Visible = true | |
1073 | gui1.Visible = true | |
1074 | des = false | |
1075 | img.Visible = true | |
1076 | print(a) | |
1077 | if dot == false then | |
1078 | for i = 1,string.len(message) do wait(0.07) | |
1079 | gui.Text =gui.Text..message:sub(i,i) | |
1080 | ||
1081 | play() | |
1082 | end | |
1083 | end | |
1084 | ||
1085 | des = true | |
1086 | end) | |
1087 | m.KeyDown:connect(function(k) | |
1088 | if k == "g" then | |
1089 | asd2:Play() | |
1090 | eye.Transparency = 0 | |
1091 | ||
1092 | end | |
1093 | end) | |
1094 | m.KeyDown:connect(function(k) | |
1095 | if k == "p" then | |
1096 | eye.Transparency = 1 | |
1097 | asd3:Play() | |
1098 | end | |
1099 | end) | |
1100 | m.KeyDown:connect(function(k) | |
1101 | if k == "r" then | |
1102 | eye.Transparency = 0 | |
1103 | asd4:Play() | |
1104 | end | |
1105 | end) | |
1106 | m.KeyDown:connect(function(k) | |
1107 | if k == "q" then | |
1108 | eye.Transparency = 1 | |
1109 | asd5:Play() | |
1110 | end | |
1111 | end) | |
1112 | m.KeyDown:connect(function(k) | |
1113 | if k == "z" then | |
1114 | ||
1115 | img.Image = "rbxassetid://414178632" | |
1116 | end | |
1117 | end) | |
1118 | m.KeyDown:connect(function(k) | |
1119 | if k == "c" then | |
1120 | img.Image = "rbxassetid://333660171" | |
1121 | end | |
1122 | end) | |
1123 | m.KeyDown:connect(function(k) | |
1124 | if k == "n" then | |
1125 | img.Image = "rbxassetid://309482690" | |
1126 | end | |
1127 | end) | |
1128 | m.KeyDown:connect(function(k) | |
1129 | if k == "b" then | |
1130 | img.Image = "rbxassetid://356477236" | |
1131 | end | |
1132 | end) | |
1133 | m.KeyDown:connect(function(k) | |
1134 | if k == "m" then | |
1135 | img.Image = "rbxassetid://392578302" | |
1136 | end | |
1137 | end) | |
1138 | m.KeyDown:connect(function(k) | |
1139 | if k == "v" then | |
1140 | img.Image = "rbxassetid://359052889" | |
1141 | end | |
1142 | end) | |
1143 | m.KeyDown:connect(function(k) | |
1144 | if k == "h" then | |
1145 | img.Image = "rbxassetid://339763092" | |
1146 | end | |
1147 | end) | |
1148 | m.KeyDown:connect(function(k) | |
1149 | if k == "j" then | |
1150 | img.Image = "rbxassetid://384795061" | |
1151 | end | |
1152 | end) | |
1153 | m.KeyDown:connect(function(k) | |
1154 | if k == "l" then | |
1155 | img.Image = "rbxassetid://378214121" | |
1156 | print("You take your very last breath...") | |
1157 | asdd = Instance.new("Sound",player.Character.Torso) | |
1158 | asdd.SoundId = "http://www.roblox.com/asset/?id = 357417055" | |
1159 | asdd.Looped = false | |
1160 | spawn(function() | |
1161 | wait() | |
1162 | asdd:Play() | |
1163 | end) | |
1164 | wait(2) | |
1165 | asddd = Instance.new("Sound",player.Character.Torso) | |
1166 | asddd.SoundId = "http://www.roblox.com/asset/?id = 387183672" | |
1167 | asddd.Looped = false | |
1168 | spawn(function() | |
1169 | wait() | |
1170 | asddd:Play() | |
1171 | end) | |
1172 | wait(2) | |
1173 | asdded = Instance.new("Sound",player.Character.Torso) | |
1174 | asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707" | |
1175 | asdded.Looped = false | |
1176 | spawn(function() | |
1177 | wait() | |
1178 | asdded:Play() | |
1179 | end) | |
1180 | char:BreakJoints() | |
1181 | end | |
1182 | end) | |
1183 | m.KeyDown:connect(function(k) | |
1184 | if k == "x" then | |
1185 | if des == true then | |
1186 | gui.Visible = false | |
1187 | gui.Text = "* " | |
1188 | gui1.Visible = false | |
1189 | img.Visible = false | |
1190 | end | |
1191 | end | |
1192 | end) | |
1193 | m.KeyDown:connect(function(k) | |
1194 | if k == "f" then | |
1195 | asd3:Stop() | |
1196 | asd2:Stop() | |
1197 | asd4:Stop() | |
1198 | dunkd:Stop() | |
1199 | eye.Transparency = 1 | |
1200 | asd5:Stop() | |
1201 | end | |
1202 | end) | |
1203 | m.KeyDown:connect(function(k) | |
1204 | if k == "u" then | |
1205 | dunkd = Instance.new("Sound",player.Character.Torso) | |
1206 | dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694" | |
1207 | dunkd.Looped = false | |
1208 | dunkd:Play() | |
1209 | end | |
1210 | end) | |
1211 | m.KeyDown:connect(function(k) | |
1212 | if k == "y" then | |
1213 | img.Image = "rbxassetid://378198656" | |
1214 | end | |
1215 | end) | |
1216 | -- my god... | |
1217 | -- Suck_HiyaThere moves to arizona | |
1218 | ||
1219 | -------------------------------------------------------- | |
1220 | ||
1221 | pls = game:GetService'Players' | |
1222 | rs = game:GetService'RunService' | |
1223 | uinps = game:GetService'UserInputService' | |
1224 | lp = pls.LocalPlayer | |
1225 | mouse = lp:GetMouse() | |
1226 | c = lp.Character | |
1227 | human = c.Humanoid | |
1228 | human.MaxHealth = 50000 | |
1229 | soundVol = 0 | |
1230 | wait() | |
1231 | human.Health = 50000 | |
1232 | c.Health:Destroy() | |
1233 | ||
1234 | -------------------------------------------------------- | |
1235 | ||
1236 | Debounces = { | |
1237 | AnimationCycles = 0; | |
1238 | FPS = 0; | |
1239 | scalingDamage = false; | |
1240 | damageLevel = 0; | |
1241 | attackNumber = 0; | |
1242 | isAttacking = false; | |
1243 | isMoving = false; | |
1244 | isSprinting = false; | |
1245 | isBoosting = false; | |
1246 | isPassive = false; | |
1247 | isTyping = false; | |
1248 | } | |
1249 | ||
1250 | -------------------------------------------------------- | |
1251 | ||
1252 | numLerp = function(start, goal, alpha) | |
1253 | return(((goal - start) * alpha) + start) | |
1254 | end | |
1255 | ||
1256 | CFrameZero = function() | |
1257 | return CFrame.new(Vector3.new()) | |
1258 | end | |
1259 | ||
1260 | rad = function(value) | |
1261 | return math.rad(value) | |
1262 | end | |
1263 | ||
1264 | CFAngles = function(Vector) | |
1265 | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) | |
1266 | end | |
1267 | ||
1268 | -------------------------------------------------------- | |
1269 | ||
1270 | AnimStat = { | |
1271 | lerpSpeed = .2; | |
1272 | lerpSpeed2 = .35; | |
1273 | lerpTween = 0; | |
1274 | } | |
1275 | ||
1276 | Joints = { | |
1277 | c.HumanoidRootPart.RootJoint; | |
1278 | c.Torso.Neck; | |
1279 | c.Torso['Left Shoulder']; | |
1280 | c.Torso['Right Shoulder']; | |
1281 | c.Torso['Left Hip']; | |
1282 | c.Torso['Right Hip']; | |
1283 | } | |
1284 | ||
1285 | JointTargets = { | |
1286 | CFrameZero(); | |
1287 | CFrameZero(); | |
1288 | CFrameZero(); | |
1289 | CFrameZero(); | |
1290 | CFrameZero(); | |
1291 | CFrameZero(); | |
1292 | } | |
1293 | ||
1294 | -------------------------------------------------------- | |
1295 | ||
1296 | BodyColors = { | |
1297 | HeadColor = BrickColor.new("Institutional white"); | |
1298 | LeftArmColor = BrickColor.new("Institutional white"); | |
1299 | RightArmColor = BrickColor.new("Institutional white"); | |
1300 | LeftLegColor = BrickColor.new("Institutional white"); | |
1301 | RightLegColor = BrickColor.new("Institutional white"); | |
1302 | TorsoColor = BrickColor.new("Mid gray"); | |
1303 | } | |
1304 | ||
1305 | Customs = { | |
1306 | Face = "http://www.roblox.com/asset/?id=382064533"; | |
1307 | Shirt = "http://www.roblox.com/asset/?id=380669878"; | |
1308 | Pants = "http://www.roblox.com/asset/?id=415270659"; | |
1309 | } | |
1310 | ||
1311 | -------------------------------------------------------- | |
1312 | ||
1313 | prepareCharacter = function() | |
1314 | local transPoints = { | |
1315 | NumberSequenceKeypoint.new(0,0,0), | |
1316 | NumberSequenceKeypoint.new(.4,.05,0), | |
1317 | NumberSequenceKeypoint.new(.8,.16,0), | |
1318 | NumberSequenceKeypoint.new(1,.25,0) | |
1319 | } | |
1320 | local sizePoints = { | |
1321 | NumberSequenceKeypoint.new(0,.5,0), | |
1322 | NumberSequenceKeypoint.new(.18,.5,0), | |
1323 | NumberSequenceKeypoint.new(.49,.69,0), | |
1324 | NumberSequenceKeypoint.new(.74,.5,0), | |
1325 | NumberSequenceKeypoint.new(.92,.25,0), | |
1326 | NumberSequenceKeypoint.new(1,.0625,0) | |
1327 | } | |
1328 | local Size = NumberSequence.new(sizePoints) | |
1329 | local Transparency = NumberSequence.new(transPoints) | |
1330 | rayModel = Instance.new("Model",c) | |
1331 | efxBlock = Instance.new("Part",c) | |
1332 | efxBlock.Material = "Neon" | |
1333 | efxBlock.FormFactor = "Custom" | |
1334 | efxBlock.Size = Vector3.new(.3,.3,.3) | |
1335 | light = Instance.new("PointLight",c.Head) | |
1336 | light.Range = 8 | |
1337 | light.Color = Color3.new(1,1,1) | |
1338 | light.Shadows = false | |
1339 | local particles = Instance.new("ParticleEmitter",efxBlock) | |
1340 | particles.Color = ColorSequence.new(Color3.new(.85,.85,.85),Color3.new(1,1,1)) | |
1341 | particles.ZOffset = 1 | |
1342 | particles.LightEmission = .96 | |
1343 | particles.Size = Size | |
1344 | particles.Name = "Fire" | |
1345 | particles.Transparency = Transparency | |
1346 | particles.LockedToPart = true | |
1347 | particles.Rate = 25 | |
1348 | particles.EmissionDirection = "Right" | |
1349 | particles.Acceleration = Vector3.new(-.5,0,0) | |
1350 | particles.Texture = "rbxassetid://24378732" | |
1351 | particles.Lifetime = NumberRange.new(.25,.25) | |
1352 | particles.Speed = NumberRange.new(-.5,5) | |
1353 | script.Parent = efxBlock | |
1354 | fire = particles | |
1355 | local offset = Vector3.new(0.2, .23, -0.5) | |
1356 | local weld = Instance.new("Weld",c.Head) | |
1357 | weld.Part0 = c.Head | |
1358 | weld.Part1 = efxBlock | |
1359 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
1360 | efxBlock.Parent = c | |
1361 | local music = Instance.new("Sound",c.Torso) | |
1362 | music.SoundId = "rbxassetid://316012176" | |
1363 | music.Looped = true | |
1364 | music.Volume = soundVol | |
1365 | fight = music | |
1366 | local music2 = Instance.new("Sound",c.Torso) | |
1367 | music2.SoundId = "rbxassetid://316014309" | |
1368 | music2.Looped = true | |
1369 | music2.Volume = soundVol | |
1370 | sans = music2 | |
1371 | pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart) | |
1372 | pointGyro.P = 1e7 | |
1373 | pointGyro.D = 1e3 | |
1374 | pointGyro.MaxTorque = Vector3.new(0,1e7,0) | |
1375 | animator = c.Humanoid:FindFirstChild("Animator") | |
1376 | if animator then | |
1377 | animator:Destroy() | |
1378 | end | |
1379 | c.Torso.roblox:Destroy() | |
1380 | for i,v in pairs (c.Head:children()) do | |
1381 | if v.ClassName == "Sound" then | |
1382 | v:Destroy() | |
1383 | end | |
1384 | end | |
1385 | for i = 1,#Joints do | |
1386 | Joints[i].C1 = CFrame.new(Vector3.new()) | |
1387 | end | |
1388 | human.WalkSpeed = 0 | |
1389 | human.JumpPower = 0 | |
1390 | end | |
1391 | ||
1392 | uinps.InputBegan:connect(function(InputObject) | |
1393 | if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then | |
1394 | Debounces.isPassive = not Debounces.isPassive | |
1395 | end | |
1396 | end) | |
1397 | ||
1398 | setJointCFrames = function(table) | |
1399 | for i = 1,#table do | |
1400 | JointTargets[i] = table[i] | |
1401 | end | |
1402 | AnimationCycles = 0 | |
1403 | end | |
1404 | ||
1405 | setLerp = function(speed) | |
1406 | AnimStat.lerpSpeed = speed | |
1407 | end | |
1408 | ||
1409 | setTween = function(tween) | |
1410 | AnimStat.lerpTween = tween | |
1411 | end | |
1412 | ||
1413 | takeDamage = function(position,damage,distance,platformStand) | |
1414 | for i,v in pairs (pls:children()) do | |
1415 | if v.ClassName == "Player" and v:FindFirstChild("Character") then | |
1416 | local torso = v.Character:FindFirstChild("Torso") | |
1417 | if torso and (torso.Position - position).magnitude < distance then | |
1418 | if v.Character.Humanoid.MaxHealth > 1000 then | |
1419 | v.Character.Humanoid.MaxHealth = 100; | |
1420 | v.Character.Humanoid.Breakjoints() | |
1421 | end | |
1422 | ||
1423 | ||
1424 | v.Character.Humanoid:TakeDamage(damage) | |
1425 | if platformStand == true then | |
1426 | v.Character.PlatformStand = platformStand | |
1427 | end | |
1428 | end | |
1429 | end | |
1430 | end | |
1431 | end | |
1432 | local plr = game:GetService("Players").LocalPlayer | |
1433 | local char = plr.Character | |
1434 | ||
1435 | function FindInTable(t, n) | |
1436 | for i,v in pairs(t) do | |
1437 | if v == n then | |
1438 | return true | |
1439 | end | |
1440 | end | |
1441 | return false | |
1442 | end | |
1443 | --Transformaaaaation-- | |
1444 | char["Left Arm"].BrickColor = BrickColor.new("Medium stone") | |
1445 | char["Right Arm"].BrickColor = BrickColor.new("Medium stone") | |
1446 | char.Head.BrickColor = BrickColor.new("Medium stone") | |
1447 | char["Left Leg"].BrickColor = BrickColor.new("Medium stone") | |
1448 | char["Right Leg"].BrickColor = BrickColor.new("Medium stone") | |
1449 | ||
1450 | for i,v in pairs(char:children'') do | |
1451 | local toremove = {"CharacterMesh", "Shirt", "Pants", "ShirtGraphic", "Accessory"} | |
1452 | if FindInTable(toremove, v.ClassName) then v:Destroy() end | |
1453 | if v.ClassName == "BodyColors" then | |
1454 | v.HeadColor = BrickColor.new("Really black") | |
1455 | v.LeftArmColor = BrickColor.new("Really black") | |
1456 | v.LeftLegColor = BrickColor.new("Really black") | |
1457 | v.RightArmColor = BrickColor.new("Really black") | |
1458 | v.RightLegColor = BrickColor.new("Really black") | |
1459 | v.TorsoColor = BrickColor.new("Really black") | |
1460 | end | |
1461 | end | |
1462 | wait(1) | |
1463 | plr = game.Players.LocalPlayer | |
1464 | char = plr.Character | |
1465 | mouse = plr:GetMouse() | |
1466 | whitecolor = Color3.new(1,1,1) | |
1467 | epicmode = false | |
1468 | normal = true | |
1469 | for i,v in pairs(char:GetChildren()) do | |
1470 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
1471 | v:Destroy() | |
1472 | end | |
1473 | end | |
1474 | local shirt = Instance.new("Shirt",char) | |
1475 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=535102167" | |
1476 | local pants = Instance.new("Pants",char) | |
1477 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=540008761" | |
1478 | local bdycolors = char["Body Colors"] | |
1479 | ||
1480 | for i,v in pairs(char:GetChildren()) do | |
1481 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
1482 | v:Destroy() | |
1483 | end | |
1484 | end | |
1485 | ||
1486 | -- Face | |
1487 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=543498118" | |
1488 | ||
1489 | -- Chat | |
1490 | local talksound = Instance.new("Sound",char.Torso) | |
1491 | talksound.SoundId = "rbxassetid://928210219" | |
1492 | talksound.Volume = 4 | |
1493 | local blastsound = Instance.new("Sound",char.Torso) | |
1494 | blastsound.Name = "blast_sound" | |
1495 | blastsound.SoundId = "rbxassetid://345052019" | |
1496 | blastsound.Volume = 4 | |
1497 | function swait(num) | |
1498 | if num==0 or num==nil then | |
1499 | game:service'RunService'.Stepped:wait(0) | |
1500 | else | |
1501 | for i=0,num do | |
1502 | game:service'RunService'.Stepped:wait(0) | |
1503 | end | |
1504 | end | |
1505 | end | |
1506 | ||
1507 | function chatfunc(text) | |
1508 | local chat = coroutine.wrap(function() | |
1509 | if char:FindFirstChild("TalkingBillBoard") ~= nil then | |
1510 | char:FindFirstChild("TalkingBillBoard"):Destroy() | |
1511 | end | |
1512 | local naeeym2 = Instance.new("BillboardGui",char) | |
1513 | naeeym2.Size = UDim2.new(0,100,0,40) | |
1514 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
1515 | naeeym2.Adornee = char.Head | |
1516 | naeeym2.Name = "TalkingBillBoard" | |
1517 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1518 | tecks2.BackgroundTransparency = 1 | |
1519 | tecks2.BorderSizePixel = 0 | |
1520 | tecks2.Text = "" | |
1521 | tecks2.Font = "Arcade" | |
1522 | tecks2.TextSize = 30 | |
1523 | tecks2.TextStrokeTransparency = 0 | |
1524 | tecks2.TextColor3 = Color3.new(255, 89, 89) | |
1525 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
1526 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1527 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
1528 | tecks3.BackgroundTransparency = 1 | |
1529 | tecks3.BorderSizePixel = 0 | |
1530 | tecks3.Text = "" | |
1531 | tecks3.Font = "Arcade" | |
1532 | tecks3.TextSize = 30 | |
1533 | tecks3.TextStrokeTransparency = 0 | |
1534 | tecks3.TextColor3 = Color3.new(0,0,0) | |
1535 | tecks3.TextStrokeColor3 = Color3.new(1,1,1) | |
1536 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
1537 | for i = 1,string.len(text),1 do | |
1538 | tecks2.Text = string.sub(text,1,i) | |
1539 | tecks3.Text = string.sub(text,1,i) | |
1540 | talksound:Play() | |
1541 | wait(0.01) | |
1542 | end | |
1543 | wait(2) | |
1544 | for i = 1, 50 do | |
1545 | swait() | |
1546 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1547 | tecks2.Rotation = tecks2.Rotation - .8 | |
1548 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
1549 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
1550 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1551 | tecks3.Rotation = tecks2.Rotation + .8 | |
1552 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
1553 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
1554 | end | |
1555 | naeeym2:Destroy() | |
1556 | end) | |
1557 | chat() | |
1558 | end | |
1559 | function onChatted(msg) | |
1560 | chatfunc(msg) | |
1561 | end | |
1562 | plr.Chatted:connect(onChatted) | |
1563 | wait(2) | |
1564 | chatfunc("Edited by Refrop") | |
1565 | wait(2) | |
1566 | chatfunc("What do we have here?") | |
1567 | wait(2) | |
1568 | chatfunc("Another AU...") | |
1569 | wait(2) | |
1570 | chatfunc("Code of this world is really trashy.") | |
1571 | wait(2) | |
1572 | chatfunc("I guess I am just gonna...") | |
1573 | wait(2) | |
1574 | chatfunc("END THIS WORLD") | |
1575 | wait(0.5) | |
1576 | char.Humanoid.Name = "Sans" | |
1577 | local music = Instance.new("Sound",char.Torso) | |
1578 | music.SoundId = "rbxassetid://377241339" | |
1579 | music.Volume = 30 | |
1580 | music.Looped = true | |
1581 | music:Play() | |
1582 | LeyeColor = BrickColor.new("Really red") | |
1583 | local eyemodel = Instance.new("Model",char) | |
1584 | eyemodel.Name = "Eyes" | |
1585 | local reye = Instance.new("Part",eyemodel) | |
1586 | reye.Name = "BurningEff" | |
1587 | reye.Color = Color3.new(1,1,1) | |
1588 | reye.Material = "Neon" | |
1589 | reye.Transparency = 1 | |
1590 | local reyemesh = Instance.new("SpecialMesh",reye) | |
1591 | reyemesh.MeshType = "Sphere" | |
1592 | reye.Size = Vector3.new(0.12, 0.37, 0.27) | |
1593 | local reyeweld = Instance.new("Weld",reye) | |
1594 | reyeweld.Part0 = reye | |
1595 | reyeweld.Part1 = char.Head | |
1596 | reyeweld.C0 = CFrame.new(-0.551300049, -0.19681406, -0.198293686, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1597 | local leye = Instance.new("Part",eyemodel) | |
1598 | leye.Name = "LeftEye" | |
1599 | leye.BrickColor = LeyeColor | |
1600 | leye.Material = "Neon" | |
1601 | leye.Size = Vector3.new(0.2,0.2,0.2) | |
1602 | local leyemesh = Instance.new("SpecialMesh",leye) | |
1603 | leyemesh.MeshType = "Sphere" | |
1604 | leyemesh.Scale = Vector3.new(0.7,1.1,0.7) | |
1605 | local leyeweld = Instance.new("Weld",leye) | |
1606 | leyeweld.Part0 = leye | |
1607 | leyeweld.Part1 = char.Head | |
1608 | leyeweld.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1609 | local leyeclone = leye:Clone() | |
1610 | leyeclone.Transparency = 1 | |
1611 | leyeclone.Name = "RightEye" | |
1612 | leyeclone.Parent = eyemodel | |
1613 | for i,v in pairs(leyeclone:GetChildren()) do | |
1614 | if v.ClassName == "Weld" then | |
1615 | v:Destroy() | |
1616 | end | |
1617 | end | |
1618 | local leyeweld2 = Instance.new("Weld",leyeclone) | |
1619 | leyeweld2.Part0 = leyeclone | |
1620 | leyeweld2.Part1 = char.Head | |
1621 | leyeweld2.C0 = CFrame.new(0.0864697844, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1622 | local fire = Instance.new("Fire",reye) | |
1623 | fire.Heat = 25000 | |
1624 | fire.Color = leye.BrickColor.Color | |
1625 | fire.Size = 2 | |
1626 | -- welds xd | |
1627 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
1628 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
1629 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
1630 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
1631 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
1632 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
1633 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
1634 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
1635 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
1636 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
1637 | for i = 0,1 ,0.03 do | |
1638 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.925931931, -0.0977840424, 0.974765539, 0.886040092, -0.463608712, -1.69641942e-06, 0.405292064, 0.774584651, 0.485548228, -0.225103036, -0.430215806, 0.87421),i) | |
1639 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.881086826, -0.201818228, 0.747067213, 0.882895231, 0.4695701, 1.00883415e-06, -0.397803098, 0.747956276, 0.531332433, 0.249497056, -0.469111204, 0.847163498),i) | |
1640 | game:GetService("RunService").RenderStepped:wait() | |
1641 | end | |
1642 | local slapsound = Instance.new("Sound",char.Torso) | |
1643 | slapsound.SoundId = "rbxassetid://511340819" | |
1644 | slapsound.Volume = 4 | |
1645 | -- Funcs | |
1646 | function Blast(AAA) | |
1647 | if AAA == "f" then | |
1648 | local chatmath = math.random(1,3) | |
1649 | if chatmath == 1 then | |
1650 | chatfunc("FIRE!") | |
1651 | end | |
1652 | if chatmath == 2 then | |
1653 | chatfunc("Do you have an ERROR in ur system?") | |
1654 | end | |
1655 | if chatmath == 3 then | |
1656 | chatfunc("help i have an error... wait...") | |
1657 | end | |
1658 | local gasterblaster = Instance.new("Part",char.Torso) | |
1659 | gasterblaster.Size = Vector3.new(7, 16, 4) | |
1660 | gasterblaster.CanCollide = false | |
1661 | local gasterblastermesh = Instance.new("FileMesh",gasterblaster) | |
1662 | gasterblastermesh.MeshId = "rbxassetid://431908407" | |
1663 | gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05) | |
1664 | local gasterblastertexture = Instance.new("Decal",gasterblaster) | |
1665 | gasterblastertexture.Face = "Back" | |
1666 | gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=451087762" | |
1667 | local weeld = Instance.new("Weld",gasterblaster) | |
1668 | weeld.Part0 = gasterblaster | |
1669 | weeld.Part1 = char.Torso | |
1670 | weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375) | |
1671 | blastsound:Play() | |
1672 | char.Head.Anchored = true | |
1673 | wait(1) | |
1674 | local blast = Instance.new("Part",gasterblaster) | |
1675 | blast.Size = Vector3.new(39.07, 16.36, 367.54) | |
1676 | blast.Transparency = 0.7 | |
1677 | blast.Material = "Neon" | |
1678 | blast.Color = Color3.new(255, 0, 0) | |
1679 | blast.CanCollide = true | |
1680 | local blastweld = Instance.new("Weld",blast) | |
1681 | blastweld.Part0 = blast | |
1682 | blastweld.Part1 = gasterblaster | |
1683 | blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1684 | blast.Touched:connect(function(part) | |
1685 | part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move | |
1686 | end) | |
1687 | wait(2) | |
1688 | char.Head.Anchored = false | |
1689 | blast:Destroy() | |
1690 | gasterblaster:Destroy() | |
1691 | end | |
1692 | end | |
1693 | mouse.KeyDown:connect(Blast) | |
1694 | ||
1695 | ||
1696 | function Death() | |
1697 | music:Stop() | |
1698 | local deadsound = Instance.new("Sound",char.Torso) | |
1699 | deadsound.SoundId = "rbxassetid://427025525" | |
1700 | deadsound.Volume = 4 | |
1701 | deadsound:Play() | |
1702 | for i,v in pairs(char:GetChildren()) do | |
1703 | if v.ClassName == "Part" then | |
1704 | v.Transparency = 1 | |
1705 | end | |
1706 | leye.Transparency = 1 | |
1707 | fire:Destroy() | |
1708 | char.Head.face.Transparency = 1 | |
1709 | end | |
1710 | end | |
1711 | char.Sans.Died:connect(Death) | |
1712 | ||
1713 | ||
1714 | function Transform(key) | |
1715 | if key == "t" then | |
1716 | music.SoundId = "rbxassetid://424026286" | |
1717 | music:Stop() | |
1718 | music:Play() | |
1719 | chatfunc("Bro, Let me show you my true power") | |
1720 | leyeclone.Transparency = 0 | |
1721 | local fire2 = Instance.new("Fire",leyeclone) | |
1722 | fire2.Heat = 25000 | |
1723 | fire2.Color = leye.BrickColor.Color | |
1724 | fire2.Size = 2 | |
1725 | end | |
1726 | end | |
1727 | mouse.KeyDown:connect(Transform) | |
1728 | ||
1729 | ||
1730 | function SLAP(key) | |
1731 | if key == "y" then | |
1732 | if normal and not epicmode then | |
1733 | for i = 0,1 , 0.05 do | |
1734 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50000024, 0.405028582, -0.494292736, 0.752350092, -0.658763528, -1.01652529e-06, 0.014031955, 0.0160269327, -0.999769807, 0.658614039, 0.752179325, 0.0213016756),i) | |
1735 | game:GetService("RunService").RenderStepped:wait() | |
1736 | end | |
1737 | local hurtbox = Instance.new("Part",char["Right Arm"]) | |
1738 | hurtbox.Name = "Hurtbox" | |
1739 | hurtbox.Size = Vector3.new(1, 0.23, 1) | |
1740 | hurtbox.Transparency = 1 | |
1741 | hurtbox.CanCollide = false | |
1742 | local hurtboxweld = Instance.new("Weld",hurtbox) | |
1743 | hurtboxweld.Part0 = hurtbox | |
1744 | hurtboxweld.Part1 = char["Right Arm"] | |
1745 | hurtboxweld.C0 = CFrame.new(0, 0.924999475, 3.09944153e-06, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) | |
1746 | wait(0.5) | |
1747 | for i = 0,1 , 0.05 do | |
1748 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50000024, 0.405025482, -0.494292736, 0.999977887, 0.0066490462, 2.196479e-05, -0.000119999582, 0.0213499293, -0.999768794, -0.00664799893, 0.999750018, 0.0213503242),i) | |
1749 | game:GetService("RunService").RenderStepped:wait() | |
1750 | end | |
1751 | function onTouched(brick) | |
1752 | local humanoid = brick.Parent:FindFirstChildOfClass("Humanoid") | |
1753 | if humanoid then | |
1754 | humanoid:Destroy() | |
1755 | slapsound:Play() | |
1756 | end | |
1757 | end | |
1758 | hurtbox.Touched:connect(onTouched) | |
1759 | wait(1) | |
1760 | hurtbox:Destroy() | |
1761 | for i = 0,1 , 0.03 do | |
1762 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.881086826, -0.201818228, 0.747067213, 0.882895231, 0.4695701, 1.00883415e-06, -0.397803098, 0.747956276, 0.531332433, 0.249497056, -0.469111204, 0.847163498),i) | |
1763 | game:GetService("RunService").RenderStepped:wait() | |
1764 | end | |
1765 | end | |
1766 | end | |
1767 | end | |
1768 | mouse.KeyDown:connect(SLAP) |