roblox gun tutorial

Описание к видео roblox gun tutorial

script.Parent.RemoteEvent.OnServerEvent:Connect(function(player, target)
target.Humanoid:TakeDamage(20)
end)

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

script.Parent.Activated:Connect(function()
local target = mouse.Target
if target.Parent:FindFirstChild("Humanoid") then
script.Parent.RemoteEvent:FireServer(target.Parent)
end
end)

Комментарии

Информация по комментариям в разработке