Script Thinks that The Character is a member of the Map Model

This is From a Script Which runs on the server to teleport the players to a specific map.

dont want to let you guys read a lot, heres the error:

here’s the Script:

hope i get a reply since this is my first major project

1 Like

The player who fired the remote is always the first parameter of OnServerEvent; you don’t need to pass it on your own. Swap the parameters around, and if you’re manually passing the player into the remote when you fire it, you can just remove that.

1 Like

yeah the first parameter is always player so just do

local Char = ClonedMap.Character

Also you don’t need to use WaitForChild on the server.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.