Advertisement
Sungmingamerpro13

Ending Type C (STORY GAME)

Nov 20th, 2024 (edited)
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.45 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local EndingEvent = game.ReplicatedStorage.EndEvent
  3.  
  4. local player = game.Players.LocalPlayer
  5. local EndFrame = player.PlayerGui:WaitForChild("DialogueGui").Ending
  6.  
  7. local function Teleport()
  8.     TeleportService:Teleport(10078270331)
  9. end
  10.  
  11. EndingEvent.OnClientEvent:Connect(function(Text)
  12.     EndFrame.Visible = true
  13.     EndFrame.BackToLobby.MouseButton1Click:Connect(function()
  14.         Teleport()
  15.     end)
  16. end)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement