I made a thing in my roblox game where if you trigger a proximity prompt a gui should be enabled and you cant jump, but when I trigger the proximity prompt it doesnt show up and i can still jump is this an issue with how i active the proximity prompt or am I doing something else incorrectly?
this is my code
proximityPrompt = game.Workspace.pizzadougharea.CuttingBoard:WaitForChild("ProximityPrompt")
timingGUI = game.StarterGui.doughtiming
players = game:GetService("Players")
starterPlayer = game:GetService("StarterPlayer")
local userInput = game:GetService("UserInputService")
proximityPrompt.Triggered:Connect(function()
timingGUI.Enabled = true
starterPlayer.CharacterJumpHeight = 0
if input.KeyCode == Enum.KeyCode.Space then
print("player pressed space")
timingGUI.Enabled = false
end
end)
