Hello!
I made script that takes model from ReplicatedStorage and puts it into CurrentCamera to make it invisible to other players when i touch a part, but when i touch it model do not appear. I tested and i see that my model do not appear when im in Client, but when i change it to Server model is in there. Everything i good just model do not appear.
Please say what i do wrong.
Heres images if you dont understand
Heres my script if needed:
local Players = game:GetService("Players")
local deb = false
local camera = game.Workspace.CurrentCamera
function onTouched(plr)
if deb == false then
game.Workspace.CurrentCamera:ClearAllChildren()
deb = true
local torso = plr.Parent:FindFirstChild("Torso")
local levelC = game.ReplicatedStorage.MAPS.Level2:Clone()
local teleportplace = levelC:FindFirstChild("Speed")
levelC.Parent = camera
wait(0.3)
torso.CFrame = teleportplace.CFrame
local player = Players:GetPlayerFromCharacter(plr.Parent)
player:FindFirstChild("leaderstats").Stage.Value = player:FindFirstChild("leaderstats").Stage.Value == 2
wait(1)
deb = false
else
end
end
script.Parent.Touched:connect(onTouched)