vallentganteng

glitchtale sans

Apr 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.71 KB | None | 0 0
  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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6.  
  7. -- by Theamazingnater
  8. wait(1)
  9. plr = game.Players.LocalPlayer
  10. char = plr.Character
  11. mouse = plr:GetMouse()
  12. whitecolor = Color3.new(1,1,1)
  13. epicmode = false
  14. normal = true
  15. for i,v in pairs(char:GetChildren()) do
  16. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  17. v:Destroy()
  18. end
  19. end
  20. local shirt = Instance.new("Shirt",char)
  21. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=302011210"
  22. local pants = Instance.new("Pants",char)
  23. pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140"
  24. local bdycolors = char["Body Colors"]
  25. bdycolors.HeadColor3 = whitecolor
  26. bdycolors.LeftArmColor3 = whitecolor
  27. bdycolors.LeftLegColor3 = whitecolor
  28. bdycolors.RightArmColor3 = whitecolor
  29. bdycolors.RightLegColor3 = whitecolor
  30. bdycolors.TorsoColor3 = whitecolor
  31. for i,v in pairs(char:GetChildren()) do
  32. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  33. v:Destroy()
  34. end
  35. end
  36.  
  37. -- Face
  38. char.Head.face.Texture = "http://www.roblox.com/asset/?id=246064605"
  39.  
  40. -- Chat
  41. local talksound = Instance.new("Sound",char.Torso)
  42. talksound.SoundId = "rbxassetid://928210219"
  43. talksound.Volume = 4
  44. local blastsound = Instance.new("Sound",char.Torso)
  45. blastsound.Name = "blast_sound"
  46. blastsound.SoundId = "rbxassetid://345052019"
  47. blastsound.Volume = 4
  48. function swait(num)
  49. if num==0 or num==nil then
  50. game:service'RunService'.Stepped:wait(0)
  51. else
  52. for i=0,num do
  53. game:service'RunService'.Stepped:wait(0)
  54. end
  55. end
  56. end
  57.  
  58. function chatfunc(text)
  59. local chat = coroutine.wrap(function()
  60. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  61. char:FindFirstChild("TalkingBillBoard"):Destroy()
  62. end
  63. local naeeym2 = Instance.new("BillboardGui",char)
  64. naeeym2.Size = UDim2.new(0,100,0,40)
  65. naeeym2.StudsOffset = Vector3.new(0,3,0)
  66. naeeym2.Adornee = char.Head
  67. naeeym2.Name = "TalkingBillBoard"
  68. local tecks2 = Instance.new("TextLabel",naeeym2)
  69. tecks2.BackgroundTransparency = 1
  70. tecks2.BorderSizePixel = 0
  71. tecks2.Text = ""
  72. tecks2.Font = "Fantasy"
  73. tecks2.TextSize = 30
  74. tecks2.TextStrokeTransparency = 0
  75. tecks2.TextColor3 = Color3.new(.6,0,0)
  76. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  77. tecks2.Size = UDim2.new(1,0,0.5,0)
  78. local tecks3 = Instance.new("TextLabel",naeeym2)
  79. tecks3.BackgroundTransparency = 1
  80. tecks3.BorderSizePixel = 0
  81. tecks3.Text = ""
  82. tecks3.Font = "Fantasy"
  83. tecks3.TextSize = 30
  84. tecks3.TextStrokeTransparency = 0
  85. tecks3.TextColor3 = Color3.new(0,0,0)
  86. tecks3.TextStrokeColor3 = Color3.new(1,1,1)
  87. tecks3.Size = UDim2.new(1,0,0.5,0)
  88. for i = 1,string.len(text),1 do
  89. tecks2.Text = string.sub(text,1,i)
  90. tecks3.Text = string.sub(text,1,i)
  91. talksound:Play()
  92. wait(0.01)
  93. end
  94. wait(2)
  95. for i = 1, 50 do
  96. swait()
  97. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  98. tecks2.Rotation = tecks2.Rotation - .8
  99. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  100. tecks2.TextTransparency = tecks2.TextTransparency + .04
  101. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  102. tecks3.Rotation = tecks2.Rotation + .8
  103. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  104. tecks3.TextTransparency = tecks2.TextTransparency + .04
  105. end
  106. naeeym2:Destroy()
  107. end)
  108. chat()
  109. end
  110. function onChatted(msg)
  111. chatfunc(msg)
  112. end
  113. plr.Chatted:connect(onChatted)
  114. wait(2)
  115. chatfunc("Player like you....")
  116. wait(2)
  117. chatfunc("Should be erased in the core")
  118. wait(2)
  119. char.Humanoid.Name = "Sans"
  120. local music = Instance.new("Sound",char.Torso)
  121. music.SoundId = "rbxassetid://2736272477"
  122. music.Volume = 4
  123. music.Looped = true
  124. music:Play()
  125. LeyeColor = BrickColor.new("Toothpaste")
  126. local eyemodel = Instance.new("Model",char)
  127. eyemodel.Name = "Eyes"
  128. local reye = Instance.new("Part",eyemodel)
  129. reye.Name = "BurningEff"
  130. reye.Color = Color3.new(1,1,1)
  131. reye.Material = "Neon"
  132. reye.Transparency = 1
  133. local reyemesh = Instance.new("SpecialMesh",reye)
  134. reyemesh.MeshType = "Sphere"
  135. reye.Size = Vector3.new(0.12, 0.37, 0.27)
  136. local reyeweld = Instance.new("Weld",reye)
  137. reyeweld.Part0 = reye
  138. reyeweld.Part1 = char.Head
  139. reyeweld.C0 = CFrame.new(-0.551300049, -0.19681406, -0.198293686, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  140. local leye = Instance.new("Part",eyemodel)
  141. leye.Name = "LeftEye"
  142. leye.BrickColor = LeyeColor
  143. leye.Material = "Neon"
  144. leye.Size = Vector3.new(0.2,0.2,0.2)
  145. local leyemesh = Instance.new("SpecialMesh",leye)
  146. leyemesh.MeshType = "Sphere"
  147. leyemesh.Scale = Vector3.new(0.7,1.1,0.7)
  148. local leyeweld = Instance.new("Weld",leye)
  149. leyeweld.Part0 = leye
  150. leyeweld.Part1 = char.Head
  151. leyeweld.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  152. local leyeclone = leye:Clone()
  153. leyeclone.Transparency = 1
  154. leyeclone.Name = "RightEye"
  155. leyeclone.Parent = eyemodel
  156. for i,v in pairs(leyeclone:GetChildren()) do
  157. if v.ClassName == "Weld" then
  158. v:Destroy()
  159. end
  160. end
  161. local leyeweld2 = Instance.new("Weld",leyeclone)
  162. leyeweld2.Part0 = leyeclone
  163. leyeweld2.Part1 = char.Head
  164. leyeweld2.C0 = CFrame.new(0.0864697844, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  165. -- welds xd
  166. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  167. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  168. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  169. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  170. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  171. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  172. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  173. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  174. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  175. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  176. for i = 0,1 ,0.03 do
  177. 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)
  178. 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)
  179. game:GetService("RunService").RenderStepped:wait()
  180. end
  181. local slapsound = Instance.new("Sound",char.Torso)
  182. slapsound.SoundId = "rbxassetid://511340819"
  183. slapsound.Volume = 4
  184. -- Funcs
  185. function Blast(AAA)
  186. if AAA == "f" then
  187. local chatmath = math.random(1,3)
  188. if chatmath == 1 then
  189. chatfunc("Gaster Blaster!")
  190. end
  191. if chatmath == 2 then
  192. chatfunc("This is what you get for killing everybody.")
  193. end
  194. if chatmath == 3 then
  195. chatfunc("Look, I gave up trying to go back a long time ago.")
  196. end
  197. local gasterblaster = Instance.new("Part",char.Torso)
  198. gasterblaster.Size = Vector3.new(7, 16, 4)
  199. gasterblaster.CanCollide = false
  200. local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
  201. gasterblastermesh.MeshId = "rbxassetid://431908407"
  202. gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
  203. local gasterblastertexture = Instance.new("Decal",gasterblaster)
  204. gasterblastertexture.Face = "Back"
  205. gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
  206. local weeld = Instance.new("Weld",gasterblaster)
  207. weeld.Part0 = gasterblaster
  208. weeld.Part1 = char.Torso
  209. weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
  210. blastsound:Play()
  211. char.Head.Anchored = true
  212. wait(1)
  213. local blast = Instance.new("Part",gasterblaster)
  214. blast.Size = Vector3.new(18.07, 16.36, 73.54)
  215. blast.Transparency = 0.7
  216. blast.Material = "Neon"
  217. blast.Color = Color3.new(1,1,1)
  218. blast.CanCollide = true
  219. local blastweld = Instance.new("Weld",blast)
  220. blastweld.Part0 = blast
  221. blastweld.Part1 = gasterblaster
  222. blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  223. blast.Touched:connect(function(part)
  224. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
  225. end)
  226. wait(2)
  227. char.Head.Anchored = false
  228. blast:Destroy()
  229. gasterblaster:Destroy()
  230. end
  231. end
  232. mouse.KeyDown:connect(Blast)
  233.  
  234.  
  235. function Death()
  236. music:Stop()
  237. local deadsound = Instance.new("Sound",char.Torso)
  238. deadsound.SoundId = "rbxassetid://427025525"
  239. deadsound.Volume = 4
  240. deadsound:Play()
  241. for i,v in pairs(char:GetChildren()) do
  242. if v.ClassName == "Part" then
  243. v.Transparency = 1
  244. end
  245. leye.Transparency = 1
  246. fire:Destroy()
  247. char.Head.face.Transparency = 1
  248. end
  249. end
  250. char.Sans.Died:connect(Death)
  251.  
  252.  
  253. function Transform(key)
  254. if key == "m" then
  255. music.SoundId = "rbxassetid://1384229312"
  256. music:Stop()
  257. music:Play()
  258. chatfunc("Heh, forgot to play this...")
  259. leyeclone.Transparency = 0
  260. end
  261. end
  262. mouse.KeyDown:connect(Transform)
  263.  
  264.  
  265. function SLAP(key)
  266. if key == "y" then
  267. if normal and not epicmode then
  268. for i = 0,1 , 0.05 do
  269. 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)
  270. game:GetService("RunService").RenderStepped:wait()
  271. end
  272. local hurtbox = Instance.new("Part",char["Right Arm"])
  273. hurtbox.Name = "Hurtbox"
  274. hurtbox.Size = Vector3.new(1, 0.23, 1)
  275. hurtbox.Transparency = 1
  276. hurtbox.CanCollide = false
  277. local hurtboxweld = Instance.new("Weld",hurtbox)
  278. hurtboxweld.Part0 = hurtbox
  279. hurtboxweld.Part1 = char["Right Arm"]
  280. hurtboxweld.C0 = CFrame.new(0, 0.924999475, 3.09944153e-06, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024)
  281. wait(0.5)
  282. for i = 0,1 , 0.05 do
  283. 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)
  284. game:GetService("RunService").RenderStepped:wait()
  285. end
  286. function onTouched(brick)
  287. local humanoid = brick.Parent:FindFirstChildOfClass("Humanoid")
  288. if humanoid then
  289. humanoid:Destroy()
  290. slapsound:Play()
  291. end
  292. end
  293. hurtbox.Touched:connect(onTouched)
  294. wait(1)
  295. hurtbox:Destroy()
  296. for i = 0,1 , 0.03 do
  297. 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)
  298. game:GetService("RunService").RenderStepped:wait()
  299. end
  300. end
  301. end
  302. end
  303. mouse.KeyDown:connect(SLAP)
Add Comment
Please, Sign In to add comment