Как в ROBLOX STUDIO сделать чекпоинт (chekpoint) NOKSTUDIO покажет!

Мой сайт на игру horrornok-download-official-website.webnode.ru Сайт на игру в Gamejone gamejolt.com/games/HORRORNOK/1016941 Сайт на игру на itch.io nokstudi0.itch.io/horrornok я на itch.io nokstudi0.itch.io я на gamejone gamejolt.com/@NOKSTUDIO ___________________________________________________________________________ СКРИПТ local Players = game:GetService("Players") local ServerStorage = game:GetService("ServerStorage") local checkpoint = script.Parent function onTouched(hit) if hit and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then local player = Players:GetPlayerFromCharacter(hit.Parent) local checkpointData = ServerStorage:FindFirstChild("CheckpointData") if not checkpointData then checkpointData = Instance.new("Folder") checkpointData.Name = "CheckpointData" checkpointData.Parent = ServerStorage end local userIdString = tostring(player.UserId) local checkpointValue = checkpointData:FindFirstChild(userIdString) if not checkpointValue then checkpointValue = Instance.new("ObjectValue") checkpointValue.Name = userIdString checkpointValue.Parent = checkpointData player.CharacterAdded:connect(function(character) wait() local storedCheckpoint = ServerStorage.CheckpointData[userIdString].Value character:MoveTo(storedCheckpoint.Position + Vector3.new(math.random(-4, 4), 4, math.random(-4, 4))) end) end checkpointValue.Value = checkpoint end end checkpoint.Touched:Connect(onTouched) ___________________________________________________________________________ подпишись пожалуйста. ___________________________________________________________________________

Иконка канала NOKSTUDIO рутюб
11 подписчиков
12+
8 просмотров
8 дней назад
12+
8 просмотров
8 дней назад

Мой сайт на игру horrornok-download-official-website.webnode.ru Сайт на игру в Gamejone gamejolt.com/games/HORRORNOK/1016941 Сайт на игру на itch.io nokstudi0.itch.io/horrornok я на itch.io nokstudi0.itch.io я на gamejone gamejolt.com/@NOKSTUDIO ___________________________________________________________________________ СКРИПТ local Players = game:GetService("Players") local ServerStorage = game:GetService("ServerStorage") local checkpoint = script.Parent function onTouched(hit) if hit and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then local player = Players:GetPlayerFromCharacter(hit.Parent) local checkpointData = ServerStorage:FindFirstChild("CheckpointData") if not checkpointData then checkpointData = Instance.new("Folder") checkpointData.Name = "CheckpointData" checkpointData.Parent = ServerStorage end local userIdString = tostring(player.UserId) local checkpointValue = checkpointData:FindFirstChild(userIdString) if not checkpointValue then checkpointValue = Instance.new("ObjectValue") checkpointValue.Name = userIdString checkpointValue.Parent = checkpointData player.CharacterAdded:connect(function(character) wait() local storedCheckpoint = ServerStorage.CheckpointData[userIdString].Value character:MoveTo(storedCheckpoint.Position + Vector3.new(math.random(-4, 4), 4, math.random(-4, 4))) end) end checkpointValue.Value = checkpoint end end checkpoint.Touched:Connect(onTouched) ___________________________________________________________________________ подпишись пожалуйста. ___________________________________________________________________________

, чтобы оставлять комментарии