How to make a Shop + 2x clicks | Roblox Studio Tutorial
Thanks for watching!
Scripts:
2x clicks:
local Player = game.Players.LocalPlayer
local Clicks = Player:WaitForChild('leaderstats'):WaitForChild('Clicks')
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassID = --put your gamepass id here
script.Parent.MouseButton1Click:Connect(function()
if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, GamepassID) then
Clicks.Value = Clicks.Value + 2
else
Clicks.Value = Clicks.Value + 1
end
end)
----------
Buy gamepass (Gui):
local GamepassId = -- put your gamepass here
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, GamepassId)
end)
---------
Close Gui:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
player.PlayerGui.Shop.Frame.Visible=false
end)
----------
Open Gui:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
player.PlayerGui.Shop.Frame.Visible=True
end)
------------
Twitch: https://www.twitch.tv/the_lovjak
Twitter π¦: https://twitter.com/ThE_LovJak
Discord: https://discord.gg/bcCFBdZ8dm
Subscribe to JakLov: https://www.youtube.com/channel/UCZYHTvHRCqAvNAaiBJZw0Rg
Other Videos By LovJak
Other Statistics
Roblox Statistics For LovJak
Currently, LovJak has 127,722 views for Roblox across 80 videos. His channel uploaded 9 hours worth of Roblox videos, or 26.34% of the total watchable video on LovJak's YouTube channel.