Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trigger the Camera for map preview?

Asked by 4 years ago

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:

local replicatedStorage = game:GetService("ReplicatedStorage")
script.Parent.Touched:Connect(function(hit)
    if hit then
    if hit.Parent:FindFirstChild("Humanoid") then
        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
        if player then
        replicatedStorage:WaitForChild("TriggerCamA"):FireClient(player)
        end
        end
    end
end)

Answer this question