Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago
Edited 8 years ago

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

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. adark 5487 — 8y
0
Fixed @adark ChickenWorl 5 — 8y

1 answer

Log in to vote
0
Answered by
Sir_Melio 221 Moderation Voter
8 years ago
Edited 8 years ago

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.

0
Thank you! ChickenWorl 5 — 8y
Ad

Answer this question