Text is not becoming visible when TextTransparency is 1 and when you click on model it must be 0, in fact it don’t give any badge (it must)
Scripts:
-- script where text must be visible
function onClicked()
local Text = game.Workspace.Laptop.screen.SurfaceGui.TextLabel
Text.TextTransparency = 0
wait(5)
onClicked.Character:findFirstChild("Humanoid")
script.Parent.ClickDetector.MouseClick:Connect(function(player)
player:Kick("you just wasted your time coming there")
end)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
-- badge awarder script
print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value)
function OnClick(part)
if (part.Parent:FindFirstChild("Humanoid") ~= nil) then
local p = game.Players:GetPlayerFromCharacter(part.Parent)
if (p ~= nil) then
print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
local b = game:GetService("BadgeService")
b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
end
end
end
script.Parent.ClickDetector.Clicked:connect(OnClick)
print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value)
function OnClick(p)
if (p.Parent:FindFirstChild("Humanoid") ~= nil) then
local p = game.Players:GetPlayerFromCharacter(p.Parent)
if (p ~= nil) then
print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
local b = game:GetService("BadgeService")
b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
end
end
end
script.Parent.ClickDetector.Clicked:connect(OnClick)
function onClicked()
local Text = game.Workspace.Laptop.Screen.SurfaceGui.TextLabel
Text.TextTransparency = 0
wait(5)
onClicked.Character:findFirstChild("Humanoid")
script.Parent.ClickDetector.MouseClick:Connect(function(player)
player:Kick("you just wasted your time coming there")
end)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
local Text = game.Workspace.Laptop.Screen.SurfaceGui.TextLabel
Text.TextTransparency = 0
wait(5)
onClicked.Character:FindFirstChild("Humanoid")
script.Parent.ClickDetector.Clicked:Connect(function(player)
player:Kick("you just wasted your time coming there")
end)
end
script.Parent.ClickDetector.Clicked:connect(onClicked)
@SeargentAUS this still dont work, new scripts is:
print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value)
function OnClick(p)
print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
local b = game:GetService("BadgeService")
b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
end
script.Parent.ClickDetector.Clicked:connect(OnClick)
function onClicked()
local Text = game.Workspace.Laptop.Screen.SurfaceGui.TextLabel
Text.TextTransparency = 0
wait(5)
onClicked.Character:FindFirstChild("Humanoid")
script.Parent.ClickDetector.Clicked:Connect(function(player)
player:Kick("you just wasted your time coming there")
end)
end
script.Parent.ClickDetector.Clicked:connect(onClicked)
function onClicked(player)
local Text = game.Workspace.Laptop.Screen.SurfaceGui.TextLabel
Text.TextTransparency = 0
wait(5)
player:Kick("you just wasted your time coming there")
end
script.Parent.ClickDetector.Clicked:connect(onClicked)