--Script((Located under "Charlie" the Remote event local W = game.Workspace local C = W:WaitForChild("Charlie") local R = script.Parent.Parent.Red local function OnFired(player) print("Currently, recieving.") repeat R:Resize("Top", 1) wait(0.01) until false end C.OnServerEvent:Connect(OnFired)
I've tried the wiki, in fact I wrote it just like it, just changed the names and put what I wanted it to do in.
--Local script((Located under Part)) local W = game.Workspace local C = W:WaitForChild("Charlie") local R = script.Parent.Parent.Red while script.Parent.Touched == true do C:FireServer() end
I have my unfiltered vision as well, which another question.
If I just have the server script, will that require a remoteevent/remotefunction still, or does Filtering enabled just apply to player created events?
local Red = script.Parent.Parent.Red local i = Red.Size local countdown = 1 local CR = false function run() if CR == false then if countdown == 1 then CR = true repeat countdown = countdown + 1 Red:Resize("Top", 1) wait(0.01) until countdown == 10 CR = false else if countdown == 10 then CR = true repeat countdown = countdown - 1 Red:Resize("Top", -1) wait(0.01) until countdown == 1 CR = false end end elseif CR == true then end end script.Parent.Touched:Connect(run)
Thank you for your assistance ;u;
Firstly lets understand servers and clients, Clients are the things running on your computer e.g. Your character Servers are big computers around the world that can hold multiple clients at a time
Filtering Enabled is the like a barrier between the server and the client information can only be pasted through by using RemoteEvents and RemoteFunctions if a script is talking with a client and it is in the server then you would fire an event using :FireClient if a script is talking with the server and it is in the client then you would fire an event using :FireServer with remote functions it is a bit more complicated, but I wont get into that.
In any other case if a client is talking with another client or the server is talking with another script in the server then these are not needed.
To use remote events, you have to do this.
local remote = --insert remote here remote.OnServerEvent:connect(function(plr) --The player who called the remote is a argument that is passed, even if you dont pass that from the client's script. print(plr.Name..' has used a remote event!') --insert script stuff here end
Also, Filtering Enabled only affects client's scripts, as those are the scripts by the client. The server scripts are not affected by a client, and a client cannot make a server script with info, unless they hack into the servers of Roblox which all the server scripts are, then Filtering Enabled is useless then. Filtering Enabled just makes games less vulnerable to hacks.