Я пытался сделать графический интерфейс, как учебник roblox here.Сценарий не запущен
И он работает, когда я тестирую его в студии, но не тогда, когда я нажимаю на play game
и присоединяюсь к моему персонажу.
local player = game.Players.LocalPlayer
local unitFrame = script.Parent
unitFrame.Avatar.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username="..player.Name
unitFrame.PlayerName.Text = player.Name
local healthBar = unitFrame.HealthBarContainer.HealthBar
player.CharacterAdded:connect(function(character)
local humanoid = character:WaitForChild('Humanoid')
humanoid.HealthChanged:connect(function(health)
local healthPercentage = health/character.Humanoid.MaxHealth
healthBar.Size = UDim2.new(healthPercentage, 0, 1, 0)
end)
end)
local StarterGui = game:GetService('StarterGui')
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
Да, это локальный скрипт. Я нажал f9, и в журнале сервера он сказал, что содержимое не удалось, потому что http 404 (http/1.1 301 постоянно перемещается) - Спасибо – AskingEverythingForCode