Hellu, I created a RemoveButton script but whenever I reset anyway, it comes back, I was wondering if someone could help me with keeping it removed until they join back after leaving or something.
This is what the script looks like: (its a local script btw) (also it does work)
1 | button = script.Parent |
2 | window = script.Parent.Parent.Parent |
3 |
4 | function onClicked(GUI) |
5 | window:remove() |
6 | end |
7 |
8 | script.Parent.MouseButton 1 Click:connect(onClicked) |
Maybe try this:
1 | local button = script.Parent |
2 | local window = script.Parent.Parent.Parent |
3 |
4 | function onClicked(GUI) |
5 | window.Transparency = "1" |
6 | end |
7 |
8 | script.Parent.MouseButton 1 Click:connect(onClicked) |
IDK if that will work...
What I will do is I will add bool value to starter pack. Name it "Testing". Script should be local script.
1 | while wait() do |
2 | if game.Players.LocalPlayer.Testing.Value = = true then --Checks Bool Value That Is Named Testing |
3 | window.Transparency = 1 --If Testing Is True (Enabled) Then It Will Make It Invisible. |
4 | else --If False |
5 | window.Transparency = 0 --Make Window Visible. |
6 | end |
7 | end |
And make another local script:
1 | function onClicked() |
2 | if game.Players.LocalPlayer.Testing.Value = = true then |
3 | game.Players.LocalPlayer.Testing.Value = false |
4 | else |
5 | game.Players.LocalPlayer.Testing.Value = true |
6 | end |
7 | end |