You are on page 1of 2

--Abrir El Gui:

local frame = script.Parent.Parent.Gamepass --Nombre del Gui


local open = false

script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
else
frame.Visible = false
end
end)

--Cierra el Gui:

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)

----------------------------------------

--LocalScript en el Boton de Gamepass

local par = script.Parent


local player = game.Players.LocalPlayer
local GamePassID = --Su Gamepass ID

par.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(player,
GamePassID)
end)

--Script en Server Script Service

local mps = game:GetService("MarketplaceService")


local GamePassID = --Su gamepass ID

game.Players.PlayerAdded:Connect(function(plr)
if mps:UserOwnsGamePassAsync(plr.UserId, GamePassID) then
game.ServerStorage."Nombre del Articulo":Clone().Parent =
plr:WaitForChild("Backpack")--Nombre del articulo (ServerStorage)
game.ServerStorage."Nombre del Articulo":Clone().Parent =
plr:WaitForChild("StarterGear")--Nombre del articulo (ServerStorage)
end
end)
game.ReplicatedStorage."Nombre del Remote
Event".OnServerEvent:Connect(function(plr) --Va el Nombre del Remote Event
game.ServerStorage."Nombre del Articulo":Clone().Parent =
plr:WaitForChild("Backpack") --Nombre del articulo (ServerStorage)
game.ServerStorage."Nombre del Articulo":Clone().Parent =
plr:WaitForChild("StarterGear")--Nombre del articulo (ServerStorage)
end)

-----------------------------------------

Link del Gravity Coil :

https://www.roblox.com/library/651757227/Working-Gravity-Coil?
ViewInBrowser=true&CreatorId=113673233&SearchId=56A5466E-137C-40F9-9536-
2105DEC782A1&Category=Model&Position=10&SearchKeyword=gravity+coil&CreatorType=User
&SortType=Relevance

(Puedes cambiarle la Gravedad en GravityCoilScript)

You might also like