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

How do I apply FE to my while touch == true barricade?

Asked by
Kitorari 266 Moderation Voter
7 years ago
01--Script((Located under "Charlie" the Remote event
02 
03local W = game.Workspace
04 
05local C = W:WaitForChild("Charlie")
06 
07local R = script.Parent.Parent.Red
08 
09local function OnFired(player)
10    print("Currently, recieving.")
11    repeat
12R:Resize("Top", 1)
13wait(0.01)
14    until false
15end
16 
17C.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.

01--Local script((Located under Part))
02 
03local W = game.Workspace
04 
05local C = W:WaitForChild("Charlie")
06 
07local R = script.Parent.Parent.Red
08 
09while script.Parent.Touched == true do
10C:FireServer()
11end

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?

01local Red = script.Parent.Parent.Red
02 
03local i = Red.Size
04 
05local countdown = 1
06 
07local CR = false
08 
09function run()
10if CR == false then
11        if countdown == 1 then
12            CR = true
13repeat
14countdown = countdown + 1
15Red:Resize("Top", 1)
View all 39 lines...

Thank you for your assistance ;u;

2 answers

Log in to vote
1
Answered by 7 years ago

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.

0
Ohhh. Okay! Thank you ;u; Kitorari 266 — 7y
Ad
Log in to vote
1
Answered by 7 years ago

To use remote events, you have to do this.

1local remote = --insert remote here
2 
3remote.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.
4print(plr.Name..' has used a remote event!')
5--insert script stuff here
6end

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.

1
Also, you manually add a remote. hiimgoodpack 2009 — 7y
0
Oh. :o Kitorari 266 — 7y

Answer this question