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

Is this script correct?

Asked by 8 years ago

This is a script I'm using to show a gui to only one person. Here is the script. Please if I do have some things wrong don't down vote....

script.Parent.Visible = false
local modscreen = script.Parent 
local player = game.Players.LocalPlayer

if player.Name == "DigitalZer3" then
    script.Parent.Visible = true


end

if player.Name ~= "DigitalZer3" then
    print("k")
end
if player.Name == "DigitalZer3" and script.Parent.Visible == true then
    print('its alive!')
end

PLEASE IF I HAVE SOMETHING WRONG CORRECT IT, IT WOULD BE VERY HELPFULL. :D

1
Seems good. pluginfactory 463 — 8y
0
Ty :D digitalzer3 123 — 8y
1
no problem :D pluginfactory 463 — 8y
0
One comment, the local for modscreen seems pointless, as it isnt being used in this block. pluginfactory 463 — 8y
View all comments (2 more)
0
You have a capital in Digitalzer, but your name is digitalzer. Lua is cap sensitive. So be careful with that. fireboltofdeath 635 — 8y
0
^ My actual roblox name is DigitalZer3 with caps :P. digitalzer3 123 — 8y

Answer this question