Почему не работает local script в roblox studio? - Роблокс

Вопрос Почему не работает local script в roblox studio?

Регистрация
27 Ноя 2013
Сообщения
95
Репутация
0
Спасибо
1
Монет
0
Вот скрипт:
local player = game.Players.LocalPlayer
local screenGui = player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
local label = screenGui:WaitForChild("TextLabel")
local part = script.Parent
local www = 0
local function onTouch(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
www += 1
label.Text = www
end
end
part.Touched:Connect(onTouch)
 
Регистрация
27 Июл 2013
Сообщения
88
Репутация
0
Спасибо
0
Монет
0
этот скрипт должен быть в разделе для гуи, либо playerscript или characterscript
 
Сверху Снизу