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

No errors but it's not working.. it used to work... FE tool giver script.. HELP!?!?! [ANSWERED]

So it's a tool giver script that uses FE

Here's the script in a localgui in startergui

local Bclickdetector = workspace.Burger.ClickDetector
Bclickdetector.MouseClick:Connect(function(clik)
	game.ReplicatedStorage.Events.GiveBurger:FireServer()
end)

And then I have a event in replicated storage and heres the script in that

script.Parent.OnServerEvent:connect(function(clik)
	burger = game.ReplicatedStorage["Cheese Burger"]:Clone()
	burger.Parent = clik.Backpack
end)

No errors but it doesn't work... help...

3 comments

0

Put the script in the ServerScriptService

0

Server script

0

Decemus thanks

2 answers

--Server script inside of part:
local Bclickdetector = script.Parent.ClickDetector
Bclickdetector.MouseClick:Connect(function(Player)
	print ("Clicked")
	game.ReplicatedStorage["Cheese Burger"]:Clone().Parent = Player.Backpack
end)
--Check output if it does not work and tell me what it says

Click Detectors are not compatible with FE. Try referring to this thread: https://scriptinghelpers.org/questions/17049/how-would-i-fix-click-detectors-if-filtering-is-enabled (Full credit to Goulstem for answer).

4 comments

0

What are you talking about? I have a fe game that uses Click Detectors

0

Really? Then they may have been optimized. When FE was first introduced they didn't work, as it was the Client attempting to send Info to the Server directly. That's good to know then.

0

I have a for loop connecting all my click detectors in one of my games, and when any are clicked it would fire the client that clicked it and so certain effects. Not sure what the case used to be

0

ClickDetectors are compatible. Shoutout to Decemus for answering!

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