Advertisement
Basykung7845

sans

May 24th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.53 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Basykung7845")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. wait(1)
  85. plr = owner
  86. char = plr.Character
  87. whitecolor = Color3.new(1,1,1)
  88. epicmode = false
  89. normal = true
  90. for i,v in pairs(char:GetChildren()) do
  91. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  92. v:Destroy()
  93. end
  94. end
  95. local shirt = Instance.new("Shirt",char)
  96. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=302011210"
  97. local pants = Instance.new("Pants",char)
  98. pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140"
  99. local bdycolors = char["Body Colors"]
  100. bdycolors.HeadColor3 = whitecolor
  101. bdycolors.LeftArmColor3 = whitecolor
  102. bdycolors.LeftLegColor3 = whitecolor
  103. bdycolors.RightArmColor3 = whitecolor
  104. bdycolors.RightLegColor3 = whitecolor
  105. bdycolors.TorsoColor3 = whitecolor
  106. for i,v in pairs(char:GetChildren()) do
  107. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  108. v:Destroy()
  109. end
  110. end
  111.  
  112. -- Face
  113. char.Head.face.Texture = "http://www.roblox.com/asset/?id=246064605"
  114.  
  115. -- Chat
  116. local talksound = Instance.new("Sound",char.Torso)
  117. talksound.SoundId = "rbxassetid://928210219"
  118. talksound.Volume = 4
  119. local blastsound = Instance.new("Sound",char.Torso)
  120. blastsound.Name = "blast_sound"
  121. blastsound.SoundId = "rbxassetid://345052019"
  122. blastsound.Volume = 4
  123. function swait(num)
  124. if num==0 or num==nil then
  125. game:service'RunService'.Stepped:wait(0)
  126. else
  127. for i=0,num do
  128. game:service'RunService'.Stepped:wait(0)
  129. end
  130. end
  131. end
  132.  
  133. function chatfunc(text)
  134. local chat = coroutine.wrap(function()
  135. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  136. char:FindFirstChild("TalkingBillBoard"):Destroy()
  137. end
  138. local naeeym2 = Instance.new("BillboardGui",char)
  139. naeeym2.Size = UDim2.new(0,100,0,40)
  140. naeeym2.StudsOffset = Vector3.new(0,3,0)
  141. naeeym2.Adornee = char.Head
  142. naeeym2.Name = "TalkingBillBoard"
  143. local tecks2 = Instance.new("TextLabel",naeeym2)
  144. tecks2.BackgroundTransparency = 1
  145. tecks2.BorderSizePixel = 0
  146. tecks2.Text = ""
  147. tecks2.Font = "Fantasy"
  148. tecks2.TextSize = 30
  149. tecks2.TextStrokeTransparency = 0
  150. tecks2.TextColor3 = Color3.new(.6,0,0)
  151. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  152. tecks2.Size = UDim2.new(1,0,0.5,0)
  153. local tecks3 = Instance.new("TextLabel",naeeym2)
  154. tecks3.BackgroundTransparency = 1
  155. tecks3.BorderSizePixel = 0
  156. tecks3.Text = ""
  157. tecks3.Font = "Fantasy"
  158. tecks3.TextSize = 30
  159. tecks3.TextStrokeTransparency = 0
  160. tecks3.TextColor3 = Color3.new(0,0,0)
  161. tecks3.TextStrokeColor3 = Color3.new(1,1,1)
  162. tecks3.Size = UDim2.new(1,0,0.5,0)
  163. for i = 1,string.len(text),1 do
  164. tecks2.Text = string.sub(text,1,i)
  165. tecks3.Text = string.sub(text,1,i)
  166. talksound:Play()
  167. wait(0.01)
  168. end
  169. wait(2)
  170. for i = 1, 50 do
  171. swait()
  172. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  173. tecks2.Rotation = tecks2.Rotation - .8
  174. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  175. tecks2.TextTransparency = tecks2.TextTransparency + .04
  176. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  177. tecks3.Rotation = tecks2.Rotation + .8
  178. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  179. tecks3.TextTransparency = tecks2.TextTransparency + .04
  180. end
  181. naeeym2:Destroy()
  182. end)
  183. chat()
  184. end
  185. function onChatted(msg)
  186. chatfunc(msg)
  187. end
  188. plr.Chatted:connect(onChatted)
  189. wait(2)
  190. chatfunc("Made by 1x1x1x1IAMbck")
  191. wait(2)
  192. chatfunc("It's a beautiful day outside..")
  193. wait(2)
  194. chatfunc("Birds are singing..")
  195. wait(2)
  196. chatfunc("Flowers are blooming...")
  197. wait(2)
  198. chatfunc("On days like these... kids like you...")
  199. wait(2)
  200. chatfunc("Should be burning in hell.")
  201. wait(0.5)
  202. char.Humanoid.Name = "Sans"
  203. local music = Instance.new("Sound",char.Torso)
  204. music.SoundId = "rbxassetid://304114750"
  205. music.Volume = 4
  206. music.Looped = true
  207. music:Play()
  208. LeyeColor = BrickColor.new("Toothpaste")
  209. local eyemodel = Instance.new("Model",char)
  210. eyemodel.Name = "Eyes"
  211. local reye = Instance.new("Part",eyemodel)
  212. reye.Name = "BurningEff"
  213. reye.Color = Color3.new(1,1,1)
  214. reye.Material = "Neon"
  215. reye.Transparency = 1
  216. local reyemesh = Instance.new("SpecialMesh",reye)
  217. reyemesh.MeshType = "Sphere"
  218. reye.Size = Vector3.new(0.12, 0.37, 0.27)
  219. local reyeweld = Instance.new("Weld",reye)
  220. reyeweld.Part0 = reye
  221. reyeweld.Part1 = char.Head
  222. reyeweld.C0 = CFrame.new(-0.551300049, -0.19681406, -0.198293686, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  223. local leye = Instance.new("Part",eyemodel)
  224. leye.Name = "LeftEye"
  225. leye.BrickColor = LeyeColor
  226. leye.Material = "Neon"
  227. leye.Size = Vector3.new(0.2,0.2,0.2)
  228. local leyemesh = Instance.new("SpecialMesh",leye)
  229. leyemesh.MeshType = "Sphere"
  230. leyemesh.Scale = Vector3.new(0.7,1.1,0.7)
  231. local leyeweld = Instance.new("Weld",leye)
  232. leyeweld.Part0 = leye
  233. leyeweld.Part1 = char.Head
  234. leyeweld.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  235. local leyeclone = leye:Clone()
  236. leyeclone.Transparency = 1
  237. leyeclone.Name = "RightEye"
  238. leyeclone.Parent = eyemodel
  239. for i,v in pairs(leyeclone:GetChildren()) do
  240. if v.ClassName == "Weld" then
  241. v:Destroy()
  242. end
  243. end
  244. local slapsound = Instance.new("Sound",char.Torso)
  245. slapsound.SoundId = "rbxassetid://511340819"
  246. slapsound.Volume = 4
  247. -- Funcs
  248. function Blast(AAA)
  249. if AAA == "f" then
  250. local chatmath = math.random(1,3)
  251. if chatmath == 1 then
  252. chatfunc("Gaster Blaster!")
  253. end
  254. if chatmath == 2 then
  255. chatfunc("This is what you get for killing everybody.")
  256. end
  257. if chatmath == 3 then
  258. chatfunc("Look, I gave up trying to go back a long time ago.")
  259. end
  260. local gasterblaster = Instance.new("Part",char.Torso)
  261. gasterblaster.Size = Vector3.new(7, 16, 4)
  262. gasterblaster.CanCollide = false
  263. local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
  264. gasterblastermesh.MeshId = "rbxassetid://431908407"
  265. gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
  266. local gasterblastertexture = Instance.new("Decal",gasterblaster)
  267. gasterblastertexture.Face = "Back"
  268. gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
  269. local weeld = Instance.new("Weld",gasterblaster)
  270. weeld.Part0 = gasterblaster
  271. weeld.Part1 = char.Torso
  272. weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
  273. blastsound:Play()
  274. char.Head.Anchored = true
  275. wait(1)
  276. local blast = Instance.new("Part",gasterblaster)
  277. blast.Size = Vector3.new(18.07, 16.36, 73.54)
  278. blast.Transparency = 0.7
  279. blast.Material = "Neon"
  280. blast.Color = Color3.new(1,1,1)
  281. blast.CanCollide = true
  282. local blastweld = Instance.new("Weld",blast)
  283. blastweld.Part0 = blast
  284. blastweld.Part1 = gasterblaster
  285. blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  286. blast.Touched:connect(function(part)
  287. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
  288. end)
  289. wait(2)
  290. char.Head.Anchored = false
  291. blast:Destroy()
  292. gasterblaster:Destroy()
  293. end
  294. end
  295. mouse.KeyDown:connect(Blast)
  296.  
  297.  
  298. function Death()
  299. music:Stop()
  300. local deadsound = Instance.new("Sound",char.Torso)
  301. deadsound.SoundId = "rbxassetid://427025525"
  302. deadsound.Volume = 4
  303. deadsound:Play()
  304. for i,v in pairs(char:GetChildren()) do
  305. if v.ClassName == "Part" then
  306. v.Transparency = 1
  307. end
  308. leye.Transparency = 1
  309. fire:Destroy()
  310. char.Head.face.Transparency = 1
  311. end
  312. end
  313. char.Sans.Died:connect(Death)
  314.  
  315.  
  316. function Transform(key)
  317. if key == "t" then
  318. music.SoundId = "rbxassetid://860704015"
  319. music:Stop()
  320. music:Play()
  321. chatfunc("Hehe, forgetting something?")
  322. leyeclone.Transparency = 0
  323. local fire2 = Instance.new("Fire",leyeclone)
  324. fire2.Heat = 25000
  325. fire2.Color = leye.BrickColor.Color
  326. fire2.Size = 2
  327. end
  328. end
  329. mouse.KeyDown:connect(Transform)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement