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

I need help with Filtering Enabled. Confused?!

Asked by 6 years ago

How can I make this compatible with Filtering Enabled so that it fires upon click?

script.Parent.ChildAdded:connect(function(Object) if Object.Name == "SeatWeld" then local Player = game.Players:GetPlayerFromCharacter(Object.Part1.Parent) local Clone = script.Parent.CheckInGUI:Clone()

01    script.Parent.Parent.OverHead.PlayerGUI.Value = Clone
02    Clone.Parent = Player.PlayerGui
03    script.Parent.PlayerGUI.Value = Clone.Frame
04    script.Parent.Airline.TextLabel.Value = Clone.Frame.AirlineName
05    script.Parent.Opening.TextLabel.Value = Clone.Frame.Open
06    script.Parent.Closing.TextLabel.Value = Clone.Frame.Close
07    script.Parent.DecalID.TextLabel.Value = Clone.Frame.DecalID
08    script.Parent.FlightNumber.TextLabel.Value = Clone.Frame.FlightNum
09    script.Parent.Class.TextLabel.Value = Clone.Frame.Class
10    Clone.InPlayer.Value = true
11end

end)

2 answers

Log in to vote
0
Answered by 6 years ago

Use RemoteEvents that are triggered by one script

1(YourRemoteEventInReplicatedStorage:FireServer(arguments))
2--if you want to modify one players cam or gui use a localscript either in the players PlayerGui or in the StarterPlayerScripts which is in the StarterPlayer
3For what you're doing right now i recommend using remote events in replicated storage. you also need a script on the main server that can tell when there's an event.
4function YourFunction(player,arguments)
5--put what your server script does here; arguments is the information you can send through and player is the client who's local script called :FireServer()
6end
7YourEventInReplicatedStorage.OnServerEvent:Connect(YourFunction)
Ad
Log in to vote
0
Answered by 6 years ago

Use MouseButton1Click and MouseClick to fire on click. FE should not interfere with this part.

To make the response compatible with FE, fire a RemoteEvent to have a server script handle the rest.

Answer this question