#"auto lifting button"
1 messages · Page 1 of 1 (latest)
Another project -_-
Just use a of else p call
I wanted to see but I decided it put add a part In Loop and it crashed my pc
Is bro okay???
WHAT
** You are now Level 2! **
Let me just try to copy and paste the script that works for me
k
Why did I decided to put a crashing script in my server -_-
My pc not loading anything
whats the code
Use marketplace service, check for gamepass purchase, and every one second give the player strength
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)
why is your gamepass 12345678
loll
and why is there a command that says add anything you want herre cause im NOT scripting for you
😭 🙏
comment*
-- Replace this with your actual Game Pass ID
uhhhh cause i wrote it 😎
** You are now Level 4! **
alr
well in that section do a loop to add power to the player
since its a lifting simulator
cant you just write normal script but inside the
if success then
if hasPass then
--your thingy--
Idk im a new scripter
even new scripters should learn how to make loops in the first few days
???
hes my friend
what
the script
oh i didnt even look im upgrading my UI
oh
lol
@strong robin do something like
while wait(duration) do
plr.Strength.Value += amount
end
wait i have a question
mhm?
mhm
@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)
who works but idk how to do a x2 cash , x2 strength , the fast lifting , insane fast lifting and all the others
100% AI code
95%*
still AI code
why not
just make a new int vaalue called data and put the number there id if the user owns the gamepass then ass the number by using WaitForClild
huh, wheres the code for that
just learn to code yall, its a useful skill
I started like 3 weeks ago 🥀
I can barley make stuffs
But at least I understand code
then watch a tutorial
That’s what I’ve been doing
(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?
Idk the code looks weird so guess error
Let me watch animation tutorial
nope
it runs that function when the character is added such as after the player respawns
that why i quit script too many sweats
then become a sweat

did you start animating yet
what
** You are now Level 3! **