#"auto lifting button"

1 messages · Page 1 of 1 (latest)

eternal ferry
#

i working on a lifting simulator project and i try to do a autolifter gamepass but none of the tuts are working can someone help? or give me a working script where when he doesnt own the gamepass he cant activate it but when he got it he can and it works like ..

eternal ferry
#

lmaoo

#

help me bro

strong robin
#

Just use a of else p call

eternal ferry
#

i litteraly cooked on the game u have to see it

#

i put u in collab

strong robin
#

I wanted to see but I decided it put add a part In Loop and it crashed my pc

#

Is bro okay???

eternal ferry
#

WHAT

cold folioBOT
#

studio** You are now Level 2! **studio

strong robin
#

Let me just try to copy and paste the script that works for me

eternal ferry
#

k

strong robin
#

Why did I decided to put a crashing script in my server -_-

#

My pc not loading anything

charred niche
#

whats the code

#

Use marketplace service, check for gamepass purchase, and every one second give the player strength

strong robin
#
local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")

local GP = 12345678  -- Replace this with your actual Game Pass ID

-- Function to check ownership
local function checkGamePass(player)
    local success, hasPass = pcall(function()
        return MarketPlaceService:UserOwnsGamePassAsync(player.UserId,GP)
    end)

    if success then
        if hasPass then
            print("success")
            -- add anything you want herre cause im NOT scripting for you

        else
            print("Gamepass not owned")
        
        end
    else
        warn("Failed to check Game Pass for " .. player.Name)
    end
end

-- Run check when player joins
Players.PlayerAdded:Connect(function(player)
    checkGamePass(player)
end)
charred niche
#

why is your gamepass 12345678

eternal ferry
#

loll

charred niche
#

and why is there a command that says add anything you want herre cause im NOT scripting for you

#

😭 🙏

#

comment*

strong robin
#
-- Replace this with your actual Game Pass ID
cold folioBOT
#

studio** You are now Level 4! **studio

charred niche
#

well in that section do a loop to add power to the player

#

since its a lifting simulator

strong robin
#

cant you just write normal script but inside the

if success then
    if hasPass then
--your thingy--
charred niche
#

bruh

#

just do a loop that runs forever

strong robin
#

Idk im a new scripter

charred niche
#

even new scripters should learn how to make loops in the first few days

eternal ferry
#

@strong robin join th e project

charred niche
#

???

eternal ferry
#

hes my friend

charred niche
#

oh

#

alr

#

did you figure it out

eternal ferry
#

what

charred niche
#

the script

eternal ferry
#

oh i didnt even look im upgrading my UI

charred niche
#

oh

#

lol

#

@strong robin do something like

while wait(duration) do
  plr.Strength.Value += amount
end
eternal ferry
#

wait i have a question

charred niche
#

mhm?

eternal ferry
#

i have like this

#

but i only did a X2 RunSpeed one

charred niche
#

mhm

strong robin
#

@eternal ferry this might work

local Players = game:GetService("Players")
local MPS = game:GetService("MarketplaceService")

local GAMEPASS_ID = --your gamepass id--
local DEFAULT_SPEED, BOOSTED_SPEED = 16, 32

local function checkAndSetSpeed(p)
    local hasPass = false
    pcall(function()
        hasPass = MPS:UserOwnsGamePassAsync(p.UserId, GAMEPASS_ID)
    end)

    local function applySpeed(c)
        local h = c:WaitForChild("Humanoid")
        h.WalkSpeed = hasPass and BOOSTED_SPEED or DEFAULT_SPEED
    end

    if p.Character then applySpeed(p.Character) end
    p.CharacterAdded:Connect(applySpeed)
end

Players.PlayerAdded:Connect(checkAndSetSpeed)
eternal ferry
#

who works but idk how to do a x2 cash , x2 strength , the fast lifting , insane fast lifting and all the others

strong robin
charred niche
#

still AI code

strong robin
#

-_-

#

i aint writing all of that

eternal ferry
#

the speed one alr works

#

dw

charred niche
strong robin
strong robin
charred niche
#

just learn to code yall, its a useful skill

strong robin
#

I can barley make stuffs

#

But at least I understand code

charred niche
#

then watch a tutorial

strong robin
charred niche
#

pop quiz:
what does p.CharacterAdded:Connect(applySpeed)

#

what does that do

eternal ferry
#

(aint responding to that) but the game is so messed up like i have to do animations and everything, i watched tuts but doesnt work do u know anything that works?

strong robin
strong robin
charred niche
#

it runs that function when the character is added such as after the player respawns

eternal ferry
#

that why i quit script too many sweatsevilcat

charred niche
#

then become a sweatDoublethumbs

eternal ferry
strong robin
#

did you start animating yet

eternal ferry
#

what

cold folioBOT
#

studio** You are now Level 3! **studio