Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Thanks for using Mod2S by NopeUsername
- local functions = {}
- function sandbox(script, func)
- local oldEnv = getfenv(func)
- local newEnv = setmetatable({}, {
- __index = function(self,k)
- if k == "script" then
- return script
- else
- return oldEnv[k]
- end
- end,
- })
- return setfenv(func, newEnv)
- end
- local mas = Instance.new("Model", game:GetService("Lighting"))
- -- DECLARING VARIABLES
- local Model = Instance.new("Model")
- local Labtop = Instance.new("Model")
- local image = Instance.new("Part")
- local sans = Instance.new("Decal")
- local InktaleMegalovania = Instance.new("Sound")
- local ChorusSoundEffect = Instance.new("ChorusSoundEffect")
- local SurfaceGui = Instance.new("SurfaceGui")
- local ViewportFrame = Instance.new("ViewportFrame")
- local Camera = Instance.new("Camera")
- local campart = Instance.new("Part")
- local Script = Instance.new("Script")
- local Part = Instance.new("Part")
- local Part_1 = Instance.new("Part")
- local Part_2 = Instance.new("Part")
- local ClickDetector = Instance.new("ClickDetector")
- local Script_1 = Instance.new("Script")
- local BG = Instance.new("Part")
- local BG_1 = Instance.new("Part")
- local BG_2 = Instance.new("Part")
- local Barrier = Instance.new("Part")
- local SansVoice = Instance.new("Sound")
- local BG_3 = Instance.new("Part")
- local BG_4 = Instance.new("Part")
- local Barrier_1 = Instance.new("Part")
- local Barrier_2 = Instance.new("Part")
- local Barrier_3 = Instance.new("Part")
- local BG_5 = Instance.new("Part")
- local Sans = Instance.new("Part")
- local InktaleMegalovania_1 = Instance.new("Sound")
- local SurfaceGui_1 = Instance.new("SurfaceGui")
- local ImageLabel = Instance.new("ImageLabel")
- local SansVoice_1 = Instance.new("Sound")
- local dead = Instance.new("Sound")
- local Barrier_4 = Instance.new("Part")
- local MainBarrier = Instance.new("Part")
- local SurfaceSelection = Instance.new("SurfaceSelection")
- local Fight = Instance.new("Part")
- local undertalefightbutton = Instance.new("Decal")
- local sound = Instance.new("Sound")
- local Script_2 = Instance.new("Script")
- local ClickDetector_1 = Instance.new("ClickDetector")
- local Miss = Instance.new("Part")
- local SurfaceGui_2 = Instance.new("SurfaceGui")
- local Text = Instance.new("TextLabel")
- local Gaster1 = Instance.new("Part")
- local decor = Instance.new("Decal")
- local Blast = Instance.new("Sound")
- local Bones = Instance.new("Part")
- local Top = Instance.new("Texture")
- local Bottom = Instance.new("Texture")
- local Script_3 = Instance.new("Script")
- local Gaster2 = Instance.new("Part")
- local decor_1 = Instance.new("Decal")
- local Blast_1 = Instance.new("Sound")
- local Gaster3 = Instance.new("Part")
- local decor_2 = Instance.new("Decal")
- local Blast_2 = Instance.new("Sound")
- local Blast1 = Instance.new("Part")
- local Script_4 = Instance.new("Script")
- local Blast2 = Instance.new("Part")
- local Script_5 = Instance.new("Script")
- local Item = Instance.new("Part")
- local undertalefightbutton_1 = Instance.new("Decal")
- local sound_1 = Instance.new("Sound")
- local Script_6 = Instance.new("Script")
- local ClickDetector_2 = Instance.new("ClickDetector")
- local eyecover = Instance.new("Part")
- local eyecover2 = Instance.new("Part")
- local BubbleComingFrom = Instance.new("WedgePart")
- local Bubble = Instance.new("Part")
- local SurfaceGui_3 = Instance.new("SurfaceGui")
- local TextBox = Instance.new("TextBox")
- local deb = Instance.new("BoolValue")
- -- SETTING PROPERTIES
- Model.Parent = mas
- Labtop.Name = "Labtop"
- Labtop.Parent = Model
- image.Anchored = true
- image.BottomSurface = Enum.SurfaceType.Smooth
- image.CFrame = CFrame.new(-43.329,2.246,98.29,0.959,-0.283,0,0,0,1,-0.283,-0.959,0)
- image.Color = Color3.new(0.067,0.067,0.067)
- image.Material = Enum.Material.Neon
- image.Size = Vector3.new(3.419,0.081,3.612)
- image.TopSurface = Enum.SurfaceType.Smooth
- image.Name = "image"
- image.Parent = Labtop
- sans.Texture = "http://www.roblox.com/asset/?id=3850949431"
- sans.Face = Enum.NormalId.Top
- sans.Name = "sans"
- sans.Parent = image
- InktaleMegalovania.Looped = true
- InktaleMegalovania.SoundId = "rbxassetid://479400768"
- InktaleMegalovania.Volume = 2
- InktaleMegalovania.Name = "[Inktale] - Megalovania"
- InktaleMegalovania.Parent = image
- ChorusSoundEffect.Parent = InktaleMegalovania
- SurfaceGui.ClipsDescendants = true
- SurfaceGui.Face = Enum.NormalId.Top
- SurfaceGui.LightInfluence = 1
- SurfaceGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui.Parent = image
- ViewportFrame.BackgroundColor3 = Color3.new(0,0,0)
- ViewportFrame.BackgroundTransparency = 1
- ViewportFrame.BorderColor3 = Color3.new(0,0,0)
- ViewportFrame.BorderSizePixel = 0
- ViewportFrame.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
- ViewportFrame.Transparency = 1
- ViewportFrame.Parent = SurfaceGui
- 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)
- Camera.Focus = CFrame.new(-50.784,4.345,93.444,1,0,0,0,1,0,0,0,1)
- Camera.Parent = ViewportFrame
- campart.BottomSurface = Enum.SurfaceType.Smooth
- 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)
- campart.Size = Vector3.new(4,1,2)
- campart.TopSurface = Enum.SurfaceType.Smooth
- campart.Transparency = 1
- campart.Name = "campart"
- campart.Parent = ViewportFrame
- table.insert(functions,sandbox(Script,function()
- script.Parent.Parent.Camera.CFrame = script.Parent.CFrame
- end))
- Script.Parent = campart
- Part.Anchored = true
- Part.BottomSurface = Enum.SurfaceType.Smooth
- Part.CFrame = CFrame.new(-43.21,2.185,98.457,-0.959,0,-0.283,0,1,0,0.283,0,-0.959)
- Part.Color = Color3.new(0.906,0.906,0.925)
- Part.Material = Enum.Material.Metal
- Part.Size = Vector3.new(4.273,4.37,0.306)
- Part.TopSurface = Enum.SurfaceType.Smooth
- Part.Parent = Labtop
- Part_1.Anchored = true
- Part_1.BottomSurface = Enum.SurfaceType.Smooth
- Part_1.CFrame = CFrame.new(-43.584,0.145,97.189,-0.959,0,-0.283,0,1,0,0.283,0,-0.959)
- Part_1.Color = Color3.new(0.906,0.906,0.925)
- Part_1.Material = Enum.Material.Metal
- Part_1.Size = Vector3.new(4.273,0.29,2.951)
- Part_1.TopSurface = Enum.SurfaceType.Smooth
- Part_1.Parent = Labtop
- Part_2.Anchored = true
- Part_2.BottomSurface = Enum.SurfaceType.Smooth
- Part_2.CFrame = CFrame.new(-43.579,0.169,96.977,-0.959,0,-0.283,0,1,0,0.283,0,-0.959)
- Part_2.Color = Color3.new(0.357,0.365,0.412)
- Part_2.Material = Enum.Material.Brick
- Part_2.Size = Vector3.new(3.66,0.339,2.129)
- Part_2.TopSurface = Enum.SurfaceType.Smooth
- Part_2.Parent = Labtop
- ClickDetector.Parent = Part_2
- table.insert(functions,sandbox(Script_1,function()
- did = false
- deb = script.Parent.Parent.deb.Value
- script.Parent.ClickDetector.MouseClick:connect(function(p)
- p.Character:MoveTo(script.Parent.Parent.Parent.MainBarrier.Position +Vector3.new(0, 10, 0))
- if did == false then
- did = true
- local talk = "its a beautiful day outside. birds are singing, flowers are blooming, on days like these, kids like you,"
- script.Parent.Parent.Parent.Bubble.Transparency = 0
- script.Parent.Parent.Parent.BubbleComingFrom.Transparency = 0
- script.Parent.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = true
- for i = 1,string.len(talk) do
- wait()
- script.Parent.Parent.Parent.Bubble.SurfaceGui.TextBox.Text = string.sub(talk, 1, i)
- script.Parent.Parent.Parent.Sans["Sans Voice"]:Play()
- end
- wait(1)
- local attack = math.random(1,3)
- script.Parent.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = false
- script.Parent.Parent.Parent.Bubble.Transparency = 1
- script.Parent.Parent.Parent.BubbleComingFrom.Transparency = 1
- if attack == 1 then
- script.Parent.Parent.Parent.Bones.Bottom.Transparency = 0
- script.Parent.Parent.Parent.Bones.Top.Transparency = 0
- for i = 1,math.random(2,6) do
- for i = 1,60 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
- end
- for i = 1,5 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
- end
- for i = 1,5 do
- script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
- end
- for i = 1,60 do
- script.Parent.Parent.Parent.Bones.CFrame = script.Parent.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
- end
- end
- script.Parent.Parent.ParentBones.Bottom.Transparency = 1
- script.Parent.Parent.Parent.Bones.Top.Transparency = 1
- elseif attack == 2 then
- script.Parent.Parent.Parent["Gaster1"].Blast:Play()
- script.Parent.Parent.Parent["Gaster1"].decor.Transparency = 0
- script.Parent.Parent.Parent["Gaster2"].Blast:Play()
- script.Parent.Parent.Parent["Gaster2"].decor.Transparency = 0
- wait(1.9)
- script.Parent.Parent.Parent["Blast1"].Transparency = 0
- wait(1)
- script.Parent.Parent.Parent["Blast1"].Transparency = 1
- script.Parent.Parent.Parent["Gaster1"].decor.Transparency = 1
- script.Parent.Parent.Parent["Gaster2"].decor.Transparency = 1
- elseif attack == 3 then
- script.Parent.Parent.Parent["Gaster3"].Blast:Play()
- script.Parent.Parent.Parent["Gaster3"].decor.Transparency = 0
- wait(1.9)
- script.Parent.Parent.Parent["Blast2"].Transparency = 0
- wait(1)
- script.Parent.Parent.Parent["Blast2"].Transparency = 1
- script.Parent.Parent.Parent["Gaster3"].decor.Transparency = 1
- end
- script.Parent.Parent.Parent.Fight["undertale fight button"].Transparency = 0
- script.Parent.Parent.Parent.Item["undertale fight button"].Transparency = 0
- script.Parent.Parent.Parent.image["[Inktale] - Megalovania"]:Play()
- script.Parent.Parent.Parent.Sans["[Inktale] - Megalovania"]:Play()
- deb = false
- end
- end)
- end))
- Script_1.Parent = Part_2
- BG.Anchored = true
- BG.BottomSurface = Enum.SurfaceType.Smooth
- BG.CFrame = CFrame.new(93.365,358.104,196.115,1,0,0,0,1,0,0,0,1)
- BG.Color = Color3.new(0.067,0.067,0.067)
- BG.Material = Enum.Material.SmoothPlastic
- BG.Size = Vector3.new(0.05,60.81,98.35)
- BG.TopSurface = Enum.SurfaceType.Smooth
- BG.Name = "BG"
- BG.Parent = Model
- BG_1.Anchored = true
- BG_1.BottomSurface = Enum.SurfaceType.Smooth
- BG_1.CFrame = CFrame.new(-10.765,358.51,196.115,1,0,0,0,1,0,0,0,1)
- BG_1.Color = Color3.new(0.067,0.067,0.067)
- BG_1.Material = Enum.Material.SmoothPlastic
- BG_1.Size = Vector3.new(0.05,61.62,98.35)
- BG_1.TopSurface = Enum.SurfaceType.Smooth
- BG_1.Name = "BG"
- BG_1.Parent = Model
- BG_2.Anchored = true
- BG_2.BottomSurface = Enum.SurfaceType.Smooth
- BG_2.CFrame = CFrame.new(41.3,328.954,196.115,1,0,0,0,1,0,0,0,1)
- BG_2.Color = Color3.new(0.067,0.067,0.067)
- BG_2.Material = Enum.Material.SmoothPlastic
- BG_2.Size = Vector3.new(104.18,2.51,98.35)
- BG_2.TopSurface = Enum.SurfaceType.Smooth
- BG_2.Name = "BG"
- BG_2.Parent = Model
- Barrier.Anchored = true
- Barrier.BottomSurface = Enum.SurfaceType.Smooth
- Barrier.CFrame = CFrame.new(-10.765,328.954,196.115,1,0,0,0,1,0,0,0,1)
- Barrier.Color = Color3.new(0.067,0.067,0.067)
- Barrier.Material = Enum.Material.Neon
- Barrier.Size = Vector3.new(0.05,2.51,98.35)
- Barrier.TopSurface = Enum.SurfaceType.Smooth
- Barrier.Transparency = 1
- Barrier.Name = "Barrier"
- Barrier.Parent = Model
- SansVoice.SoundId = "rbxassetid://3188795283"
- SansVoice.Name = "Sans Voice"
- SansVoice.Parent = Barrier
- BG_3.Anchored = true
- BG_3.BottomSurface = Enum.SurfaceType.Smooth
- BG_3.CFrame = CFrame.new(41.3,358.094,245.265,1,0,0,0,1,0,0,0,1)
- BG_3.Color = Color3.new(0.067,0.067,0.067)
- BG_3.Material = Enum.Material.SmoothPlastic
- BG_3.Size = Vector3.new(104.18,60.79,0.05)
- BG_3.TopSurface = Enum.SurfaceType.Smooth
- BG_3.Name = "BG"
- BG_3.Parent = Model
- BG_4.Anchored = true
- BG_4.BottomSurface = Enum.SurfaceType.Smooth
- BG_4.CFrame = CFrame.new(41.3,357.499,146.965,1,0,0,0,1,0,0,0,1)
- BG_4.Color = Color3.new(0.067,0.067,0.067)
- BG_4.Material = Enum.Material.SmoothPlastic
- BG_4.Size = Vector3.new(104.18,59.6,0.05)
- BG_4.TopSurface = Enum.SurfaceType.Smooth
- BG_4.Name = "BG"
- BG_4.Parent = Model
- Barrier_1.Anchored = true
- Barrier_1.BottomSurface = Enum.SurfaceType.Smooth
- Barrier_1.CFrame = CFrame.new(15.153,354.309,196.115,1,0,0,0,1,0,0,0,1)
- Barrier_1.Color = Color3.new(0.067,0.067,0.067)
- Barrier_1.Material = Enum.Material.Neon
- Barrier_1.Size = Vector3.new(0.05,48.3,49.35)
- Barrier_1.TopSurface = Enum.SurfaceType.Smooth
- Barrier_1.Transparency = 1
- Barrier_1.Name = "Barrier"
- Barrier_1.Parent = Model
- Barrier_2.Anchored = true
- Barrier_2.BottomSurface = Enum.SurfaceType.Smooth
- Barrier_2.CFrame = CFrame.new(41.368,354.309,171.465,1,0,0,0,1,0,0,0,1)
- Barrier_2.Color = Color3.new(0.067,0.067,0.067)
- Barrier_2.Material = Enum.Material.Neon
- Barrier_2.Size = Vector3.new(52.48,48.3,0.05)
- Barrier_2.TopSurface = Enum.SurfaceType.Smooth
- Barrier_2.Transparency = 1
- Barrier_2.Name = "Barrier"
- Barrier_2.Parent = Model
- Barrier_3.Anchored = true
- Barrier_3.BottomSurface = Enum.SurfaceType.Smooth
- Barrier_3.CFrame = CFrame.new(41.368,354.309,220.885,1,0,0,0,1,0,0,0,1)
- Barrier_3.Color = Color3.new(0.067,0.067,0.067)
- Barrier_3.Material = Enum.Material.Neon
- Barrier_3.Size = Vector3.new(52.48,48.3,0.05)
- Barrier_3.TopSurface = Enum.SurfaceType.Smooth
- Barrier_3.Transparency = 1
- Barrier_3.Name = "Barrier"
- Barrier_3.Parent = Model
- BG_5.Anchored = true
- BG_5.BottomSurface = Enum.SurfaceType.Smooth
- BG_5.CFrame = CFrame.new(41.3,388.311,196.115,1,0,0,0,1,0,0,0,1)
- BG_5.Color = Color3.new(0.067,0.067,0.067)
- BG_5.Material = Enum.Material.SmoothPlastic
- BG_5.Size = Vector3.new(104.18,2.51,98.35)
- BG_5.TopSurface = Enum.SurfaceType.Smooth
- BG_5.Name = "BG"
- BG_5.Parent = Model
- Sans.Anchored = true
- Sans.BottomSurface = Enum.SurfaceType.Smooth
- Sans.CFrame = CFrame.new(93.315,345.659,195.235,0,-1,0,-1,0,0,0,0,-1)
- Sans.Color = Color3.new(0.067,0.067,0.067)
- Sans.Material = Enum.Material.SmoothPlastic
- Sans.Size = Vector3.new(22.24,0.05,20.61)
- Sans.TopSurface = Enum.SurfaceType.Smooth
- Sans.Name = "Sans"
- Sans.Parent = Model
- InktaleMegalovania_1.Looped = true
- InktaleMegalovania_1.SoundId = "rbxassetid://479400768"
- InktaleMegalovania_1.Volume = 6
- InktaleMegalovania_1.Name = "[Inktale] - Megalovania"
- InktaleMegalovania_1.Parent = Sans
- SurfaceGui_1.Adornee = Sans
- SurfaceGui_1.ClipsDescendants = true
- SurfaceGui_1.Face = Enum.NormalId.Top
- SurfaceGui_1.LightInfluence = 1
- SurfaceGui_1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui_1.Parent = Sans
- ImageLabel.Image = "http://www.roblox.com/asset/?id=3850949431"
- ImageLabel.BackgroundColor3 = Color3.new(1,1,1)
- ImageLabel.BackgroundTransparency = 1
- ImageLabel.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
- ImageLabel.Transparency = 1
- ImageLabel.Parent = SurfaceGui_1
- SansVoice_1.SoundId = "rbxassetid://3188795283"
- SansVoice_1.Volume = 6
- SansVoice_1.Name = "Sans Voice"
- SansVoice_1.Parent = Sans
- dead.SoundId = "rbxassetid://623904185"
- dead.Volume = 7
- dead.Name = "dead"
- dead.Parent = Sans
- Barrier_4.Anchored = true
- Barrier_4.BottomSurface = Enum.SurfaceType.Smooth
- Barrier_4.CFrame = CFrame.new(67.365,354.309,196.115,1,0,0,0,1,0,0,0,1)
- Barrier_4.Color = Color3.new(0.067,0.067,0.067)
- Barrier_4.Material = Enum.Material.Neon
- Barrier_4.Size = Vector3.new(0.05,48.3,49.35)
- Barrier_4.TopSurface = Enum.SurfaceType.Smooth
- Barrier_4.Transparency = 1
- Barrier_4.Name = "Barrier"
- Barrier_4.Parent = Model
- MainBarrier.Anchored = true
- MainBarrier.BottomSurface = Enum.SurfaceType.Smooth
- MainBarrier.CFrame = CFrame.new(41.3,330.604,196.115,1,0,0,0,1,0,0,0,1)
- MainBarrier.Color = Color3.new(0.067,0.067,0.067)
- MainBarrier.Material = Enum.Material.SmoothPlastic
- MainBarrier.Size = Vector3.new(52.18,0.89,49.35)
- MainBarrier.TopSurface = Enum.SurfaceType.Smooth
- MainBarrier.Transparency = 1
- MainBarrier.Name = "MainBarrier"
- MainBarrier.Parent = Model
- SurfaceSelection.TargetSurface = Enum.NormalId.Top
- SurfaceSelection.Adornee = MainBarrier
- SurfaceSelection.Color3 = Color3.new(1,1,1)
- SurfaceSelection.Parent = MainBarrier
- Fight.Anchored = true
- Fight.BottomSurface = Enum.SurfaceType.Smooth
- Fight.CFrame = CFrame.new(63.591,337.109,180.75,0,-1,0,0,0,1,-1,0,0)
- Fight.CanCollide = false
- Fight.Size = Vector3.new(13.36,0.05,6.1)
- Fight.TopSurface = Enum.SurfaceType.Smooth
- Fight.Transparency = 1
- Fight.Name = "Fight"
- Fight.Parent = Model
- undertalefightbutton.Texture = "http://www.roblox.com/asset/?id=311212183"
- undertalefightbutton.Transparency = 1
- undertalefightbutton.Face = Enum.NormalId.Top
- undertalefightbutton.Name = "undertale fight button"
- undertalefightbutton.Parent = Fight
- sound.SoundId = "rbxassetid://357417055"
- sound.Volume = 4
- sound.Name = "sound"
- sound.Parent = Fight
- table.insert(functions,sandbox(Script_2,function()
- deb = script.Parent.Parent.deb.Value
- done = 0
- script.Parent.ClickDetector.MouseClick:connect(function(p)
- if deb == false then
- done = done +1
- deb = true
- script.Parent["undertale fight button"].Transparency = 1
- script.Parent.Parent.Item["undertale fight button"].Transparency = 1
- script.Parent.sound:Play()
- for i = 1,12 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Sans.CFrame = script.Parent.Parent.Sans.CFrame *CFrame.new(0, 0, -2)
- end
- wait(0.5)
- for i = 1,12 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Sans.CFrame = script.Parent.Parent.Sans.CFrame *CFrame.new(0, 0, 2)
- end
- if done ~= 15 then
- script.Parent.Parent.Miss.SurfaceGui.Text.Visible = true
- wait(1)
- script.Parent.Parent.Miss.SurfaceGui.Text.Visible = false
- end
- if done == 15 then
- script.Parent.Parent.Labtop.image["[Inktale] - Megalovania"]:Stop()
- script.Parent.Parent.Sans["[Inktale] - Megalovania"]:Stop()
- end
- if done == 1 then
- local talk = "what. you think im just gonna stand there and take it?"
- script.Parent.Parent.Bubble.Transparency = 0
- script.Parent.Parent.BubbleComingFrom.Transparency = 0
- script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = true
- for i = 1,string.len(talk) do
- wait()
- script.Parent.Parent.Bubble.SurfaceGui.TextBox.Text = string.sub(talk, 1, i)
- script.Parent.Parent.Sans["Sans Voice"]:Play()
- end
- wait(1)
- script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = false
- script.Parent.Parent.Bubble.Transparency = 1
- script.Parent.Parent.BubbleComingFrom.Transparency = 1
- end
- if done ~= 15 then
- local attack = math.random(1,3)
- if attack == 1 then
- script.Parent.Parent.Bones.Bottom.Transparency = 0
- script.Parent.Parent.Bones.Top.Transparency = 0
- for i = 1,math.random(2,6) do
- for i = 1,60 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
- end
- for i = 1,5 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
- end
- for i = 1,5 do
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
- end
- for i = 1,60 do
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
- end
- end
- script.Parent.Parent.Bones.Bottom.Transparency = 1
- script.Parent.Parent.Bones.Top.Transparency = 1
- elseif attack == 2 then
- script.Parent.Parent["Gaster1"].Blast:Play()
- script.Parent.Parent["Gaster1"].decor.Transparency = 0
- script.Parent.Parent["Gaster2"].Blast:Play()
- script.Parent.Parent["Gaster2"].decor.Transparency = 0
- wait(1.9)
- script.Parent.Parent["Blast1"].Transparency = 0
- wait(1)
- script.Parent.Parent["Blast1"].Transparency = 1
- script.Parent.Parent["Gaster1"].decor.Transparency = 1
- script.Parent.Parent["Gaster2"].decor.Transparency = 1
- elseif attack == 3 then
- script.Parent.Parent["Gaster3"].Blast:Play()
- script.Parent.Parent["Gaster3"].decor.Transparency = 0
- wait(1.9)
- script.Parent.Parent["Blast2"].Transparency = 0
- wait(1)
- script.Parent.Parent["Blast2"].Transparency = 1
- script.Parent.Parent["Gaster3"].decor.Transparency = 1
- end
- script.Parent["undertale fight button"].Transparency = 0
- script.Parent.Parent.Item["undertale fight button"].Transparency = 0
- deb = false
- end
- else
- deb = true
- local talk = "heh, you really think you could-"
- script.Parent.Parent.Bubble.Transparency = 0
- script.Parent.Parent.BubbleComingFrom.Transparency = 0
- script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = true
- for i = 1,string.len(talk) do
- wait()
- script.Parent.Parent.Bubble.SurfaceGui.TextBox.Text = string.sub(talk, 1, i)
- script.Parent.Parent.Sans["Sans Voice"]:Play()
- end
- wait(0.1)
- script.Parent.Parent.Sans.dead:Play()
- script.Parent.Parent.Bubble.SurfaceGui.TextBox.Visible = false
- script.Parent.Parent.Bubble.Transparency = 1
- script.Parent.Parent.BubbleComingFrom.Transparency = 1
- wait(1)
- for i = 1,10 do
- script.Parent.Parent.Sans.SurfaceGui.ImageLabel.ImageTransparency = script.Parent.Parent.Sans.SurfaceGui.ImageLabel.ImageTransparency +0.1
- end
- wait(3)
- mas:Destroy()
- end
- end)
- end))
- Script_2.Parent = Fight
- ClickDetector_1.Parent = Fight
- Miss.Anchored = true
- Miss.CFrame = CFrame.new(93.228,358.945,208.34,0,0,1,0,1,0,-1,0,0)
- Miss.Color = Color3.new(0.584,0.475,0.467)
- Miss.Size = Vector3.new(10.98,7.97,0.05)
- Miss.Transparency = 1
- Miss.Name = "Miss"
- Miss.Parent = Model
- SurfaceGui_2.CanvasSize = Vector2.new(200,100)
- SurfaceGui_2.Parent = Miss
- Text.Font = Enum.Font.Arcade
- Text.Text = "MISS"
- Text.TextColor3 = Color3.new(0,0,0)
- Text.TextScaled = true
- Text.TextSize = 48
- Text.TextStrokeColor3 = Color3.new(1,0.298,0.298)
- Text.TextStrokeTransparency = 0
- Text.TextWrapped = true
- Text.BackgroundColor3 = Color3.new(1,1,1)
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
- Text.Transparency = 1
- Text.Visible = false
- Text.Name = "Text"
- Text.Parent = SurfaceGui_2
- Gaster1.Anchored = true
- Gaster1.BottomSurface = Enum.SurfaceType.Smooth
- Gaster1.CFrame = CFrame.new(38.982,343.819,161.728,1,0,0,0,1,0,0,0,1)
- Gaster1.Size = Vector3.new(25.18,25.54,2)
- Gaster1.TopSurface = Enum.SurfaceType.Smooth
- Gaster1.Transparency = 1
- Gaster1.Name = "Gaster1"
- Gaster1.Parent = Model
- decor.Texture = "http://www.roblox.com/asset/?id=323497117"
- decor.Transparency = 1
- decor.Face = Enum.NormalId.Back
- decor.Name = "decor"
- decor.Parent = Gaster1
- Blast.SoundId = "rbxassetid://345052019"
- Blast.Volume = 6
- Blast.Name = "Blast"
- Blast.Parent = Gaster1
- Bones.Anchored = true
- Bones.BottomSurface = Enum.SurfaceType.Smooth
- Bones.CFrame = CFrame.new(67.06,332.869,196.115,0,-1,0,-1,0,0,0,0,-1)
- Bones.CanCollide = false
- Bones.Size = Vector3.new(3.64,0.05,49.11)
- Bones.TopSurface = Enum.SurfaceType.Smooth
- Bones.Transparency = 1
- Bones.Name = "Bones"
- Bones.Parent = Model
- Top.StudsPerTileU = 3.4
- Top.StudsPerTileV = 1
- Top.Texture = "http://www.roblox.com/asset/?id=1132223329"
- Top.Transparency = 1
- Top.Face = Enum.NormalId.Top
- Top.Name = "Top"
- Top.Parent = Bones
- Bottom.StudsPerTileU = 3.2
- Bottom.StudsPerTileV = 1
- Bottom.Texture = "http://www.roblox.com/asset/?id=1132223329"
- Bottom.Transparency = 1
- Bottom.Face = Enum.NormalId.Bottom
- Bottom.Name = "Bottom"
- Bottom.Parent = Bones
- table.insert(functions,sandbox(Script_3,function()
- script.Parent.Touched:connect(function(p)
- if p.Parent:FindFirstChildOfClass("Humanoid") then
- if script.Parent.Bottom.Transparency == 0 then
- p.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
- end
- end
- end)
- end))
- Script_3.Parent = Bones
- Gaster2.Anchored = true
- Gaster2.BottomSurface = Enum.SurfaceType.Smooth
- Gaster2.CFrame = CFrame.new(38.982,343.819,231.513,-1,0,0,0,1,0,0,0,-1)
- Gaster2.Size = Vector3.new(25.18,25.54,2)
- Gaster2.TopSurface = Enum.SurfaceType.Smooth
- Gaster2.Transparency = 1
- Gaster2.Name = "Gaster2"
- Gaster2.Parent = Model
- decor_1.Texture = "http://www.roblox.com/asset/?id=323497117"
- decor_1.Transparency = 1
- decor_1.Face = Enum.NormalId.Back
- decor_1.Name = "decor"
- decor_1.Parent = Gaster2
- Blast_1.SoundId = "rbxassetid://345052019"
- Blast_1.Volume = 6
- Blast_1.Name = "Blast"
- Blast_1.Parent = Gaster2
- Gaster3.Anchored = true
- Gaster3.BottomSurface = Enum.SurfaceType.Smooth
- Gaster3.CFrame = CFrame.new(2.787,343.819,197.462,0,0,1,0,1,0,-1,0,0)
- Gaster3.Size = Vector3.new(25.18,25.54,2)
- Gaster3.TopSurface = Enum.SurfaceType.Smooth
- Gaster3.Transparency = 1
- Gaster3.Name = "Gaster3"
- Gaster3.Parent = Model
- decor_2.Texture = "http://www.roblox.com/asset/?id=323497117"
- decor_2.Transparency = 1
- decor_2.Face = Enum.NormalId.Back
- decor_2.Name = "decor"
- decor_2.Parent = Gaster3
- Blast_2.SoundId = "rbxassetid://345052019"
- Blast_2.Volume = 6
- Blast_2.Name = "Blast"
- Blast_2.Parent = Gaster3
- Blast1.Anchored = true
- Blast1.BottomSurface = Enum.SurfaceType.Smooth
- Blast1.CFrame = CFrame.new(38.982,334.864,185.068,1,0,0,0,1,0,0,0,1)
- Blast1.CanCollide = false
- Blast1.Color = Color3.new(0.973,0.973,0.973)
- Blast1.Material = Enum.Material.Neon
- Blast1.Size = Vector3.new(25.18,7.63,139.14)
- Blast1.TopSurface = Enum.SurfaceType.Smooth
- Blast1.Transparency = 1
- Blast1.Name = "Blast1"
- Blast1.Parent = Model
- table.insert(functions,sandbox(Script_4,function()
- script.Parent.Touched:connect(function(p)
- if p.Parent:FindFirstChildOfClass("Humanoid") then
- if script.Parent.Transparency == 0 then
- p.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
- end
- end
- end)
- end))
- Script_4.Parent = Blast1
- Blast2.Anchored = true
- Blast2.BottomSurface = Enum.SurfaceType.Smooth
- Blast2.CFrame = CFrame.new(30.942,334.864,195.398,1,0,0,0,1,0,0,0,1)
- Blast2.CanCollide = false
- Blast2.Color = Color3.new(0.973,0.973,0.973)
- Blast2.Material = Enum.Material.Neon
- Blast2.Size = Vector3.new(111.34,7.63,16.1)
- Blast2.TopSurface = Enum.SurfaceType.Smooth
- Blast2.Transparency = 1
- Blast2.Name = "Blast2"
- Blast2.Parent = Model
- table.insert(functions,sandbox(Script_5,function()
- script.Parent.Touched:connect(function(p)
- if p.Parent:FindFirstChildOfClass("Humanoid") then
- if script.Parent.Transparency == 0 then
- p.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
- end
- end
- end)
- end))
- Script_5.Parent = Blast2
- Item.Anchored = true
- Item.BottomSurface = Enum.SurfaceType.Smooth
- Item.CFrame = CFrame.new(63.591,337.109,213.224,0,-1,0,0,0,1,-1,0,0)
- Item.CanCollide = false
- Item.Size = Vector3.new(13.36,0.05,6.1)
- Item.TopSurface = Enum.SurfaceType.Smooth
- Item.Transparency = 1
- Item.Name = "Item"
- Item.Parent = Model
- undertalefightbutton_1.Texture = "http://www.roblox.com/asset/?id=1511885931"
- undertalefightbutton_1.Transparency = 1
- undertalefightbutton_1.Face = Enum.NormalId.Top
- undertalefightbutton_1.Name = "undertale fight button"
- undertalefightbutton_1.Parent = Item
- sound_1.SoundId = "rbxassetid://357417055"
- sound_1.Volume = 4
- sound_1.Name = "sound"
- sound_1.Parent = Item
- table.insert(functions,sandbox(Script_6,function()
- deb = script.Parent.Parent.deb.Value
- script.Parent.ClickDetector.MouseClick:connect(function(p)
- if deb == false then
- deb = true
- script.Parent.Parent.Fight["undertale fight button"].Transparency = 1
- script.Parent["undertale fight button"].Transparency = 1
- p.Character:FindFirstChildOfClass("Humanoid").Health = p.Character:FindFirstChildOfClass("Humanoid").MaxHealth
- local attack = math.random(1,3)
- if attack == 1 then
- script.Parent.Parent.Bones.Bottom.Transparency = 0
- script.Parent.Parent.Bones.Top.Transparency = 0
- for i = 1,math.random(2,6) do
- for i = 1,60 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
- end
- for i = 1,5 do
- game:GetService("RunService").Stepped:wait()
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, 1, 0)
- end
- for i = 1,5 do
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
- end
- for i = 1,60 do
- script.Parent.Parent.Bones.CFrame = script.Parent.Parent.Bones.CFrame *CFrame.new(0, -1, 0)
- end
- end
- script.Parent.Parent.Bones.Bottom.Transparency = 1
- script.Parent.Parent.Bones.Top.Transparency = 1
- elseif attack == 2 then
- script.Parent.Parent["Gaster1"].Blast:Play()
- script.Parent.Parent["Gaster1"].decor.Transparency = 0
- script.Parent.Parent["Gaster2"].Blast:Play()
- script.Parent.Parent["Gaster2"].decor.Transparency = 0
- wait(1.9)
- script.Parent.Parent["Blast1"].Transparency = 0
- wait(1)
- script.Parent.Parent["Blast1"].Transparency = 1
- script.Parent.Parent["Gaster1"].decor.Transparency = 1
- script.Parent.Parent["Gaster2"].decor.Transparency = 1
- elseif attack == 3 then
- script.Parent.Parent["Gaster3"].Blast:Play()
- script.Parent.Parent["Gaster3"].decor.Transparency = 0
- wait(1.9)
- script.Parent.Parent["Blast2"].Transparency = 0
- wait(1)
- script.Parent.Parent["Blast2"].Transparency = 1
- script.Parent.Parent["Gaster3"].decor.Transparency = 1
- end
- script.Parent.Parent.Fight["undertale fight button"].Transparency = 0
- script.Parent["undertale fight button"].Transparency = 0
- deb = false
- end
- end)
- end))
- Script_6.Parent = Item
- ClickDetector_2.Parent = Item
- eyecover.BottomSurface = Enum.SurfaceType.Smooth
- eyecover.CFrame = CFrame.new(93.19,352.414,198.06,1,0,0,0,1,0,0,0,1)
- eyecover.Color = Color3.new(0.067,0.067,0.067)
- eyecover.Material = Enum.Material.SmoothPlastic
- eyecover.Size = Vector3.new(0.2,1.37,2)
- eyecover.TopSurface = Enum.SurfaceType.Smooth
- eyecover.Transparency = 1
- eyecover.Name = "eyecover"
- eyecover.Parent = Model
- eyecover2.BottomSurface = Enum.SurfaceType.Smooth
- eyecover2.CFrame = CFrame.new(93.19,352.414,192.421,1,0,0,0,1,0,0,0,1)
- eyecover2.Color = Color3.new(0.067,0.067,0.067)
- eyecover2.Material = Enum.Material.SmoothPlastic
- eyecover2.Size = Vector3.new(0.2,1.37,2)
- eyecover2.TopSurface = Enum.SurfaceType.Smooth
- eyecover2.Transparency = 1
- eyecover2.Name = "eyecover2"
- eyecover2.Parent = Model
- BubbleComingFrom.Anchored = true
- BubbleComingFrom.BottomSurface = Enum.SurfaceType.Smooth
- BubbleComingFrom.CFrame = CFrame.new(93.315,347.889,209.755,-1,0,0,0,0,1,0,1,0)
- BubbleComingFrom.Color = Color3.new(0.973,0.973,0.973)
- BubbleComingFrom.Size = Vector3.new(0.05,2.21,2)
- BubbleComingFrom.Name = "BubbleComingFrom"
- BubbleComingFrom.Parent = Model
- Bubble.Anchored = true
- Bubble.CFrame = CFrame.new(93.315,351.409,211.905,0,0,1,0,1,0,-1,0,0)
- Bubble.Color = Color3.new(0.973,0.973,0.973)
- Bubble.Material = Enum.Material.SmoothPlastic
- Bubble.Size = Vector3.new(6.45,5.06,0.05)
- Bubble.Name = "Bubble"
- Bubble.Parent = Model
- SurfaceGui_3.CanvasSize = Vector2.new(200,100)
- SurfaceGui_3.Parent = Bubble
- TextBox.Font = Enum.Font.Arcade
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(0,0,0)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- TextBox.BackgroundColor3 = Color3.new(1,1,1)
- TextBox.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
- TextBox.Parent = SurfaceGui_3
- deb.Value = true
- deb.Name = "deb"
- deb.Parent = Model
- for i,v in ipairs(functions) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in ipairs(mas:GetChildren()) do
- v.Parent = workspace
- end
- mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement