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

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

Asked by
4D_X 118
7 years ago
Edited 7 years ago

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...

0
Put the script in the ServerScriptService Decemus 141 — 7y
0
Server script Decemus 141 — 7y
0
Decemus thanks 4D_X 118 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago
--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
Ad
Log in to vote
0
Answered by
Xduel 211 Moderation Voter
7 years ago
Edited 7 years ago

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).

0
What are you talking about? I have a fe game that uses Click Detectors iamnoamesa 674 — 7y
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. Xduel 211 — 7y
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 iamnoamesa 674 — 7y
0
ClickDetectors are compatible. Shoutout to Decemus for answering! 4D_X 118 — 7y

Answer this question