Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Whats wrong with My Term Script So Far?

Asked by
IcyEvil 260 Moderation Voter
10 years ago

I will Point out the error In the Coding.

script.Parent.Touched:connect(function(hit)
for _,v in pairs(game.Players:GetChildren())do
    if hit.Parent then
local teamcolor = "Really red"
local teamcolor2 = "Earth green"

local humanoid = v.Character:findFirstChild("Humanoid")
if humanoid then
    local f = Instance.new("ScreenGui")
    f.Parent = game.StarterGui
    local t = Instance.new("TextBox")
    t.Parent = f
    t.BackGroundColor3 = Color3.new(1003/255, 1003/255, 1003/255)-- Right here, I have no Idea why though.
    t.BackGroundTransparency = 0
    t.BorderColor3 = Color3.new(1003/255, 1003/255, 1003/255)
    t.TextColor3 = Color3.new(1001/255, 1001/255, 1001/255)
    t.Positon = Vector2.new(0,545)
    t.Font = "SourceSansBold"
    t.FontSize = "Size18"
    t.Text = "No One Currently Has Term"
end
end 
end
end)

1 answer

Log in to vote
0
Answered by 10 years ago

Background instead of BackGround

Ad

Answer this question