I'm trying to make a racing game and what I need is a map preview to check the details of the map.
This is my starter Code:
01 | local replicatedStorage = game:GetService( "ReplicatedStorage" ) |
02 | script.Parent.Touched:Connect( function (hit) |
03 | if hit then |
04 | if hit.Parent:FindFirstChild( "Humanoid" ) then |
05 | local player = game.Players:GetPlayerFromCharacter(hit.Parent) |
06 | if player then |
07 | replicatedStorage:WaitForChild( "TriggerCamA" ):FireClient(player) |
08 | end |
09 | end |
10 | end |
11 | end ) |