local rainbow = {
Color3.fromRGB(254, 0, 0);
Color3.fromRGB(255, 127, 0);
Color3.fromRGB(225, 221, 1);
Color3.fromRGB(0, 200, 0);
Color3.fromRGB(0, 160, 199);
Color3.fromRGB(0, 55, 230);
Color3.fromRGB(129, 16, 210);
}
local info = TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)
script.Parent.TextLabel.TextColor3 = rainbow[1]
local name = script.Parent:FindFirstChildWhichIsA("String Value").Value
script.Parent.TextLabel.Text = name
local i = 1
while true do
local tween = game:GetService("TweenService"):Create(script.Parent.TextLabel, info, {TextColor3 = rainbow[i]})
tween:Play()
repeat wait() until tween.Completed
wait(0.1)
if i == #rainbow then i = 1 else i = i + 1
end
end
local marketPlaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rainbowTitleId = 14284899
local balloonId = 14284908
local segwayId = 14284911
local vipId = 14284920
function UserOwnsGamePassAsync(PlayerID,GamePass)
local Success,Results = pcall(function()
return marketPlaceService:UserOwnsGamePassAsync(PlayerID,GamePass)
end)
print(Success,Results)
if Success and Results then
return true
end
end
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if UserOwnsGamePassAsync(player.UserId,rainbowTitleId) then
local clone = ReplicatedStorage:WaitForChild("OverheadGui"):Clone()
clone.Parent = character:WaitForChild("Head")
local name = Instance.new("StringValue", clone)
name.Name = "PlayerName"
name.Value = player.Name
end
if UserOwnsGamePassAsync(player.UserId, balloonId) then
ReplicatedStorage:WaitForChild("GreenBalloon"):Clone().Parent = player:WaitForChild("Backpack")
ReplicatedStorage:WaitForChild("GreenBalloon"):Clone().Parent = player:WaitForChild("StarterGear")
end
if UserOwnsGamePassAsync(player.UserId, segwayId) then
ReplicatedStorage:WaitForChild("Segway"):Clone().Parent = player:WaitForChild("Backpack")
ReplicatedStorage:WaitForChild("Segway"):Clone().Parent = player:WaitForChild("StarterGear")
end
end)
end)
- the text thingy
- the cloning script
this is right yeh?