RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a part that plays a loading screen on player touch"
-- local script for the loading screen local part = script.Parent local player = game:GetService("Players").LocalPlayer local loadingScreen = player.PlayerGui.LoadingScreen local function showLoadingScreen(otherPart) local playerCharacter = player.Character or player.CharacterAdded:Wait() if otherPart.Parent == playerCharacter then loadingScreen.Enabled = true wait(5) loadingScreen.Enabled = false end end part.Touched:Connect(showLoadingScreen)