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

Filtering enabled gui?

I can't remember if I've done this before but that doesn't matter. So, I have an part that detects when it has been clicked. When it is clicked the player who clicked it gets a little message stating they picked the item up, it worked perfectly but now I activated FE and it doesn't work. Here is the script inside the part.

script.Parent.ClickDetector.mouseClick:connect(function(Player) script.Parent.ClickDetector.MaxActivationDistance = "0" script.Parent.Transparency = "1" script.Parent.Crow.Disabled = false Player.PlayerGui.InventoryDisplay.Box.Visible = true Player.PlayerGui.InventoryDisplay.Box.LocalScript.Disabled = false wait (5.5) Player.PlayerGui.InventoryDisplay.Box.LocalScript.Disabled = true print ("GuiOver") end)

Here is the script inside the gui repeat wait() until game.Players.LocalPlayer if game.Workspace.CrowBar.Crow.Disabled == false then Text = game.Players.LocalPlayer.PlayerGui.InventoryDisplay.Box.Item Text.Text = "Crowbar" box = game.Players.LocalPlayer.PlayerGui.InventoryDisplay.Box box.ReceiveText:TweenPosition(UDim2.new(0,0,0,0),"Out","Quad",1.5,true) box.Item:TweenPosition(UDim2.new(0.6,0,0,0),"Out","Quad",1.5,true) wait (2.5) box.ReceiveText:TweenPosition(UDim2.new(-1.2,0,0,0),"Out","Quad",1.5,true) box.Item:TweenPosition(UDim2.new(1.2,0,0,0),"Out","Quad",1.5,true) Text = "..."

end

All I want to know are the additions to the script, changes and where I should put what in what.

1 comment

2

AHHHHHH MY BIGGEST ENEMY, WHEN DERE ARE NO CODE BLOCKS

1 answer

So, when using Filtering Enabled, think of it this way. Each client gets its own spot, and then the server gets its own spot. So, when you run things off a server, it effects all the clients. But when working with things like a gui you have to usually modify them via the client. Therefore I recommend using a remote event when messing around with things inside a player in general. If you are going to code something I also recommend you start by making them FE.

2 comments

0
0

xD this was ages ago, I figured it out without your help

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