Is it a server script/regular script? Or a Local Script?
It should be Local.
Is it a server script/regular script? Or a Local Script?
It should be Local.
Lol, I see your issue.
You also contained the text you would do check:Fire()
and you would do check.Event:Connect(function()
, and make sure it is a LocalScript. Also, UserInputService is Client only.
It didnt work but anyways it is because its from tool I think so
Do you have console open and do you have any errors you can share?
Very top of Studio > View > Output
I think itβs because of the location of the event.
Example:
local Player = game:GetService("Players").LocalPlayer
local Folder = Instance.new("Folder",Player)
Folder.Name = "PlayerEvents"
local Check = Instance.new("BindableEvent",Folder)
Check.Name = "check"
wait(1)
script:Destroy()
local Player = game:GetService("Players").LocalPlayer
Events = Player:WaitForChild("PlayerEvents")
check = Events:WaitForChild("check")
check:Fire("hey")
local Player = game:GetService("Players").LocalPlayer
Events = Player:WaitForChild("PlayerEvents")
check = Events:WaitForChild("check")
check.Event:Connect(function(Men)
print(Men,"hello")
end)