#GUI not chaning

8 messages · Page 1 of 1 (latest)

signal salmon
#
local player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local replicatedStorage = game:GetService("ReplicatedStorage")
local onJump = replicatedStorage:WaitForChild("onJump")

local function checkSpacePressed(input)
    if input.KeyCode == Enum.KeyCode.Space then
        onJump:FireServer()
    end
end
UserInputService.InputBegan:Connect(checkSpacePressed)
``` script to fire onJump
glacial dock
#

FireClient()

signal salmon
#

oh 😭

#

missing argument???

rugged canopyBOT
#

studio** You are now Level 7! **studio

signal salmon
#

Argument 1 missing or nil

#
local replicatedStorage = game:GetService("ReplicatedStorage")
local onJump = replicatedStorage:WaitForChild("onJumpToServer")
local activateCreditsCooldownBar = replicatedStorage:WaitForChild("activateCreditsCooldownBar")
local lastKeyPressTime = 0

local function addCredits(player)
    local cooldownTime = player.values.cooldowntimeCredits.Value
    local currentTime = tick()
    if currentTime - lastKeyPressTime >= cooldownTime then
        lastKeyPressTime = currentTime
        player.leaderstats.Credits.Value = player.leaderstats.Credits.Value + 1
        activateCreditsCooldownBar:FireClient()
    end
end
onJump.OnServerEvent:Connect(addCredits)
``` im getting the Error on this line:
```activateCreditsCooldownBar:FireClient()```
crimson finch
#

@signal salmon try using activateCreditsCooldownBar:FireServer()