I am having problems with a RemoteEvent?
Hey everyone reading this!
I am having problems with a RemoteEvent not being able to fire server --> client.
Server Script:
03 | script.Parent.Touched:Connect( function (hit) |
04 | local humanoid = hit.Parent:FindFirstChild( "Humanoid" ) |
07 | if debounce = = false then |
11 | local player = game.Players:GetPlayerFromCharacter(hit.Parent) |
13 | script.Parent:WaitForChild( "Triggered" ):FireClient(player) |
Local Script:
01 | local uIS = game:GetService( "UserInputService" ) |
06 | script.Parent:WaitForChild( "Triggered" ).OnClientEvent:Connect( function (player) |
08 | script.Parent.CanCollide = false |
09 | print ( "Vault Tutorial Triggered" ) |
10 | local player = game.Players.LocalPlayer |
11 | local tutorialGui = player.PlayerGui:WaitForChild( "TutorialGui" ) |
12 | local autoMove = player.PlayerScripts:WaitForChild( "AutoMove" ).Disabled |
13 | local vault = tutorialGui:WaitForChild( "Vault" ) |
18 | uIS.InputBegan:Connect( function (input, gameProcessed) |
19 | if input.KeyCode = = Enum.KeyCode.KeypadEnter then |
I'm not getting any errors, but the script inside of the OnClientEvent doesn't play.
Thank you for reading! Any help is appreciated!