You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
I wanted to make a pizza delivery system using the new feature (RunContext)
-
What is the issue? Include screenshots / videos if possible!
All is working good on Roblox Studio however it isnt working on a normal game
-
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)