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

Remote Event Help???!! Parameter Help??!!

If I wanted to two separate remote events.... One Named / Enable One Named / Disable

And all they did when they were fired by a local script..... Is disable and enable what ever arugments are placed on them such as...

local Player = game.Players.LocalPlayer
game.ReplicatedStorage.Events.Disable("Player.Name",Player.Backpack["Script"].Disable = true)

local Player = game.Players.LocalPlayer
game.ReplicatedStorage.Events.Enable("Player.Name",Player.Backpack["Script"].Disabled = false)

Not sure how to do it correctly just an Idea... but..

Yeah could somone help me??

Game is filteringenabled btw

2 comments

0

Please use a code block when posting code here, it makes it a lot easier to read. Use teh 'Lua' button on the edit bar when writing your post.

0

Fixed @adark

1 answer

✓ Accepted answer

Put this in a server script:

game.ReplicatedStorage.Events.Disable.OnServerEvent:connect(function(Player)
	Player.Backpack.Script.Disabled = false
end)

To fire from a local script:

game.ReplicatedStorage.Events.Disable:FireServer()

You use RemoteEvent.OnServerEvent:connect(function(Player, arguments) the script end) in order to be able to fire the RemoteEvent.

1 comment

0

Thank you!

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