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

Giving the benefits of a gamepass to people who already bought it, Where did I mess up?

Asked by 4 years ago

I am creating a gamepass that give the owners of it the benefits of TimeStop. I have already successfully created the code for TimeStop and created a gamepass that will hold these benefits, but I tested it with a friend who bought the gamepass but didn't get the benefits with the code I scripted. Can someone edit it and tell me where I went wrong within this code:

if game.MarketplaceService:PlayerOwnsAsset(player,6994910) then --Gives people who own the gamepass the power of time stop

mouse.KeyDown:connect(function(key) if key == "t" then game.ReplicatedStorage.TimestopEvent:FireServer() end end) end

0
please codeblock correctly! KDarren12 705 — 4y
0
also KeyDown is a bad thing to use, and :connect is deprecated. KDarren12 705 — 4y
0
use contextactionservice or user input service KDarren12 705 — 4y

Answer this question