Hey guys,
I have this script that check the player for a gamepass before making a GUI visible. The script however is too unreliable and keeps giving people bikes for free every once and a while! It's hurting my advertising profit and I have made losses over the last two weeks! ;-;
Does anyone have a solution with a better script?
--// Initialization local GamePassService = game:GetService("GamePassService") --// Variables gamepass1 = 256633733 --// Functions function onCharacterSpawn(character) local player = game.Players:GetPlayerFromCharacter(character) if GamePassService:PlayerHasPass(player, gamepass1) then script.Parent.Parent.Spawn.Visible = true script.Parent.Visible = false script.Parent.Parent.Parent.OwnedBikes.Bike12.Visible = true end end --// Triggers game.Workspace.ChildAdded:connect(onCharacterSpawn)
Cheers,
Michael
This current version you have here is very un-secure. I have made a better system for you that will make it secure and more efficient. Verifying on the client is a big no no as it can be easily exploited. Here is a link to a roblox model that has all the instructions inside on how to set it up. http://www.roblox.com/For-Scripting-Helpers-item?id=258776114