#published my game but it wont open

67 messages · Page 1 of 1 (latest)

frigid creek
#

My guess is some guy adding in scripts via the toolbox thingy without ever reading what they exactly do

frigid creek
#

Probably not well enough as there is most likely some malicious one in it. One malicious line is plenty to cause something like this

green stratus
#

-- Server scripts can NOT be decompiled

#

what is this

frigid creek
modern inlet
# green stratus -- Server scripts can NOT be decompiled

for** roblox there exist executors, and if u insert a "game decompiler" script u can basically copy the game u are in, but the decompiler warns u that server scripts can not be decompiled (can not be copied) only local scripts and sometimes modules

green stratus
#

@everyone so how do i fix it

#

i can send my scripts

#

only error im getting

modern inlet
#

u need to insert it in lighting

#

not workspace

#

if thats what youre trying to do

green stratus
#

it is in lightning tho

#

this is the script

modern inlet
#

first off

#

that will change the sky for everyone

#

sicne its a script

#

and second

#

wdym game.workspace.orangesky.parent

#

OH

#

wait

#

im stupid

#

nvm

modern inlet
green stratus
modern inlet
#

dont change its parent normally because if u do so then if the part is touched multiple times

#

it will error

green stratus
#

so do i remove the game.lighting.sky.parent = game.workspace line

#

and make it a localscript?

modern inlet
#

copy the whole code and paste it in a local script

#

and do

local OrangeSkyClone = workspace.OrangeSky:Clone()
OrangeSkyClone.Parent = game.Lighting
green stratus
#

do i delete the script

modern inlet
#

yes but first copy the code inside it and paste it in a local script

#

and replace the first line from the touched event

green stratus
#

like this?

modern inlet
#

no 😭

#
script.Parent.Touched:Connect(function()
if game.Lighting.OrangeSky == nil then
local OrangeSkyClone = workspace.OrangeSky:Clone()
OrangeSkyClone.Parent = game.Lighting

game.Lighting.Sky.Parent = game.Workspace
end
end)
#

u will have to align the contents inside the touched event tho

#

i write this here on discord

#

oh wait

#

let me add something

green stratus
#

like this?

agile sapphireBOT
#

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

modern inlet
#

yup

#

try it

#

if u get any errors lmk

green stratus
#

sky in lightning and orange sky in workspace?

modern inlet
#

if thats how u want to do it then its fine

green stratus
#

how does it need to be

modern inlet
#

im guessing u could also insert both in lighting and when u touch the part to enable the orange sky and to disable the normal sky

green stratus
#

no errors but the script doesnt work

modern inlet
#

enabled is not a proprety of sky i just hcecked

#

my wifi is ass

modern inlet
#

add debug prints

green stratus
#

if it makes a difference

#

the part is big

#

with the script deleted the game is still not working