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
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()