My Script Is Not Working Scripting Support Developer Forum Roblox
My Script Isnt Working Scripting Support Developer Forum Roblox I’m a pre intermediate developer who is best at programming. currently working on my first major game. suddenly interested in solving problems on the forum. joined january 2, 2023. I'm figuring out how to check if a player pressed a key from the for i loop accordingly. (enum.keycode.nine), (enum.keycode.one) and so forth are ineffective as they increase the complexity of my current work which is coding a custom backpack and inventory. i want my code to be kept neat and simple. local tool = plr.backpack[i].
My Script Not Working Scripting Support Developer Forum Roblox This is a support category for help on everything related to scripting on the roblox platform, from extremely basic to even the most technical of issues. For some reason all my g manipulations are local for client side, no matter how i do them. for example: local script while task.wait (1) do print ( g.four) nil no matter what end another local script g.four=4 b…. Are you requesting this through the server or through the client? and do you get any error messages in the console? you have to be more clear on why it isn’t working. but meanwhile i will try and help you out. you cannot access items in server storage with a local script. so change script to a server script. To add onto this, you should be using os.clock() instead of tick() because it has way more precision down to the nanoseconds. next, you should be using task.wait() instead of wait() since it’s a lot more reliable and actually works with the task scheduler (and can have lower delays than wait).
My Script Not Working Scripting Support Developer Forum Roblox Are you requesting this through the server or through the client? and do you get any error messages in the console? you have to be more clear on why it isn’t working. but meanwhile i will try and help you out. you cannot access items in server storage with a local script. so change script to a server script. To add onto this, you should be using os.clock() instead of tick() because it has way more precision down to the nanoseconds. next, you should be using task.wait() instead of wait() since it’s a lot more reliable and actually works with the task scheduler (and can have lower delays than wait). Scripts only run when parented to workspace or serverscriptservice, not lighting. you can likely fix this by setting the script’s runcontext to script. This is a support category for help on everything related to scripting on the roblox platform, from extremely basic to even the most technical of issues. make sure to search the forum before creating a new topic, many b…. I found the solution, you have to put the script into serverscript if its chat related. The script analysis window shows a summary of errors and warnings, but you might find its utility limited; the script editor already highlights these issues as you type.
Why Is My Script Not Working Scripting Support Developer Forum Scripts only run when parented to workspace or serverscriptservice, not lighting. you can likely fix this by setting the script’s runcontext to script. This is a support category for help on everything related to scripting on the roblox platform, from extremely basic to even the most technical of issues. make sure to search the forum before creating a new topic, many b…. I found the solution, you have to put the script into serverscript if its chat related. The script analysis window shows a summary of errors and warnings, but you might find its utility limited; the script editor already highlights these issues as you type.
Comments are closed.