My delivery system was working really good on roblox studio however it cant be used in normal server

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?

    I wanted to make a pizza delivery system using the new feature (RunContext)

  2. What is the issue? Include screenshots / videos if possible!

    All is working good on Roblox Studio however it isnt working on a normal game

In game error (Image)

  1. What solutions have you tried so far?

    Well i wanted to ask if it was necessary to change my script into a local script on StarterPlayerScript and just move the script when needed using a clone or to know if beta features arent available on normal game?


game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent").OnClientEvent:Connect(function(localisation, action)

    if action == "Create" then

        for i,v in pairs(script.Parent.Location:GetChildren()) do

            if v.Name == tostring(localisation) then

                v.ProximityPrompt.Enabled = true

                v.Beam.Attachment1 = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart"):WaitForChild("RootRigAttachment")

            else

                v.ProximityPrompt.Enabled = false

                v.Beam.Attachment1 = nil

            end

        end

        --script.Parent.Location[localisation].Beam.Attachment1 = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart"):WaitForChild("RootRigAttachment")

    elseif action == "Remove" then

        for i,v in pairs(script.Parent.Location:GetChildren()) do

            if v:FindFirstChild("Beam") then

                v.Beam.Attachment1 = nil

            end

            if v:FindFirstChild("ProximityPrompt") then

                v.ProximityPrompt.Enabled = false

            end

        end

    end

end)

RunContext is currently in beta therefore it will not work in live public servers.

So i have to rescript it and use a local script :sob:?

Yes, it is a pretty useless update anyway, in my opinion.

All it does it enable bad habits by using scripts in the Workspace. The Workspace is used to apply physics & simulate parts visually, it isn’t used for holding the code. There are services (ServerScriptService, for example) which are dedicated for this.

1 Like

Well ty for the information, and your opinion is correct however its really good since exploiter cannot (or for now) decompile the script with is really good to protect some information

If anything, it enables them to get your code.

LocalScripts you can access in any situation;
Scripts you can now access if they are set to the Client RunContext, this was not a thing before.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.