Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

IntValue is not added into rs with fe enabled?

This is what I have so far, it works in studio but not in game..

game.Workspace.CukieCave.CukieChair.DialogPart.Dialog.DialogChoiceSelected:connect(function(player,choice)
	if choice.Name == "ParkourMission" then
        local gao = Instance.new("IntValue", game.ReplicatedStorage)
   		local thing = game.ReplicatedStorage:FindFirstChild("Value")
	   	if thing then
			print("Good")
		end
	end
end)

1 comment

0

assign the Parent as a separate line because doing it with parenthesis doesn't work anymore

1 answer

FE is completely different from Experimental mode.

If you try to insert something into the game that you want the server to see via LocalScript, the server will not acknowledge it. This is what makes games so reinforced and unexploitable. Use a RemoteEvent to create an object, like this.

game.ReplicatedStorage['Create Item']:InvokeServer('Part', workspace)

And when a serverscript catches it, you can do

game.ReplicatedStorage['Create Item'].OnServerInvoke = function(player, part, parent)
	local Part = Instance.new(part, parent)
	return Part
end

Do NOT try to use it as a event. For some reason, it can be defined but can't be an event. I don't know why.

2 comments

0

Here's the thing that confuses me. The script above is in server script service. Does that change anything?

0

No, it shouldn't. In the ROBLOX Wiki, the author states "A semantic, organized place to put your server-sided game logic, which does not interfere with the world. Scripts will run inside this service, and will not replicate to game clients, allowing for secure storage of your scripts." Therefore, it should not cause any problems as LONG as it isn't a LocalScript.

This discussion is preserved as it was. New answers, comments, and votes are closed.