Help with remote event

Hi there I need some help with this remote event script. Once the event is fired the player’s board should do a kickflip but instead, nothing happens. I think this has to do with my remote event script but I don’t know how to fix it.

here’s the script I’m using -

local kickflipfunction = script.parent.Remotes.kickflip

local function kickflipfunction(player)
	script.Parent.Remotes.Trick:FireServer("kickflip")
	trickdb = true
	wait(1)
	trickdb = false

end

image

Thank you for the help

This might be of help to you.

I also noticed you don’t seem to connect the remote event, heres what I mean

local kickflipfunction = script.parent.Remotes.kickflip

local function kickflipfunction(player)
	script.Parent.Remotes.Trick:FireServer("kickflip")
	trickdb = true
	wait(1)
	trickdb = false

end

remoteEvent.OnServerEvent:Connect(kickflipfunction)

when the client fires the remote event it’ll call the function kickflipfunction()