#works on test game but not on main

1 messages · Page 1 of 1 (latest)

dapper cipher
#

so i wanted to make a global trade thing where people can write messages which everyone will see. it works perfectly in an empty test game but not in my main full game

nimble pike
#

is it published?

#

@dapper cipher

dapper cipher
#

ye bro

#

i acc need help

#

i got popular game rn

#

IT JUST WONT WORK 😔

nimble pike
#

is ur version in roblox studio the same in real roblox

dapper cipher
#

wym

nimble pike
#

go to settings and then click publish game

dapper cipher
#

ye

#

do u want to see the script?

nimble pike
#

im pretty sure this is js a version issue

#

but yeah

nimble pike
tender warrenBOT
#

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

dapper cipher
#

but other one works when im testing in studio and the main doesnt

dapper cipher
#

1 sec

#

serverscript:

#

local script

nimble pike
#

did u do the thing i said yet

#

?

dapper cipher
#

Nah

#

I thought you're gonna check the script first

#

ill do it

nimble pike
#

doooo ittttttt!

#

while i check

dapper cipher
#

oh yea the thing is. i dont rlly wanna publish because what if it doesnt work.

#

there are players playing rn

nimble pike
#

i dont think publishing fully shutdowns the game

#

it only rolls out for new servers

dapper cipher
#

alr ill test it in priv

#

ok i published to roblox now

nimble pike
#

join a priv

full osprey
dapper cipher
#

@nimble pike

nimble pike
#

ruh oh

dapper cipher
#

thats new

full osprey
#

so your handling it on the client?

dapper cipher
#

?

full osprey
#

what game is it btw

dapper cipher
#

gardening trading hub

nimble pike
#

but anyways

dapper cipher
#

ye

#

do u guys wanna join my test game?

#

too see how its gonna be like

nimble pike
nimble pike
nimble pike
full osprey
#

if you want

dapper cipher
dapper cipher
#

join

nimble pike
#

send a pic of everything surrounding your scripts in ur test place and also ur game place

dapper cipher
#

kk

#

is that what u meant

nimble pike
#

yeah

#

now how is it in main game

dapper cipher
tender warrenBOT
#

studio** You are now Level 2! **studio

full osprey
#

what works in game, what doesnt?

nimble pike
#

ahhhshdhshilfdbjgsdlijhga.digjhda,righd,sthijdhsdth

#

im tweaking

nimble pike
#

oh

#

what ahout line 19

#

send a pic of ur entire output

dapper cipher
#

in studio=

#

?

nimble pike
#

yeah

#

main game

dapper cipher
#

ignore the other prints lol

#

but like i said

#

nothing in output

full osprey
#

holy

dapper cipher
#

😭

full osprey
#

you dont need to print allat

dapper cipher
#

ik

#

i will remove it

full osprey
#

can i just ask

nimble pike
#

animation spoofer cant run in game

full osprey
#

what part exactly doesnt work

dapper cipher
#

the message part

#

global trade thing

nimble pike
full osprey
#

what does it look like when you try do it in game

#

can we see?

nimble pike
#

@dapper cipher js wanna point out a part of ur campfire thing is unanchored

dapper cipher
#

oh ye

#

soo

#

what do we do now

dapper cipher
#

the message thing wont appear

#

@full osprey

full osprey
#

okay and what part of your script handles the message appearing?

dapper cipher
#

@nimble pike

nimble pike
#

no errors right?

dapper cipher
#

nah

full osprey
#

i genuinely dont see why this isnt workin

dapper cipher
#

me too

nimble pike
#

same

dapper cipher
#

i tried everything

#

ai, friends

#

sometimes guis only work when i use script.parent.parent.parent...... and not game.startergui....

nimble pike
#

submit all 3 scripts to ai and ask it if it sees anything wrong (DO NOT USE THE SCRIPT IT GIVES TO)

#

desperate resort

#

theres prob one tiny detail we cant spot out

dapper cipher
#

whoever can fix it without issues for me gets 350 robux

nimble pike
#

thinking hard rn

#

ermmmmmmmmm

#

IN THE MAIN GAME version of ur script

#

umm

full osprey
#

you got that

#

are you 100% sure the scripts are identical?

#

cus if they are the only thing could maybe be a setting issue?

#

or scripts are fighting eachother basically

dapper cipher
#

yes im sure that the scripts are identical

nimble pike
#

uhhh

dapper cipher
#

we need more devs or scripters here

tender warrenBOT
#

studio** You are now Level 3! **studio

nimble pike
#

last resort

nimble pike
#

try to require( them

dapper cipher
#

Alr

nimble pike
#

if the code stops then its something there

dapper cipher
#

wait how do i require variables? like this? local startergui = require(game:getservice())

nimble pike
#

pretty sure its like that but if u type it wrong roblox will underline it

#

i think its js require(game:Getservice”blah”)

full osprey
#

why are you requiring services?

dapper cipher
nimble pike
#

im js checking

#

ahhhhhhhh broooo

nimble pike
dapper cipher
full osprey
#

you dont require services

#

idk why he said to do that

#

lol

dapper cipher
#

Lol

full osprey
#

oh

nimble pike
#

MUAHAHAHA

dapper cipher
#

thats new chill

full osprey
#

yeah yeah yeah

nimble pike
#

uh

#

im going crazy

dapper cipher
#

calm down its ok

full osprey
#

this just means your event is just never there

#

so

dapper cipher
#

i think im gonna create a removeevent manually

#

instead of instance.new

nimble pike
#

maybe misspelled

full osprey
#

oh

#

yeah i wouldnt do that

#

just put it in replicated storage

dapper cipher
#

i was too lazy to create one

#

alright

full osprey
#
local GlobalTradeEvent = ReplicatedStorage.SponsorTradeEvent
tender warrenBOT
#

studio** You are now Level 17! **studio

full osprey
#
local GlobalTradeEvent = ReplicatedStorage:WaitForChild("SponsorTradeEvent")

#

something should work

#

hopefully

dapper cipher
#

theres no globaltrade event

nimble pike
#

cuz he had folders

dapper cipher
#

only these two

full osprey
#

the variable name doesnt matter

#

just do whatever

#

it was just an example

dapper cipher
#

alright

nimble pike
dapper cipher
#

alr done

#

i created remoteevents

nimble pike
#

edit ur code to wait for those events now

dapper cipher
#

how

#

waitforchild?

full osprey
#

yes

dapper cipher
#

i alr did

nimble pike
dapper cipher
#

should i publish now

nimble pike
#

i think

full osprey
#

show us the code and explorer first

dapper cipher
#

dw

full osprey
#

looks good

nimble pike
dapper cipher
#

Ok

#

still no message

full osprey
#

any errors now?

nimble pike
#

um

dapper cipher
#

nah

nimble pike
#

ru you SUPER DUPER DUPER SURE

#

that u pasted EVERYTHING relevant from test place to game place

full osprey
#

😭

#

are the uis actually in the main game too

dapper cipher
nimble pike
dapper cipher
#

o

#

where

nimble pike
dapper cipher
nimble pike
#

ima js

#

try the require thing again

#

one last time

nimble pike
#

all the wait for child uis

#

do require( one last time

#

lets just check if any ui is missing

dapper cipher
#

alr

tender warrenBOT
#

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

dapper cipher
#

wait

#

@nimble pike

nimble pike
#

?

dapper cipher
#

do i have to change all these to require

#

or add require to all these

nimble pike
#

just the ones that wait for ui

#

do the require( thing i told you

#

sponser trade event and display trade event is fine already

dapper cipher
#

alr

#

why dis red now??

nimble pike
#

is there any errors in output

#

check output for why

dapper cipher
#

its the red variable error

nimble pike
#

erm

full osprey
nimble pike
#

right

full osprey
#

("Message"))

nimble pike
#

i was lookin somewhere else 🙏🙏

dapper cipher
#

damn

nimble pike
#

superhuman

dapper cipher
nimble pike
#

show line 11

#

oh

nimble pike
tender warrenBOT
#

studio** You are now Level 8! **studio

dapper cipher
#

@full osprey come back 🥺

nimble pike
#

does Player refer to the player itself?

full osprey
#

your not meant to require stuff

#

only modulescripts

#

thats what its for

nimble pike
full osprey
#

it doesnt work on gui objects

nimble pike
#

or im stupid

#

🙂

dapper cipher
#

so do i remove require now?

full osprey
#

you cant require gui objects

nimble pike
#

😔

nimble pike
full osprey
#

anything ui will likely return that error

dapper cipher
#

yes

#

hes right

full osprey
#

requiring is just for module scripts

dapper cipher
nimble pike
dapper cipher
#

game.startergui....?

whole remnant
#

making global trading like this isnt a smart idea, if too many people are making trades and trade requests it will overload the server and cancel requests which can end up in items being duplicated (max global requests you can send is 10 per minute)

dapper cipher
#

but

#

every other game has this too

#

idk how they are doing it tho

nimble pike
dapper cipher
#

tag filter?

elder grotto
whole remnant
#

most likely using a 3rd party as in their own server host to send requests to

#

and tht costs money

nimble pike
dapper cipher
#

fr

nimble pike
#

check starter gui for all the ui things u used waitforchild for

#

check if anything is missing or u have misspellings

dapper cipher
#

k

#

u check too pls

#

i checked everything

nimble pike
#

did u see anything wrong

dapper cipher
#

nah

#

we need superhuman again

nimble pike
#

fr

#

@full osprey superhuman

#

yo

full osprey
#

is sponsortradeui enabled

dapper cipher
#

yes

#

bro i think the tweening is the issue

full osprey
#

remove the tweens

#

and test

dapper cipher
#

i removed tweens

#

it wont turn visible!!1!1!

full osprey
#

this would be way easier if i could see the script in realtime

#

but its fine

#

show the script now

#

maybe you didnt remove it fully