Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- In-GameUIs GUI
- local screenGUI = playerGui:WaitForChild("In-GameUIs", 5)
- if not screenGUI then
- warn("In-GameUIs ScreenGui not found within 5 seconds")
- return
- end
- local mainFrame = screenGUI:WaitForChild("Main", 5)
- if not mainFrame then
- warn("Main Frame not found within 5 seconds")
- return
- end
- local inGame = mainFrame:WaitForChild("InGame", 5)
- if not inGame then
- warn("InGame Frame not found within 5 seconds")
- return
- end
- -- UI Elements with error handling
- local currentLevel = inGame:WaitForChild("CurrentLevel", 5)
- if not currentLevel then
- warn("CurrentLevel TextLabel not found within 5 seconds")
- return
- end
- local currentWord = inGame:WaitForChild("CurrentWord", 5)
- if not currentWord then
- warn("CurrentWord TextLabel not found within 5 seconds")
- return
- end
- local wordsLeft = inGame:WaitForChild("WordsLeft", 5)
- if not wordsLeft then
- warn("WordsLeft TextLabel not found within 5 seconds")
- return
- end
- local timerText = inGame:WaitForChild("Timer", 5)
- if not timerText then
- warn("Timer TextLabel not found within 5 seconds")
- return
- end
- local timeElapsedText = inGame:WaitForChild("TimeElapsed", 5)
- if not timeElapsedText then
- warn("TimerElapsed TextLabel not found within 5 seconds")
- return
- end
- local pointText = inGame:WaitForChild("Point", 5)
- if not pointText then
- warn("Point TextLabel not found within 5 seconds")
- return
- end
- local multiplierText = pointText:WaitForChild("Multiplier", 5)
- if not multiplierText then
- warn("Multiplier TextLabel not found within 5 seconds")
- return
- end
- local gameOverText = inGame:WaitForChild("GameOverText", 5)
- if not gameOverText then
- warn("GameOverText TextLabel not found within 5 seconds")
- return
- end
- -- TextBox for typing words
- local TextBox = mainFrame:WaitForChild("EnterWord", 5)
- if not TextBox then
- warn("Enter Word TextLabel not found within 5 seconds")
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement