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:

01local replicatedStorage = game:GetService("ReplicatedStorage")
02script.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
11end)

Answer this question