local Red = game:GetService(“ReplicatedStorage”).Scores.Red
workspace.Blueg.Touched:Connect(function(Part)
if Part.Parent:FindFirstChild(“Humanoid”) then
Red = Red.Value + 1
end
end)
Try this:
--//Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--//Variables
local Red = ReplicatedStorage.Scores.Red
--//Functions
workspace.Blueg.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
Red.Value += 1
end
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.