Advertisement
DrakerMaker

Sans Fight Wip

Dec 22nd, 2019
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.54 KB | None | 0 0
  1. -- Thanks for using Mod2S by NopeUsername
  2. local functions = {}
  3. function sandbox(script, func)
  4. local oldEnv = getfenv(func)
  5.  
  6. local newEnv = setmetatable({}, {
  7. __index = function(self,k)
  8. if k == "script" then
  9. return script
  10. else
  11. return oldEnv[k]
  12. end
  13. end,
  14. })
  15.  
  16. return setfenv(func, newEnv)
  17. end
  18.  
  19. local mas = Instance.new("Model", game:GetService("Lighting"))
  20. -- DECLARING VARIABLES
  21.  
  22. local Model = Instance.new("Model")
  23. local Labtop = Instance.new("Model")
  24. local image = Instance.new("Part")
  25. local sans = Instance.new("Decal")
  26. local InktaleMegalovania = Instance.new("Sound")
  27. local ChorusSoundEffect = Instance.new("ChorusSoundEffect")
  28. local SurfaceGui = Instance.new("SurfaceGui")
  29. local ViewportFrame = Instance.new("ViewportFrame")
  30. local Camera = Instance.new("Camera")
  31. local campart = Instance.new("Part")
  32. local Script = Instance.new("Script")
  33. local Part = Instance.new("Part")
  34. local Part_1 = Instance.new("Part")
  35. local Part_2 = Instance.new("Part")
  36. local ClickDetector = Instance.new("ClickDetector")
  37. local Script_1 = Instance.new("Script")
  38. local BG = Instance.new("Part")
  39. local BG_1 = Instance.new("Part")
  40. local BG_2 = Instance.new("Part")
  41. local Barrier = Instance.new("Part")
  42. local SansVoice = Instance.new("Sound")
  43. local BG_3 = Instance.new("Part")
  44. local BG_4 = Instance.new("Part")
  45. local Barrier_1 = Instance.new("Part")
  46. local Barrier_2 = Instance.new("Part")
  47. local Barrier_3 = Instance.new("Part")
  48. local BG_5 = Instance.new("Part")
  49. local Sans = Instance.new("Part")
  50. local InktaleMegalovania_1 = Instance.new("Sound")
  51. local SurfaceGui_1 = Instance.new("SurfaceGui")
  52. local ImageLabel = Instance.new("ImageLabel")
  53. local SansVoice_1 = Instance.new("Sound")
  54. local dead = Instance.new("Sound")
  55. local Barrier_4 = Instance.new("Part")
  56. local MainBarrier = Instance.new("Part")
  57. local SurfaceSelection = Instance.new("SurfaceSelection")
  58. local Fight = Instance.new("Part")
  59. local undertalefightbutton = Instance.new("Decal")
  60. local sound = Instance.new("Sound")
  61. local Script_2 = Instance.new("Script")
  62. local ClickDetector_1 = Instance.new("ClickDetector")
  63. local Miss = Instance.new("Part")
  64. local SurfaceGui_2 = Instance.new("SurfaceGui")
  65. local Text = Instance.new("TextLabel")
  66. local Gaster1 = Instance.new("Part")
  67. local decor = Instance.new("Decal")
  68. local Blast = Instance.new("Sound")
  69. local Bones = Instance.new("Part")
  70. local Top = Instance.new("Texture")
  71. local Bottom = Instance.new("Texture")
  72. local Script_3 = Instance.new("Script")
  73. local Gaster2 = Instance.new("Part")
  74. local decor_1 = Instance.new("Decal")
  75. local Blast_1 = Instance.new("Sound")
  76. local Gaster3 = Instance.new("Part")
  77. local decor_2 = Instance.new("Decal")
  78. local Blast_2 = Instance.new("Sound")
  79. local Blast1 = Instance.new("Part")
  80. local Script_4 = Instance.new("Script")
  81. local Blast2 = Instance.new("Part")
  82. local Script_5 = Instance.new("Script")
  83. local Item = Instance.new("Part")
  84. local undertalefightbutton_1 = Instance.new("Decal")
  85. local sound_1 = Instance.new("Sound")
  86. local Script_6 = Instance.new("Script")
  87. local ClickDetector_2 = Instance.new("ClickDetector")
  88. local eyecover = Instance.new("Part")
  89. local eyecover2 = Instance.new("Part")
  90. local BubbleComingFrom = Instance.new("WedgePart")
  91. local Bubble = Instance.new("Part")
  92. local SurfaceGui_3 = Instance.new("SurfaceGui")
  93. local TextBox = Instance.new("TextBox")
  94. local deb = Instance.new("BoolValue")
  95.  
  96. -- SETTING PROPERTIES
  97.  
  98. Model.Parent = mas
  99.  
  100. Labtop.Name = "Labtop"
  101. Labtop.Parent = Model
  102.  
  103. image.Anchored = true
  104. image.BottomSurface = Enum.SurfaceType.Smooth
  105. image.CFrame = CFrame.new(-43.329,2.246,98.29,0.959,-0.283,0,0,0,1,-0.283,-0.959,0)
  106. image.Color = Color3.new(0.067,0.067,0.067)
  107. image.Material = Enum.Material.Neon
  108. image.Size = Vector3.new(3.419,0.081,3.612)
  109. image.TopSurface = Enum.SurfaceType.Smooth
  110. image.Name = "image"
  111. image.Parent = Labtop
  112.  
  113. sans.Texture = "http://www.roblox.com/asset/?id=3850949431"
  114. sans.Face = Enum.NormalId.Top
  115. sans.Name = "sans"
  116. sans.Parent = image
  117.  
  118. InktaleMegalovania.Looped = true
  119. InktaleMegalovania.SoundId = "rbxassetid://479400768"
  120. InktaleMegalovania.Volume = 2
  121. InktaleMegalovania.Name = "[Inktale] - Megalovania"
  122. InktaleMegalovania.Parent = image
  123.  
  124. ChorusSoundEffect.Parent = InktaleMegalovania
  125.  
  126. SurfaceGui.ClipsDescendants = true
  127. SurfaceGui.Face = Enum.NormalId.Top
  128. SurfaceGui.LightInfluence = 1
  129. SurfaceGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  130. SurfaceGui.Parent = image
  131.  
  132. ViewportFrame.BackgroundColor3 = Color3.new(0,0,0)
  133. ViewportFrame.BackgroundTransparency = 1
  134. ViewportFrame.BorderColor3 = Color3.new(0,0,0)
  135. ViewportFrame.BorderSizePixel = 0
  136. ViewportFrame.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
  137. ViewportFrame.Transparency = 1
  138. ViewportFrame.Parent = SurfaceGui
  139.  
  140. Camera.CFrame = CFrame.new(-51.375,4.804,91.589,-0.953,0.07,-0.296,0,0.973,0.23,0.304,0.219,-0.927)
  141. Camera.Focus = CFrame.new(-50.784,4.345,93.444,1,0,0,0,1,0,0,0,1)
  142. Camera.Parent = ViewportFrame
  143.  
  144. campart.BottomSurface = Enum.SurfaceType.Smooth
  145. campart.CFrame = CFrame.new(1.978,370.565,170.923,-0.699,0.196,-0.687,-0.174,0.886,0.43,0.693,0.42,-0.586)
  146. campart.Size = Vector3.new(4,1,2)
  147. campart.TopSurface = Enum.SurfaceType.Smooth
  148. campart.Transparency = 1
  149. campart.Name = "campart"
  150. campart.Parent = ViewportFrame
  151.  
  152. table.insert(functions,sandbox(Script,function()
  153. script.Parent.Parent.Camera.CFrame = script.Parent.CFrame
  154. end))
  155. Script.Parent = campart
  156.  
  157. Part.Anchored = true
  158. Part.BottomSurface = Enum.SurfaceType.Smooth
  159. Part.CFrame = CFrame.new(-43.21,2.185,98.457,-0.959,0,-0.283,0,1,0,0.283,0,-0.959)
  160. Part.Color = Color3.new(0.906,0.906,0.925)
  161. Part.Material = Enum.Material.Metal
  162. Part.Size = Vector3.new(4.273,4.37,0.306)
  163. Part.TopSurface = Enum.SurfaceType.Smooth
  164. Part.Parent = Labtop
  165.  
  166. Part_1.Anchored = true
  167. Part_1.BottomSurface = Enum.SurfaceType.Smooth
  168. Part_1.CFrame = CFrame.new(-43.584,0.145,97.189,-0.959,0,-0.283,0,1,0,0.283,0,-0.959)
  169. Part_1.Color = Color3.new(0.906,0.906,0.925)
  170. Part_1.Material = Enum.Material.Metal
  171. Part_1.Size = Vector3.new(4.273,0.29,2.951)
  172. Part_1.TopSurface = Enum.SurfaceType.Smooth
  173. Part_1.Parent = Labtop
  174.  
  175. Part_2.Anchored = true
  176. Part_2.BottomSurface = Enum.SurfaceType.Smooth
  177. Part_2.CFrame = CFrame.new(-43.579,0.169,96.977,-0.959,0,-0.283,0,1,0,0.283,0,-0.959)
  178. Part_2.Color = Color3.new(0.357,0.365,0.412)
  179. Part_2.Material = Enum.Material.Brick
  180. Part_2.Size = Vector3.new(3.66,0.339,2.129)
  181. Part_2.TopSurface = Enum.SurfaceType.Smooth
  182. Part_2.Parent = Labtop
  183.  
  184. ClickDetector.Parent = Part_2
  185.  
  186. table.insert(functions,sandbox(Script_1,function()
  187. did = false
  188. deb = script.Parent.Parent.deb.Value
  189. script.Parent.ClickDetector.MouseClick:connect(function(p)
  190. p.Character:MoveTo(script.Parent.Parent.Parent.MainBarrier.Position +Vector3.new(0, 10, 0))
  191. if did == false then
  192. did = true
  193. local talk = "its a beautiful day outside. birds are singing, flowers are blooming, on days like these, kids like you,"
  194. script.Parent.Parent.Parent.Bubble.Transparency = 0
  195. script.Parent.Parent.Parent.BubbleComingFrom.Transparency = 0
  196. script.Parent.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = true
  197. for i = 1,string.len(talk) do
  198. wait()
  199. script.Parent.Parent.Parent.Bubble.SurfaceGui.TextBox.Text = string.sub(talk, 1, i)
  200. script.Parent.Parent.Parent.Sans["Sans Voice"]:Play()
  201. end
  202. wait(1)
  203. local attack = math.random(1,3)
  204. script.Parent.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = false
  205. script.Parent.Parent.Parent.Bubble.Transparency = 1
  206. script.Parent.Parent.Parent.BubbleComingFrom.Transparency = 1
  207. if attack == 1 then
  208. script.Parent.Parent.Parent.Bones.Bottom.Transparency = 0
  209. script.Parent.Parent.Parent.Bones.Top.Transparency = 0
  210. for i = 1,math.random(2,6) do
  211. for i = 1,60 do
  212. game:GetService("RunService").Stepped:wait()
  213. script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
  214. end
  215. for i = 1,5 do
  216. game:GetService("RunService").Stepped:wait()
  217. script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
  218. end
  219. for i = 1,5 do
  220. script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
  221. end
  222. for i = 1,60 do
  223. script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
  224. end
  225. end
  226. script.Parent.Parent.ParentBones.Bottom.Transparency = 1
  227. script.Parent.Parent.Parent.Bones.Top.Transparency = 1
  228. elseif attack == 2 then
  229. script.Parent.Parent.Parent["Gaster1"].Blast:Play()
  230. script.Parent.Parent.Parent["Gaster1"].decor.Transparency = 0
  231. script.Parent.Parent.Parent["Gaster2"].Blast:Play()
  232. script.Parent.Parent.Parent["Gaster2"].decor.Transparency = 0
  233. wait(1.9)
  234. script.Parent.Parent.Parent["Blast1"].Transparency = 0
  235. wait(1)
  236. script.Parent.Parent.Parent["Blast1"].Transparency = 1
  237. script.Parent.Parent.Parent["Gaster1"].decor.Transparency = 1
  238. script.Parent.Parent.Parent["Gaster2"].decor.Transparency = 1
  239. elseif attack == 3 then
  240. script.Parent.Parent.Parent["Gaster3"].Blast:Play()
  241. script.Parent.Parent.Parent["Gaster3"].decor.Transparency = 0
  242. wait(1.9)
  243. script.Parent.Parent.Parent["Blast2"].Transparency = 0
  244. wait(1)
  245. script.Parent.Parent.Parent["Blast2"].Transparency = 1
  246. script.Parent.Parent.Parent["Gaster3"].decor.Transparency = 1
  247. end
  248. script.Parent.Parent.Parent.Fight["undertale fight button"].Transparency = 0
  249. script.Parent.Parent.Parent.Item["undertale fight button"].Transparency = 0
  250. script.Parent.Parent.Parent.image["[Inktale] - Megalovania"]:Play()
  251. script.Parent.Parent.Parent.Sans["[Inktale] - Megalovania"]:Play()
  252. deb = false
  253. end
  254. end)
  255. end))
  256. Script_1.Parent = Part_2
  257.  
  258. BG.Anchored = true
  259. BG.BottomSurface = Enum.SurfaceType.Smooth
  260. BG.CFrame = CFrame.new(93.365,358.104,196.115,1,0,0,0,1,0,0,0,1)
  261. BG.Color = Color3.new(0.067,0.067,0.067)
  262. BG.Material = Enum.Material.SmoothPlastic
  263. BG.Size = Vector3.new(0.05,60.81,98.35)
  264. BG.TopSurface = Enum.SurfaceType.Smooth
  265. BG.Name = "BG"
  266. BG.Parent = Model
  267.  
  268. BG_1.Anchored = true
  269. BG_1.BottomSurface = Enum.SurfaceType.Smooth
  270. BG_1.CFrame = CFrame.new(-10.765,358.51,196.115,1,0,0,0,1,0,0,0,1)
  271. BG_1.Color = Color3.new(0.067,0.067,0.067)
  272. BG_1.Material = Enum.Material.SmoothPlastic
  273. BG_1.Size = Vector3.new(0.05,61.62,98.35)
  274. BG_1.TopSurface = Enum.SurfaceType.Smooth
  275. BG_1.Name = "BG"
  276. BG_1.Parent = Model
  277.  
  278. BG_2.Anchored = true
  279. BG_2.BottomSurface = Enum.SurfaceType.Smooth
  280. BG_2.CFrame = CFrame.new(41.3,328.954,196.115,1,0,0,0,1,0,0,0,1)
  281. BG_2.Color = Color3.new(0.067,0.067,0.067)
  282. BG_2.Material = Enum.Material.SmoothPlastic
  283. BG_2.Size = Vector3.new(104.18,2.51,98.35)
  284. BG_2.TopSurface = Enum.SurfaceType.Smooth
  285. BG_2.Name = "BG"
  286. BG_2.Parent = Model
  287.  
  288. Barrier.Anchored = true
  289. Barrier.BottomSurface = Enum.SurfaceType.Smooth
  290. Barrier.CFrame = CFrame.new(-10.765,328.954,196.115,1,0,0,0,1,0,0,0,1)
  291. Barrier.Color = Color3.new(0.067,0.067,0.067)
  292. Barrier.Material = Enum.Material.Neon
  293. Barrier.Size = Vector3.new(0.05,2.51,98.35)
  294. Barrier.TopSurface = Enum.SurfaceType.Smooth
  295. Barrier.Transparency = 1
  296. Barrier.Name = "Barrier"
  297. Barrier.Parent = Model
  298.  
  299. SansVoice.SoundId = "rbxassetid://3188795283"
  300. SansVoice.Name = "Sans Voice"
  301. SansVoice.Parent = Barrier
  302.  
  303. BG_3.Anchored = true
  304. BG_3.BottomSurface = Enum.SurfaceType.Smooth
  305. BG_3.CFrame = CFrame.new(41.3,358.094,245.265,1,0,0,0,1,0,0,0,1)
  306. BG_3.Color = Color3.new(0.067,0.067,0.067)
  307. BG_3.Material = Enum.Material.SmoothPlastic
  308. BG_3.Size = Vector3.new(104.18,60.79,0.05)
  309. BG_3.TopSurface = Enum.SurfaceType.Smooth
  310. BG_3.Name = "BG"
  311. BG_3.Parent = Model
  312.  
  313. BG_4.Anchored = true
  314. BG_4.BottomSurface = Enum.SurfaceType.Smooth
  315. BG_4.CFrame = CFrame.new(41.3,357.499,146.965,1,0,0,0,1,0,0,0,1)
  316. BG_4.Color = Color3.new(0.067,0.067,0.067)
  317. BG_4.Material = Enum.Material.SmoothPlastic
  318. BG_4.Size = Vector3.new(104.18,59.6,0.05)
  319. BG_4.TopSurface = Enum.SurfaceType.Smooth
  320. BG_4.Name = "BG"
  321. BG_4.Parent = Model
  322.  
  323. Barrier_1.Anchored = true
  324. Barrier_1.BottomSurface = Enum.SurfaceType.Smooth
  325. Barrier_1.CFrame = CFrame.new(15.153,354.309,196.115,1,0,0,0,1,0,0,0,1)
  326. Barrier_1.Color = Color3.new(0.067,0.067,0.067)
  327. Barrier_1.Material = Enum.Material.Neon
  328. Barrier_1.Size = Vector3.new(0.05,48.3,49.35)
  329. Barrier_1.TopSurface = Enum.SurfaceType.Smooth
  330. Barrier_1.Transparency = 1
  331. Barrier_1.Name = "Barrier"
  332. Barrier_1.Parent = Model
  333.  
  334. Barrier_2.Anchored = true
  335. Barrier_2.BottomSurface = Enum.SurfaceType.Smooth
  336. Barrier_2.CFrame = CFrame.new(41.368,354.309,171.465,1,0,0,0,1,0,0,0,1)
  337. Barrier_2.Color = Color3.new(0.067,0.067,0.067)
  338. Barrier_2.Material = Enum.Material.Neon
  339. Barrier_2.Size = Vector3.new(52.48,48.3,0.05)
  340. Barrier_2.TopSurface = Enum.SurfaceType.Smooth
  341. Barrier_2.Transparency = 1
  342. Barrier_2.Name = "Barrier"
  343. Barrier_2.Parent = Model
  344.  
  345. Barrier_3.Anchored = true
  346. Barrier_3.BottomSurface = Enum.SurfaceType.Smooth
  347. Barrier_3.CFrame = CFrame.new(41.368,354.309,220.885,1,0,0,0,1,0,0,0,1)
  348. Barrier_3.Color = Color3.new(0.067,0.067,0.067)
  349. Barrier_3.Material = Enum.Material.Neon
  350. Barrier_3.Size = Vector3.new(52.48,48.3,0.05)
  351. Barrier_3.TopSurface = Enum.SurfaceType.Smooth
  352. Barrier_3.Transparency = 1
  353. Barrier_3.Name = "Barrier"
  354. Barrier_3.Parent = Model
  355.  
  356. BG_5.Anchored = true
  357. BG_5.BottomSurface = Enum.SurfaceType.Smooth
  358. BG_5.CFrame = CFrame.new(41.3,388.311,196.115,1,0,0,0,1,0,0,0,1)
  359. BG_5.Color = Color3.new(0.067,0.067,0.067)
  360. BG_5.Material = Enum.Material.SmoothPlastic
  361. BG_5.Size = Vector3.new(104.18,2.51,98.35)
  362. BG_5.TopSurface = Enum.SurfaceType.Smooth
  363. BG_5.Name = "BG"
  364. BG_5.Parent = Model
  365.  
  366. Sans.Anchored = true
  367. Sans.BottomSurface = Enum.SurfaceType.Smooth
  368. Sans.CFrame = CFrame.new(93.315,345.659,195.235,0,-1,0,-1,0,0,0,0,-1)
  369. Sans.Color = Color3.new(0.067,0.067,0.067)
  370. Sans.Material = Enum.Material.SmoothPlastic
  371. Sans.Size = Vector3.new(22.24,0.05,20.61)
  372. Sans.TopSurface = Enum.SurfaceType.Smooth
  373. Sans.Name = "Sans"
  374. Sans.Parent = Model
  375.  
  376. InktaleMegalovania_1.Looped = true
  377. InktaleMegalovania_1.SoundId = "rbxassetid://479400768"
  378. InktaleMegalovania_1.Volume = 6
  379. InktaleMegalovania_1.Name = "[Inktale] - Megalovania"
  380. InktaleMegalovania_1.Parent = Sans
  381.  
  382. SurfaceGui_1.Adornee = Sans
  383. SurfaceGui_1.ClipsDescendants = true
  384. SurfaceGui_1.Face = Enum.NormalId.Top
  385. SurfaceGui_1.LightInfluence = 1
  386. SurfaceGui_1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  387. SurfaceGui_1.Parent = Sans
  388.  
  389. ImageLabel.Image = "http://www.roblox.com/asset/?id=3850949431"
  390. ImageLabel.BackgroundColor3 = Color3.new(1,1,1)
  391. ImageLabel.BackgroundTransparency = 1
  392. ImageLabel.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
  393. ImageLabel.Transparency = 1
  394. ImageLabel.Parent = SurfaceGui_1
  395.  
  396. SansVoice_1.SoundId = "rbxassetid://3188795283"
  397. SansVoice_1.Volume = 6
  398. SansVoice_1.Name = "Sans Voice"
  399. SansVoice_1.Parent = Sans
  400.  
  401. dead.SoundId = "rbxassetid://623904185"
  402. dead.Volume = 7
  403. dead.Name = "dead"
  404. dead.Parent = Sans
  405.  
  406. Barrier_4.Anchored = true
  407. Barrier_4.BottomSurface = Enum.SurfaceType.Smooth
  408. Barrier_4.CFrame = CFrame.new(67.365,354.309,196.115,1,0,0,0,1,0,0,0,1)
  409. Barrier_4.Color = Color3.new(0.067,0.067,0.067)
  410. Barrier_4.Material = Enum.Material.Neon
  411. Barrier_4.Size = Vector3.new(0.05,48.3,49.35)
  412. Barrier_4.TopSurface = Enum.SurfaceType.Smooth
  413. Barrier_4.Transparency = 1
  414. Barrier_4.Name = "Barrier"
  415. Barrier_4.Parent = Model
  416.  
  417. MainBarrier.Anchored = true
  418. MainBarrier.BottomSurface = Enum.SurfaceType.Smooth
  419. MainBarrier.CFrame = CFrame.new(41.3,330.604,196.115,1,0,0,0,1,0,0,0,1)
  420. MainBarrier.Color = Color3.new(0.067,0.067,0.067)
  421. MainBarrier.Material = Enum.Material.SmoothPlastic
  422. MainBarrier.Size = Vector3.new(52.18,0.89,49.35)
  423. MainBarrier.TopSurface = Enum.SurfaceType.Smooth
  424. MainBarrier.Transparency = 1
  425. MainBarrier.Name = "MainBarrier"
  426. MainBarrier.Parent = Model
  427.  
  428. SurfaceSelection.TargetSurface = Enum.NormalId.Top
  429. SurfaceSelection.Adornee = MainBarrier
  430. SurfaceSelection.Color3 = Color3.new(1,1,1)
  431. SurfaceSelection.Parent = MainBarrier
  432.  
  433. Fight.Anchored = true
  434. Fight.BottomSurface = Enum.SurfaceType.Smooth
  435. Fight.CFrame = CFrame.new(63.591,337.109,180.75,0,-1,0,0,0,1,-1,0,0)
  436. Fight.CanCollide = false
  437. Fight.Size = Vector3.new(13.36,0.05,6.1)
  438. Fight.TopSurface = Enum.SurfaceType.Smooth
  439. Fight.Transparency = 1
  440. Fight.Name = "Fight"
  441. Fight.Parent = Model
  442.  
  443. undertalefightbutton.Texture = "http://www.roblox.com/asset/?id=311212183"
  444. undertalefightbutton.Transparency = 1
  445. undertalefightbutton.Face = Enum.NormalId.Top
  446. undertalefightbutton.Name = "undertale fight button"
  447. undertalefightbutton.Parent = Fight
  448.  
  449. sound.SoundId = "rbxassetid://357417055"
  450. sound.Volume = 4
  451. sound.Name = "sound"
  452. sound.Parent = Fight
  453.  
  454. table.insert(functions,sandbox(Script_2,function()
  455. deb = script.Parent.Parent.deb.Value
  456. done = 0
  457. script.Parent.ClickDetector.MouseClick:connect(function(p)
  458. if deb == false then
  459. done = done +1
  460. deb = true
  461. script.Parent["undertale fight button"].Transparency = 1
  462. script.Parent.Parent.Item["undertale fight button"].Transparency = 1
  463. script.Parent.sound:Play()
  464. for i = 1,12 do
  465. game:GetService("RunService").Stepped:wait()
  466. script.Parent.Parent.Sans.CFrame = script.Parent.Parent.Sans.CFrame *CFrame.new(0, 0, -2)
  467. end
  468. wait(0.5)
  469. for i = 1,12 do
  470. game:GetService("RunService").Stepped:wait()
  471. script.Parent.Parent.Sans.CFrame = script.Parent.Parent.Sans.CFrame *CFrame.new(0, 0, 2)
  472. end
  473. if done ~= 15 then
  474. script.Parent.Parent.Miss.SurfaceGui.Text.Visible = true
  475. wait(1)
  476. script.Parent.Parent.Miss.SurfaceGui.Text.Visible = false
  477. end
  478. if done == 15 then
  479. script.Parent.Parent.Labtop.image["[Inktale] - Megalovania"]:Stop()
  480. script.Parent.Parent.Sans["[Inktale] - Megalovania"]:Stop()
  481. end
  482. if done == 1 then
  483. local talk = "what. you think im just gonna stand there and take it?"
  484. script.Parent.Parent.Bubble.Transparency = 0
  485. script.Parent.Parent.BubbleComingFrom.Transparency = 0
  486. script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = true
  487. for i = 1,string.len(talk) do
  488. wait()
  489. script.Parent.Parent.Bubble.SurfaceGui.TextBox.Text = string.sub(talk, 1, i)
  490. script.Parent.Parent.Sans["Sans Voice"]:Play()
  491. end
  492. wait(1)
  493. script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = false
  494. script.Parent.Parent.Bubble.Transparency = 1
  495. script.Parent.Parent.BubbleComingFrom.Transparency = 1
  496. end
  497. if done ~= 15 then
  498. local attack = math.random(1,3)
  499. if attack == 1 then
  500. script.Parent.Parent.Bones.Bottom.Transparency = 0
  501. script.Parent.Parent.Bones.Top.Transparency = 0
  502. for i = 1,math.random(2,6) do
  503. for i = 1,60 do
  504. game:GetService("RunService").Stepped:wait()
  505. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
  506. end
  507. for i = 1,5 do
  508. game:GetService("RunService").Stepped:wait()
  509. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
  510. end
  511. for i = 1,5 do
  512. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
  513. end
  514. for i = 1,60 do
  515. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
  516. end
  517. end
  518. script.Parent.Parent.Bones.Bottom.Transparency = 1
  519. script.Parent.Parent.Bones.Top.Transparency = 1
  520. elseif attack == 2 then
  521. script.Parent.Parent["Gaster1"].Blast:Play()
  522. script.Parent.Parent["Gaster1"].decor.Transparency = 0
  523. script.Parent.Parent["Gaster2"].Blast:Play()
  524. script.Parent.Parent["Gaster2"].decor.Transparency = 0
  525. wait(1.9)
  526. script.Parent.Parent["Blast1"].Transparency = 0
  527. wait(1)
  528. script.Parent.Parent["Blast1"].Transparency = 1
  529. script.Parent.Parent["Gaster1"].decor.Transparency = 1
  530. script.Parent.Parent["Gaster2"].decor.Transparency = 1
  531. elseif attack == 3 then
  532. script.Parent.Parent["Gaster3"].Blast:Play()
  533. script.Parent.Parent["Gaster3"].decor.Transparency = 0
  534. wait(1.9)
  535. script.Parent.Parent["Blast2"].Transparency = 0
  536. wait(1)
  537. script.Parent.Parent["Blast2"].Transparency = 1
  538. script.Parent.Parent["Gaster3"].decor.Transparency = 1
  539. end
  540. script.Parent["undertale fight button"].Transparency = 0
  541. script.Parent.Parent.Item["undertale fight button"].Transparency = 0
  542. deb = false
  543. end
  544. else
  545. deb = true
  546. local talk = "heh, you really think you could-"
  547. script.Parent.Parent.Bubble.Transparency = 0
  548. script.Parent.Parent.BubbleComingFrom.Transparency = 0
  549. script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = true
  550. for i = 1,string.len(talk) do
  551. wait()
  552. script.Parent.Parent.Bubble.SurfaceGui.TextBox.Text = string.sub(talk, 1, i)
  553. script.Parent.Parent.Sans["Sans Voice"]:Play()
  554. end
  555. wait(0.1)
  556. script.Parent.Parent.Sans.dead:Play()
  557. script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = false
  558. script.Parent.Parent.Bubble.Transparency = 1
  559. script.Parent.Parent.BubbleComingFrom.Transparency = 1
  560. wait(1)
  561. for i = 1,10 do
  562. script.Parent.Parent.Sans.SurfaceGui.ImageLabel.ImageTransparency = script.Parent.Parent.Sans.SurfaceGui.ImageLabel.ImageTransparency +0.1
  563. end
  564. wait(3)
  565. mas:Destroy()
  566. end
  567. end)
  568. end))
  569. Script_2.Parent = Fight
  570.  
  571. ClickDetector_1.Parent = Fight
  572.  
  573. Miss.Anchored = true
  574. Miss.CFrame = CFrame.new(93.228,358.945,208.34,0,0,1,0,1,0,-1,0,0)
  575. Miss.Color = Color3.new(0.584,0.475,0.467)
  576. Miss.Size = Vector3.new(10.98,7.97,0.05)
  577. Miss.Transparency = 1
  578. Miss.Name = "Miss"
  579. Miss.Parent = Model
  580.  
  581. SurfaceGui_2.CanvasSize = Vector2.new(200,100)
  582. SurfaceGui_2.Parent = Miss
  583.  
  584. Text.Font = Enum.Font.Arcade
  585. Text.Text = "MISS"
  586. Text.TextColor3 = Color3.new(0,0,0)
  587. Text.TextScaled = true
  588. Text.TextSize = 48
  589. Text.TextStrokeColor3 = Color3.new(1,0.298,0.298)
  590. Text.TextStrokeTransparency = 0
  591. Text.TextWrapped = true
  592. Text.BackgroundColor3 = Color3.new(1,1,1)
  593. Text.BackgroundTransparency = 1
  594. Text.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
  595. Text.Transparency = 1
  596. Text.Visible = false
  597. Text.Name = "Text"
  598. Text.Parent = SurfaceGui_2
  599.  
  600. Gaster1.Anchored = true
  601. Gaster1.BottomSurface = Enum.SurfaceType.Smooth
  602. Gaster1.CFrame = CFrame.new(38.982,343.819,161.728,1,0,0,0,1,0,0,0,1)
  603. Gaster1.Size = Vector3.new(25.18,25.54,2)
  604. Gaster1.TopSurface = Enum.SurfaceType.Smooth
  605. Gaster1.Transparency = 1
  606. Gaster1.Name = "Gaster1"
  607. Gaster1.Parent = Model
  608.  
  609. decor.Texture = "http://www.roblox.com/asset/?id=323497117"
  610. decor.Transparency = 1
  611. decor.Face = Enum.NormalId.Back
  612. decor.Name = "decor"
  613. decor.Parent = Gaster1
  614.  
  615. Blast.SoundId = "rbxassetid://345052019"
  616. Blast.Volume = 6
  617. Blast.Name = "Blast"
  618. Blast.Parent = Gaster1
  619.  
  620. Bones.Anchored = true
  621. Bones.BottomSurface = Enum.SurfaceType.Smooth
  622. Bones.CFrame = CFrame.new(67.06,332.869,196.115,0,-1,0,-1,0,0,0,0,-1)
  623. Bones.CanCollide = false
  624. Bones.Size = Vector3.new(3.64,0.05,49.11)
  625. Bones.TopSurface = Enum.SurfaceType.Smooth
  626. Bones.Transparency = 1
  627. Bones.Name = "Bones"
  628. Bones.Parent = Model
  629.  
  630. Top.StudsPerTileU = 3.4
  631. Top.StudsPerTileV = 1
  632. Top.Texture = "http://www.roblox.com/asset/?id=1132223329"
  633. Top.Transparency = 1
  634. Top.Face = Enum.NormalId.Top
  635. Top.Name = "Top"
  636. Top.Parent = Bones
  637.  
  638. Bottom.StudsPerTileU = 3.2
  639. Bottom.StudsPerTileV = 1
  640. Bottom.Texture = "http://www.roblox.com/asset/?id=1132223329"
  641. Bottom.Transparency = 1
  642. Bottom.Face = Enum.NormalId.Bottom
  643. Bottom.Name = "Bottom"
  644. Bottom.Parent = Bones
  645.  
  646. table.insert(functions,sandbox(Script_3,function()
  647. script.Parent.Touched:connect(function(p)
  648. if p.Parent:FindFirstChildOfClass("Humanoid") then
  649. if script.Parent.Bottom.Transparency == 0 then
  650. p.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  651. end
  652. end
  653. end)
  654. end))
  655. Script_3.Parent = Bones
  656.  
  657. Gaster2.Anchored = true
  658. Gaster2.BottomSurface = Enum.SurfaceType.Smooth
  659. Gaster2.CFrame = CFrame.new(38.982,343.819,231.513,-1,0,0,0,1,0,0,0,-1)
  660. Gaster2.Size = Vector3.new(25.18,25.54,2)
  661. Gaster2.TopSurface = Enum.SurfaceType.Smooth
  662. Gaster2.Transparency = 1
  663. Gaster2.Name = "Gaster2"
  664. Gaster2.Parent = Model
  665.  
  666. decor_1.Texture = "http://www.roblox.com/asset/?id=323497117"
  667. decor_1.Transparency = 1
  668. decor_1.Face = Enum.NormalId.Back
  669. decor_1.Name = "decor"
  670. decor_1.Parent = Gaster2
  671.  
  672. Blast_1.SoundId = "rbxassetid://345052019"
  673. Blast_1.Volume = 6
  674. Blast_1.Name = "Blast"
  675. Blast_1.Parent = Gaster2
  676.  
  677. Gaster3.Anchored = true
  678. Gaster3.BottomSurface = Enum.SurfaceType.Smooth
  679. Gaster3.CFrame = CFrame.new(2.787,343.819,197.462,0,0,1,0,1,0,-1,0,0)
  680. Gaster3.Size = Vector3.new(25.18,25.54,2)
  681. Gaster3.TopSurface = Enum.SurfaceType.Smooth
  682. Gaster3.Transparency = 1
  683. Gaster3.Name = "Gaster3"
  684. Gaster3.Parent = Model
  685.  
  686. decor_2.Texture = "http://www.roblox.com/asset/?id=323497117"
  687. decor_2.Transparency = 1
  688. decor_2.Face = Enum.NormalId.Back
  689. decor_2.Name = "decor"
  690. decor_2.Parent = Gaster3
  691.  
  692. Blast_2.SoundId = "rbxassetid://345052019"
  693. Blast_2.Volume = 6
  694. Blast_2.Name = "Blast"
  695. Blast_2.Parent = Gaster3
  696.  
  697. Blast1.Anchored = true
  698. Blast1.BottomSurface = Enum.SurfaceType.Smooth
  699. Blast1.CFrame = CFrame.new(38.982,334.864,185.068,1,0,0,0,1,0,0,0,1)
  700. Blast1.CanCollide = false
  701. Blast1.Color = Color3.new(0.973,0.973,0.973)
  702. Blast1.Material = Enum.Material.Neon
  703. Blast1.Size = Vector3.new(25.18,7.63,139.14)
  704. Blast1.TopSurface = Enum.SurfaceType.Smooth
  705. Blast1.Transparency = 1
  706. Blast1.Name = "Blast1"
  707. Blast1.Parent = Model
  708.  
  709. table.insert(functions,sandbox(Script_4,function()
  710. script.Parent.Touched:connect(function(p)
  711. if p.Parent:FindFirstChildOfClass("Humanoid") then
  712. if script.Parent.Transparency == 0 then
  713. p.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  714. end
  715. end
  716. end)
  717. end))
  718. Script_4.Parent = Blast1
  719.  
  720. Blast2.Anchored = true
  721. Blast2.BottomSurface = Enum.SurfaceType.Smooth
  722. Blast2.CFrame = CFrame.new(30.942,334.864,195.398,1,0,0,0,1,0,0,0,1)
  723. Blast2.CanCollide = false
  724. Blast2.Color = Color3.new(0.973,0.973,0.973)
  725. Blast2.Material = Enum.Material.Neon
  726. Blast2.Size = Vector3.new(111.34,7.63,16.1)
  727. Blast2.TopSurface = Enum.SurfaceType.Smooth
  728. Blast2.Transparency = 1
  729. Blast2.Name = "Blast2"
  730. Blast2.Parent = Model
  731.  
  732. table.insert(functions,sandbox(Script_5,function()
  733. script.Parent.Touched:connect(function(p)
  734. if p.Parent:FindFirstChildOfClass("Humanoid") then
  735. if script.Parent.Transparency == 0 then
  736. p.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  737. end
  738. end
  739. end)
  740. end))
  741. Script_5.Parent = Blast2
  742.  
  743. Item.Anchored = true
  744. Item.BottomSurface = Enum.SurfaceType.Smooth
  745. Item.CFrame = CFrame.new(63.591,337.109,213.224,0,-1,0,0,0,1,-1,0,0)
  746. Item.CanCollide = false
  747. Item.Size = Vector3.new(13.36,0.05,6.1)
  748. Item.TopSurface = Enum.SurfaceType.Smooth
  749. Item.Transparency = 1
  750. Item.Name = "Item"
  751. Item.Parent = Model
  752.  
  753. undertalefightbutton_1.Texture = "http://www.roblox.com/asset/?id=1511885931"
  754. undertalefightbutton_1.Transparency = 1
  755. undertalefightbutton_1.Face = Enum.NormalId.Top
  756. undertalefightbutton_1.Name = "undertale fight button"
  757. undertalefightbutton_1.Parent = Item
  758.  
  759. sound_1.SoundId = "rbxassetid://357417055"
  760. sound_1.Volume = 4
  761. sound_1.Name = "sound"
  762. sound_1.Parent = Item
  763.  
  764. table.insert(functions,sandbox(Script_6,function()
  765. deb = script.Parent.Parent.deb.Value
  766. script.Parent.ClickDetector.MouseClick:connect(function(p)
  767. if deb == false then
  768. deb = true
  769. script.Parent.Parent.Fight["undertale fight button"].Transparency = 1
  770. script.Parent["undertale fight button"].Transparency = 1
  771. p.Character:FindFirstChildOfClass("Humanoid").Health = p.Character:FindFirstChildOfClass("Humanoid").MaxHealth
  772. local attack = math.random(1,3)
  773. if attack == 1 then
  774. script.Parent.Parent.Bones.Bottom.Transparency = 0
  775. script.Parent.Parent.Bones.Top.Transparency = 0
  776. for i = 1,math.random(2,6) do
  777. for i = 1,60 do
  778. game:GetService("RunService").Stepped:wait()
  779. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
  780. end
  781. for i = 1,5 do
  782. game:GetService("RunService").Stepped:wait()
  783. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
  784. end
  785. for i = 1,5 do
  786. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
  787. end
  788. for i = 1,60 do
  789. script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
  790. end
  791. end
  792. script.Parent.Parent.Bones.Bottom.Transparency = 1
  793. script.Parent.Parent.Bones.Top.Transparency = 1
  794. elseif attack == 2 then
  795. script.Parent.Parent["Gaster1"].Blast:Play()
  796. script.Parent.Parent["Gaster1"].decor.Transparency = 0
  797. script.Parent.Parent["Gaster2"].Blast:Play()
  798. script.Parent.Parent["Gaster2"].decor.Transparency = 0
  799. wait(1.9)
  800. script.Parent.Parent["Blast1"].Transparency = 0
  801. wait(1)
  802. script.Parent.Parent["Blast1"].Transparency = 1
  803. script.Parent.Parent["Gaster1"].decor.Transparency = 1
  804. script.Parent.Parent["Gaster2"].decor.Transparency = 1
  805. elseif attack == 3 then
  806. script.Parent.Parent["Gaster3"].Blast:Play()
  807. script.Parent.Parent["Gaster3"].decor.Transparency = 0
  808. wait(1.9)
  809. script.Parent.Parent["Blast2"].Transparency = 0
  810. wait(1)
  811. script.Parent.Parent["Blast2"].Transparency = 1
  812. script.Parent.Parent["Gaster3"].decor.Transparency = 1
  813. end
  814. script.Parent.Parent.Fight["undertale fight button"].Transparency = 0
  815. script.Parent["undertale fight button"].Transparency = 0
  816. deb = false
  817. end
  818. end)
  819. end))
  820. Script_6.Parent = Item
  821.  
  822. ClickDetector_2.Parent = Item
  823.  
  824. eyecover.BottomSurface = Enum.SurfaceType.Smooth
  825. eyecover.CFrame = CFrame.new(93.19,352.414,198.06,1,0,0,0,1,0,0,0,1)
  826. eyecover.Color = Color3.new(0.067,0.067,0.067)
  827. eyecover.Material = Enum.Material.SmoothPlastic
  828. eyecover.Size = Vector3.new(0.2,1.37,2)
  829. eyecover.TopSurface = Enum.SurfaceType.Smooth
  830. eyecover.Transparency = 1
  831. eyecover.Name = "eyecover"
  832. eyecover.Parent = Model
  833.  
  834. eyecover2.BottomSurface = Enum.SurfaceType.Smooth
  835. eyecover2.CFrame = CFrame.new(93.19,352.414,192.421,1,0,0,0,1,0,0,0,1)
  836. eyecover2.Color = Color3.new(0.067,0.067,0.067)
  837. eyecover2.Material = Enum.Material.SmoothPlastic
  838. eyecover2.Size = Vector3.new(0.2,1.37,2)
  839. eyecover2.TopSurface = Enum.SurfaceType.Smooth
  840. eyecover2.Transparency = 1
  841. eyecover2.Name = "eyecover2"
  842. eyecover2.Parent = Model
  843.  
  844. BubbleComingFrom.Anchored = true
  845. BubbleComingFrom.BottomSurface = Enum.SurfaceType.Smooth
  846. BubbleComingFrom.CFrame = CFrame.new(93.315,347.889,209.755,-1,0,0,0,0,1,0,1,0)
  847. BubbleComingFrom.Color = Color3.new(0.973,0.973,0.973)
  848. BubbleComingFrom.Size = Vector3.new(0.05,2.21,2)
  849. BubbleComingFrom.Name = "BubbleComingFrom"
  850. BubbleComingFrom.Parent = Model
  851.  
  852. Bubble.Anchored = true
  853. Bubble.CFrame = CFrame.new(93.315,351.409,211.905,0,0,1,0,1,0,-1,0,0)
  854. Bubble.Color = Color3.new(0.973,0.973,0.973)
  855. Bubble.Material = Enum.Material.SmoothPlastic
  856. Bubble.Size = Vector3.new(6.45,5.06,0.05)
  857. Bubble.Name = "Bubble"
  858. Bubble.Parent = Model
  859.  
  860. SurfaceGui_3.CanvasSize = Vector2.new(200,100)
  861. SurfaceGui_3.Parent = Bubble
  862.  
  863. TextBox.Font = Enum.Font.Arcade
  864. TextBox.Text = ""
  865. TextBox.TextColor3 = Color3.new(0,0,0)
  866. TextBox.TextScaled = true
  867. TextBox.TextSize = 14
  868. TextBox.TextWrapped = true
  869. TextBox.BackgroundColor3 = Color3.new(1,1,1)
  870. TextBox.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
  871. TextBox.Parent = SurfaceGui_3
  872.  
  873. deb.Value = true
  874. deb.Name = "deb"
  875. deb.Parent = Model
  876.  
  877.  
  878. for i,v in ipairs(functions) do
  879. spawn(function()
  880. pcall(v)
  881. end)
  882. end
  883. for i,v in ipairs(mas:GetChildren()) do
  884. v.Parent = workspace
  885. end
  886. mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement