#I need help making Server scripts become Client only

1 messages · Page 1 of 1 (latest)

tropic oak
#

As I am making a singleplayer FNAF roblox game, I need help making this game be client sided, because my friend and I made some of the key components server-sided (Time, Doors and a Flash mechanic), and I can't figure out how to make them client sided and my friend hasn't been really active in this game, if anyone can tell me how to pass Server scripts to Client without them bugging I would aprecciate it

tropic oak
# rare edge remotes?

It does use a lot of remotes but I don't get them to work properly
Last time we tried to make the game client sided it messed up scripts that we didn't even touch and mess up timers that aren't related to the door scripts

rare edge
#

To convert to client side, you have to do it manually. Theres nothing that can automate it. (Not including AI)

copper hatchBOT
#

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

rare edge
tropic oak
rare edge
#

can you show me some scripts?

tropic oak
#

okay

#

@rare edge before anything, to make a remote client sided it has to fire to the server from a local script, right?

#

or do i have to make it fire to the client from the server?

#

because that might be the thing im doing wrong and i will feel like a stupid person

median orchid
copper hatchBOT
#

studio** You are now Level 1! **studio

tropic oak
#

I am gonna explain even more about this

#

So I want the game to have absolutely NO interaction/delay from the server whatsoever (at least from gameplayside)

median orchid
#

Um

tropic oak
#

And I can't figure out if I have to remake the scripts without the remotes

median orchid
#

Im confused, you want to make a game (Fnaf) but only with local scripts?

open mantle
#

you cant make every script local that just doesnt work

tropic oak
#

But I am trying to make the main gameplay local scripts

open mantle
#

ok, why

tropic oak
#

So the gameplay doesnt feel laggy or unfair because lag

open mantle
#

oh is it laggy rn

tropic oak
open mantle
#

understandable i guess

#

i mean i cant really help without the scripts

tropic oak
#

If it was like a easy game I really wouldn't mind but this game is really hard so I don't want laggy inputs

tropic oak
open mantle
#

i mean how bad is the ping

#

it shouldnt be that big of a deal unless you are just playing on 200+ ping, at that point you should get a third party app to reduce it or something

#

or maybe move outside of alaska

tropic oak
open mantle
#

on studio or on roblox

median orchid
#

Then thats your hardware/software

tropic oak
#

Roblox

open mantle
#

cause studio is kinda laggy

#

ah

tropic oak
open mantle
#

the game might be poorly optomized

median orchid
#

Hm

open mantle
#

do you get lagspikes on other games?

tropic oak
#

I have made a game client sided and it works perfectly fine but I can't find out how to pass a server script to a local script

median orchid
#

Can you show us the explorer

tropic oak
#

😭

open mantle
#

oh ok damn just a skill issue

tropic oak
tropic oak
median orchid
tropic oak
median orchid
#

I can join on iphone rn and test if you want, to confirm

open mantle
#

send gam link

tropic oak
#

guys i dont think you understand why im wanting to do it

open mantle
#

no dud i need to see this lag

tropic oak
#

im talking about you being able to play the game no matter your ping

median orchid
#

Thats just not possible.

#

U want to make an offline game

#

Not possible

tropic oak
#

even if you have 2 or 500 it should be the same experience

tropic oak
#

obviously i have to make parts server sided for it to even work

#

lemme send the game with the server sided mechanics

median orchid
#

upon revieving the experience

#

i dont see where the problem is at all

#

everything works perfectly fine, no spikes no nothing

#

the animations are a bit clapped but I think thats intentional

tropic oak
#

ok, got it

copper hatchBOT
#

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

median orchid
#

U sure? I might have misunderstood it but based on what you said your “problem” is that there is spike lags and therefore you want to use less server scripts

#

however, there are no spike lags at all

tropic oak
#

the problem is that if you have bad internet the game is unplayable

#

for a multiplayer game it would be understandable

#

but its a singleplayer game

#

if you can join it then you can play it

#

thats how i think of it

#

so the least i can do now i remake these scripts

#

but yall helped me ngl

#

ty for it

median orchid
#

well thats just not possible then as I said

#

that then relies on your wifi

#

everything inside roblox studio has to get passed somewhere

#

But np

oak osprey
# tropic oak so the least i can do now i remake these scripts

yea just recode them into localscripts. it's not hard. you may need to change how things are structured, it can be quite involved depending on the scripts, but yea you can move all the code to the client, except only for things that require the server like datastores. that's one thing. whether or not you can move all the code to the client, that's a completely different question. you might have the skills to do it, might not, who knows 🤷 it would help a lot if you wrote this code. if you were asking for a simple band-aid way to convert a remoteevent to something that only happens on the client, you could change them to bindableevents

#

oh and depending on the size of your game, i'd suggest turning off adaptive streaming so the client has everything in workspace at all times and can run code for things that are outside the player's usual streaming radius

tropic oak
#

Forget it

#

The game has a lot of things that makes it just useless to pass it to client

oak osprey
#

if you're going full singleplayer, you can do that fairly straight forward

#

but ye size adds complexity, it could be too difficult for you to do it all on your own. that's a thing that can happen too

tropic oak