Basically put ur folder with the r, g and b into StarterCharacterScripts, when the player joins it will automatically add it to the players character. Then change your script where it says the folder to the player.character one, if needed I can provide you with a fixed script.
1 Like
local marketPlaceService = game:GetService("MarketplaceService")
local players = game:GetService("Players")
local gamepassID = 848500558
local function changeShellColor(player)
local red = player.Character:WaitForChild("ShellColor").r
local green = player.Character:WaitForChild("ShellColor").g
local blue = player.Character:WaitForChild("ShellColor").b
local character = player.Character or player.CharacterAdded:Wait()
local shellOuter = character:WaitForChild("ShellOuter")
local shellInner = character:WaitForChild("ShellInner")
local ownsGamepass = marketPlaceService:UserOwnsGamePassAsync(player.UserId, gamepassID)
if ownsGamepass == false then
shellInner = Color3.fromRGB(red, green, blue)
shellOuter = Color3.fromRGB(red, green, blue)
end
end
This was changed so the “ShellColor” folder is located inside of the character.
1 Like
Still not working. i tried to make the textboxes print their value but it didnt work, meaning they are probably the problem
local Blue = game.Players.LocalPlayer:WaitForChild('ShellColor').b
script.Parent.Changed:Connect(function()
local Number = tonumber(script.Parent.Text)
if Number == nil then return end
Blue.Value = Number
print(Blue)
end)
I don’t think its detecting when the value of the textbox changes
Somone please help! I just want to get this gamepass out.
can anyone rewrite the code as how maybe they would do it?