Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

disable a script only runs ween player added?

Asked by
Filipalla 504 Moderation Voter
7 years ago
Edited 7 years ago
game:GetService("Players").PlayerAdded:connect(function(player)
    while true do
        wait(5)
        lessons=math.random(1,5)
            if lessons == 1 then
            --swimming
            game:WaitForChild("ServerStorage").Lessons:clone().Parent = player.PlayerGui
            player.PlayerGuiLessons.Swimming.Visible = true
        wait(60)    
        end
    end
end)

i need to be able to disable this script but the code only runs ween player join plz help Edit https://scriptinghelpers.org/questions/33194/script-execute-at-a-specific-ingame-time i write this before Edit i want to disable this script from another script ween ingame time is 16:00:00 and enable ween its 08:00:00 but the script only runs ween PlayerAdded and the PlayerAdded is needed to find the player becuse it has to be a serverscript

0
i think i need to pay for a scripter:/ Filipalla 504 — 7y
0
Well you're on the wrong site for that. ScriptGuider 5640 — 7y
0
if nobody answare i mean Filipalla 504 — 7y
0
Well, we're not completely sure what you're trying to do. And you're not using proper grammar for us to even begin to understand you. M39a9am3R 3210 — 7y
View all comments (3 more)
0
You need to be much cleare on what you want to do with this script before we can begin to help you. GoldenPhysics 474 — 7y
0
Edited again Filipalla 504 — 7y
0
M39a9am3R my grammar is not good becuse im not from us or uk im from sweden Filipalla 504 — 7y

Answer this question