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 | warn("Hi This was edited by help of ImaPug3") | |
7 | local rp = RealPlayer | |
8 | script.Parent = rp.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent then | |
34 | for _,f in pairs(t.Functions) do | |
35 | f(...) | |
36 | end | |
37 | end | |
38 | end | |
39 | m.TrigEvent = te | |
40 | UIS.TrigEvent = te | |
41 | ||
42 | Event.OnServerEvent:Connect(function(plr,io) | |
43 | if plr~=rp then return end | |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | if not io.isMouse then | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
52 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
53 | end | |
54 | for _,t in pairs(CAS.Actions) do | |
55 | for _,k in pairs(t.Keys) do | |
56 | if k==io.KeyCode then | |
57 | t.Function(t.Name,io.UserInputState,io) | |
58 | end | |
59 | end | |
60 | end | |
61 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
62 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
63 | end | |
64 | end) | |
65 | Event.Parent = NLS([==[ | |
66 | local Player = game:GetService("Players").LocalPlayer | |
67 | local Event = script:WaitForChild("UserInput_Event") | |
68 | ||
69 | local Mouse = Player:GetMouse() | |
70 | local UIS = game:GetService("UserInputService") | |
71 | local input = function(io,a) | |
72 | if a then return end | |
73 | --Since InputObject is a client-side instance, we create and pass table instead | |
74 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
75 | end | |
76 | UIS.InputBegan:Connect(input) | |
77 | UIS.InputEnded:Connect(input) | |
78 | ||
79 | local h,t | |
80 | --Give the server mouse data 30 times every second, but only if the values changed | |
81 | --If player is not moving their mouse, client won't fire events | |
82 | while wait(1/30) do | |
83 | if h~=Mouse.Hit or t~=Mouse.Target then | |
84 | h,t=Mouse.Hit,Mouse.Target | |
85 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
86 | end | |
87 | end]==],Player.Character) | |
88 | ||
89 | ----Sandboxed game object that allows the usage of client-side methods and services | |
90 | --Real game object | |
91 | local _rg = game | |
92 | ||
93 | --Metatable for fake service | |
94 | local fsmt = { | |
95 | __index = function(self,k) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then | |
98 | return typeof(s[k])=="function" | |
99 | and function(_,...)return s[k](s,...)end or s[k] | |
100 | end | |
101 | end, | |
102 | __newindex = function(self,k,v) | |
103 | local s = rawget(self,"_RealService") | |
104 | if s then s[k]=v end | |
105 | end | |
106 | } | |
107 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
109 | return setmetatable(t,fsmt) | |
110 | end | |
111 | ||
112 | --Fake game object | |
113 | local g = { | |
114 | GetService = function(self,s) | |
115 | return rawget(self,s) or _rg:GetService(s) | |
116 | end, | |
117 | Players = FakeService({ | |
118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
119 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
122 | RunService = FakeService({ | |
123 | _btrs = {}, | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | } | |
133 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
134 | g.service = g.GetService | |
135 | FakeService(g,game) | |
136 | --Changing owner to fake player object to support owner:GetMouse() | |
137 | game,owner = g,g.Players.LocalPlayer | |
138 | end | |
139 | -- by Theamazingnater | |
140 | wait(1) | |
141 | plr = game.Players.LocalPlayer | |
142 | char = plr.Character | |
143 | mouse = plr:GetMouse() | |
144 | whitecolor = Color3.new(1,1,1) | |
145 | epicmode = false | |
146 | normal = true | |
147 | for i,v in pairs(char:GetChildren()) do | |
148 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
149 | v:Destroy() | |
150 | end | |
151 | end | |
152 | local shirt = Instance.new("Shirt",char) | |
153 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=767617750" | |
154 | local pants = Instance.new("Pants",char) | |
155 | - | pants.PantsTemplate = "http://www.roblox.com/asset/?id=807395920" |
155 | + | pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140" |
156 | local bdycolors = char["Body Colors"] | |
157 | bdycolors.HeadColor3 = whitecolor | |
158 | bdycolors.LeftArmColor3 = whitecolor | |
159 | bdycolors.LeftLegColor3 = whitecolor | |
160 | bdycolors.RightArmColor3 = whitecolor | |
161 | bdycolors.RightLegColor3 = whitecolor | |
162 | bdycolors.TorsoColor3 = whitecolor | |
163 | for i,v in pairs(char:GetChildren()) do | |
164 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
165 | v:Destroy() | |
166 | end | |
167 | end | |
168 | ||
169 | -- Face | |
170 | - | char.Head.face.Texture = "http://www.roblox.com/asset/?id=246064605" |
170 | + | char.Head.face.Texture = "http://www.roblox.com/asset/?id=1094702421" |
171 | ||
172 | -- Chat | |
173 | local talksound = Instance.new("Sound",char.Torso) | |
174 | talksound.SoundId = "rbxassetid://928210219" | |
175 | talksound.Volume = 4 | |
176 | local blastsound = Instance.new("Sound",char.Torso) | |
177 | blastsound.Name = "blast_sound" | |
178 | blastsound.SoundId = "rbxassetid://345052019" | |
179 | blastsound.Volume = 4 | |
180 | function swait(num) | |
181 | if num==0 or num==nil then | |
182 | game:service'RunService'.Stepped:wait(0) | |
183 | else | |
184 | for i=0,num do | |
185 | game:service'RunService'.Stepped:wait(0) | |
186 | end | |
187 | end | |
188 | end | |
189 | ||
190 | function chatfunc(text) | |
191 | local chat = coroutine.wrap(function() | |
192 | if char:FindFirstChild("TalkingBillBoard") ~= nil then | |
193 | char:FindFirstChild("TalkingBillBoard"):Destroy() | |
194 | end | |
195 | local naeeym2 = Instance.new("BillboardGui",char) | |
196 | naeeym2.Size = UDim2.new(0,100,0,40) | |
197 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
198 | naeeym2.Adornee = char.Head | |
199 | naeeym2.Name = "TalkingBillBoard" | |
200 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
201 | tecks2.BackgroundTransparency = 1 | |
202 | tecks2.BorderSizePixel = 0 | |
203 | tecks2.Text = "" | |
204 | tecks2.Font = "Fantasy" | |
205 | tecks2.TextSize = 30 | |
206 | tecks2.TextStrokeTransparency = 0 | |
207 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
208 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
209 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
210 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
211 | tecks3.BackgroundTransparency = 1 | |
212 | tecks3.BorderSizePixel = 0 | |
213 | tecks3.Text = "" | |
214 | tecks3.Font = "Fantasy" | |
215 | tecks3.TextSize = 30 | |
216 | tecks3.TextStrokeTransparency = 0 | |
217 | tecks3.TextColor3 = Color3.new(0,0,0) | |
218 | tecks3.TextStrokeColor3 = Color3.new(1,1,1) | |
219 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
220 | for i = 1,string.len(text),1 do | |
221 | tecks2.Text = string.sub(text,1,i) | |
222 | tecks3.Text = string.sub(text,1,i) | |
223 | talksound:Play() | |
224 | wait(0.01) | |
225 | end | |
226 | wait(2) | |
227 | for i = 1, 50 do | |
228 | swait() | |
229 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
230 | tecks2.Rotation = tecks2.Rotation - .8 | |
231 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
232 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
233 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
234 | tecks3.Rotation = tecks2.Rotation + .8 | |
235 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
236 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
237 | end | |
238 | naeeym2:Destroy() | |
239 | end) | |
240 | chat() | |
241 | end | |
242 | function onChatted(msg) | |
243 | chatfunc(msg) | |
244 | end | |
245 | plr.Chatted:connect(onChatted) | |
246 | wait(2) | |
247 | chatfunc("Made by 1x1x1x1IAMbck") | |
248 | wait(2) | |
249 | chatfunc("It's a beautiful day outside..") | |
250 | wait(2) | |
251 | chatfunc("Birds are singing..") | |
252 | wait(2) | |
253 | chatfunc("Flowers are blooming...") | |
254 | wait(2) | |
255 | chatfunc("On days like these... kids like you...") | |
256 | wait(2) | |
257 | chatfunc("Should be burning in hell.") | |
258 | wait(0.5) | |
259 | char.Humanoid.Name = "Sans" | |
260 | local music = Instance.new("Sound",char.Torso) | |
261 | music.SoundId = "rbxassetid://195517416" | |
262 | music.Volume = 4 | |
263 | music.Looped = true | |
264 | music:Play() | |
265 | LeyeColor = BrickColor.new("Bright red") | |
266 | local eyemodel = Instance.new("Model",char) | |
267 | eyemodel.Name = "Eyes" | |
268 | local reye = Instance.new("Part",eyemodel) | |
269 | reye.Name = "BurningEff" | |
270 | reye.Color = Color3.new(1,1,1) | |
271 | reye.Material = "Neon" | |
272 | reye.Transparency = 1 | |
273 | local reyemesh = Instance.new("SpecialMesh",reye) | |
274 | reyemesh.MeshType = "Sphere" | |
275 | reye.Size = Vector3.new(0.12, 0.37, 0.27) | |
276 | local reyeweld = Instance.new("Weld",reye) | |
277 | reyeweld.Part0 = reye | |
278 | reyeweld.Part1 = char.Head | |
279 | reyeweld.C0 = CFrame.new(-0.551300049, -0.19681406, -0.198293686, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
280 | local leye = Instance.new("Part",eyemodel) | |
281 | leye.Name = "LeftEye" | |
282 | leye.BrickColor = LeyeColor | |
283 | leye.Material = "Neon" | |
284 | leye.Size = Vector3.new(0.2,0.2,0.2) | |
285 | local leyemesh = Instance.new("SpecialMesh",leye) | |
286 | leyemesh.MeshType = "Sphere" | |
287 | leyemesh.Scale = Vector3.new(0.7,1.1,0.7) | |
288 | local leyeweld = Instance.new("Weld",leye) | |
289 | leyeweld.Part0 = leye | |
290 | leyeweld.Part1 = char.Head | |
291 | leyeweld.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
292 | local leyeclone = leye:Clone() | |
293 | leyeclone.Transparency = 1 | |
294 | leyeclone.Name = "RightEye" | |
295 | leyeclone.Parent = eyemodel | |
296 | for i,v in pairs(leyeclone:GetChildren()) do | |
297 | if v.ClassName == "Weld" then | |
298 | v:Destroy() | |
299 | end | |
300 | end | |
301 | local leyeweld2 = Instance.new("Weld",leyeclone) | |
302 | leyeweld2.Part0 = leyeclone | |
303 | leyeweld2.Part1 = char.Head | |
304 | leyeweld2.C0 = CFrame.new(0.0864697844, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
305 | local fire = Instance.new("Fire",reye) | |
306 | fire.Heat = 25000 | |
307 | fire.Color = leye.BrickColor.Color | |
308 | fire.Size = 2 | |
309 | -- welds xd | |
310 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
311 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
312 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
313 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
314 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
315 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
316 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
317 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
318 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
319 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
320 | for i = 0,1 ,0.03 do | |
321 | 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) | |
322 | 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) | |
323 | game:GetService("RunService").RenderStepped:wait() | |
324 | end | |
325 | local slapsound = Instance.new("Sound",char.Torso) | |
326 | slapsound.SoundId = "rbxassetid://511340819" | |
327 | slapsound.Volume = 4 | |
328 | -- Funcs | |
329 | function Blast(AAA) | |
330 | if AAA == "f" then | |
331 | local chatmath = math.random(1,3) | |
332 | if chatmath == 1 then | |
333 | chatfunc("Gaster Blaster!") | |
334 | end | |
335 | if chatmath == 2 then | |
336 | chatfunc("Just Give Up Already!") | |
337 | end | |
338 | if chatmath == 3 then | |
339 | chatfunc("Look, I gave up trying to go back a long time ago.") | |
340 | end | |
341 | local gasterblaster = Instance.new("Part",char.Torso) | |
342 | gasterblaster.Size = Vector3.new(7, 16, 4) | |
343 | gasterblaster.CanCollide = false | |
344 | local gasterblastermesh = Instance.new("FileMesh",gasterblaster) | |
345 | gasterblastermesh.MeshId = "rbxassetid://431908407" | |
346 | gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05) | |
347 | local gasterblastertexture = Instance.new("Decal",gasterblaster) | |
348 | gasterblastertexture.Face = "Back" | |
349 | gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828" | |
350 | local weeld = Instance.new("Weld",gasterblaster) | |
351 | weeld.Part0 = gasterblaster | |
352 | weeld.Part1 = char.Torso | |
353 | weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375) | |
354 | blastsound:Play() | |
355 | char.Head.Anchored = true | |
356 | wait(1) | |
357 | local blast = Instance.new("Part",gasterblaster) | |
358 | blast.Size = Vector3.new(18.07, 16.36, 73.54) | |
359 | blast.Transparency = 0.7 | |
360 | blast.Material = "Neon" | |
361 | blast.Color = Color3.new(1,1,1) | |
362 | blast.CanCollide = true | |
363 | local blastweld = Instance.new("Weld",blast) | |
364 | blastweld.Part0 = blast | |
365 | blastweld.Part1 = gasterblaster | |
366 | blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
367 | blast.Touched:connect(function(part) | |
368 | part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move | |
369 | end) | |
370 | wait(2) | |
371 | char.Head.Anchored = false | |
372 | blast:Destroy() | |
373 | gasterblaster:Destroy() | |
374 | end | |
375 | end | |
376 | mouse.KeyDown:connect(Blast) | |
377 | ||
378 | ||
379 | function Death() | |
380 | music:Stop() | |
381 | local deadsound = Instance.new("Sound",char.Torso) | |
382 | deadsound.SoundId = "rbxassetid://427025525" | |
383 | deadsound.Volume = 4 | |
384 | deadsound:Play() | |
385 | for i,v in pairs(char:GetChildren()) do | |
386 | if v.ClassName == "Part" then | |
387 | v.Transparency = 1 | |
388 | end | |
389 | leye.Transparency = 1 | |
390 | fire:Destroy() | |
391 | char.Head.face.Transparency = 1 | |
392 | end | |
393 | end | |
394 | char.Sans.Died:connect(Death) | |
395 | ||
396 | ||
397 | function Transform(key) | |
398 | if key == "t" then | |
399 | music.SoundId = "rbxassetid://860704015" | |
400 | music:Stop() | |
401 | music:Play() | |
402 | chatfunc("Hehe, forgetting something?") | |
403 | leyeclone.Transparency = 0 | |
404 | local fire2 = Instance.new("Fire",leyeclone) | |
405 | fire2.Heat = 25000 | |
406 | fire2.Color = leye.BrickColor.Color | |
407 | fire2.Size = 2 | |
408 | end | |
409 | end | |
410 | mouse.KeyDown:connect(Transform) | |
411 | ||
412 | ||
413 | function SLAP(key) | |
414 | if key == "y" then | |
415 | if normal and not epicmode then | |
416 | for i = 0,1 , 0.05 do | |
417 | 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) | |
418 | game:GetService("RunService").RenderStepped:wait() | |
419 | end | |
420 | local hurtbox = Instance.new("Part",char["Right Arm"]) | |
421 | hurtbox.Name = "Hurtbox" | |
422 | hurtbox.Size = Vector3.new(1, 0.23, 1) | |
423 | hurtbox.Transparency = 1 | |
424 | hurtbox.CanCollide = false | |
425 | local hurtboxweld = Instance.new("Weld",hurtbox) | |
426 | hurtboxweld.Part0 = hurtbox | |
427 | hurtboxweld.Part1 = char["Right Arm"] | |
428 | hurtboxweld.C0 = CFrame.new(0, 0.924999475, 3.09944153e-06, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) | |
429 | wait(0.5) | |
430 | for i = 0,1 , 0.05 do | |
431 | 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) | |
432 | game:GetService("RunService").RenderStepped:wait() | |
433 | end | |
434 | function onTouched(brick) | |
435 | local humanoid = brick.Parent:FindFirstChildOfClass("Humanoid") | |
436 | if humanoid then | |
437 | humanoid:Destroy() | |
438 | slapsound:Play() | |
439 | end | |
440 | end | |
441 | hurtbox.Touched:connect(onTouched) | |
442 | wait(1) | |
443 | hurtbox:Destroy() | |
444 | for i = 0,1 , 0.03 do | |
445 | 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) | |
446 | game:GetService("RunService").RenderStepped:wait() | |
447 | end | |
448 | end | |
449 | end | |
450 | end | |
451 | mouse.KeyDown:connect(SLAP) |