#script does not get enabled even when set enabled = true

111 messages · Page 1 of 1 (latest)

balmy spruce
#

i have a script in serverscriptservice that activates a script in a screengui in startergui, the problem is once the script in serverscriptservice tries to enable the script it doesnt get enabled

#

here is the script in the screengui (60over)

print("dang part 2") local over = script.Parent

#

it prints dang but not dang part 2

tawdry eagle
#

i think its a i think its a carrot

mental lionBOT
#

studio** You are now Level 7! **studio

bleak sparrow
balmy spruce
#

script in serverscriptservice

#

script in screengui(60over)

shadow flame
#

hey

#

this might be wrong but

#

If your script is inside the proximity prompt

#

you should have the guided script be enabled before you destroy the proximity

balmy spruce
#

no sorry the script is in a screengui in startergui

shadow flame
#

e

tawdry eagle
#

e

balmy spruce
#

e

#

this my friend

shadow flame
#

whats the script in the screen gui meant to do

#

is it meant to play for one person

#

or

balmy spruce
shadow flame
#

ok

balmy spruce
#

when they die

#

um

shadow flame
#

so id assume it s a local script ye?

balmy spruce
#

oh

shadow flame
#

when they die they hit the griddy

balmy spruce
#

no its a script

balmy spruce
shadow flame
#

ok so

tawdry eagle
#

darke

#

swalalala

#

swalala

#

swallala

#

swalala

shadow flame
#

oh ok i get it

#

its kinda like a res

balmy spruce
#

yea

shadow flame
#

ight

balmy spruce
#

i set it to localscript let me try it now

shadow flame
#

no no no

#

i dont think that would solve our problem here lol

balmy spruce
#

hurr

#

ok

shadow flame
#

i just need to know

#

is the guided.script a local or a regular script

#

thats the one i need to know

#

oh wait no i dont

#

i think i know what wrong

balmy spruce
#

what wrong

shadow flame
#

you are referring to the script through startergui

#

but we want it to happen for the one player

mental lionBOT
#

studio** You are now Level 14! **studio

shadow flame
#

so instead we would have to use playergui

#

which is basically just the gui a player/client

#

hence the name

balmy spruce
#

no wait

#

the problem

#

is

#

its not appearing at all

#

like

#

the script

#

itself

#

is not enableing

shadow flame
#

yeawhat

#

the one we're tryna enable yeah?

balmy spruce
#

yea

shadow flame
#

i thought we would need to enable it through the player gui

#

because usually

#

nvm

#

i forgot what i was about to say

tawdry eagle
#

bro forgor

shadow flame
#

if you can

shadow flame
#

can you replace the guided.Script.Enabled with this

#

player.PlayerGui:FindFirstChild("60over").Script = enabled

#

i just made it so that instead of startergui its playergui

balmy spruce
#

so do i move 60over to playergui

#

or wait

shadow flame
#

no no no

#

basically

#

hold on

#

lemme get on studio for this

balmy spruce
#

like this

shadow flame
#

ye

#

anyway

#

in this picture

#

this is the startergui right

#

its got 60over

balmy spruce
#

yes

shadow flame
#

when a player's in the game

#

you can find something called playergui

#

player gui basically just replicates the starter gui

#

for the player to see

#

for that specific player

balmy spruce
#

yup

shadow flame
#

thats what i mean by PlayerGui

balmy spruce
#

ok ill try it out

shadow flame
#

so when i refer to PlayerGui

#

thats what i mean

#

watch it not work tho lol

#

ima go do some stuff irl for a bit

balmy spruce
#

it works

mental lionBOT
#

studio** You are now Level 4! **studio

balmy spruce
#

thank you