#Gamepass disappears and Jump Power
101 messages · Page 1 of 1 (latest)
send script
local id = 191977353
local m = game:GetService('MarketplaceService')
game.Players.ChildAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if m:UserOwnsGamePassAsync(player.UserId, id) then
local h = char:WaitForChild('Humanoid')
h.JumpPower = 100
end
end)
end)
local id = 191936571
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.WalkSpeed = 40
end
end)
game.Players.PlayerAdded:Connect(function(plr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").WalkSpeed = 40
end
end)
speed works but jump doesnt
also idk why it goes away after death
its also my first ever game to try and develop on roblox
change
game.Players.ChildAdded:Connect(function(player)
to
game.Players.PlayerAdded:Connect(function(player)
Here you need to do characteradded event
add it after playeradded event
yes
nonononon
change
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
end)
end)
like that
local id = 191936571
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.WalkSpeed = 40
end
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").WalkSpeed = 40
end
end)
** You are now Level 1! **
so this should work?
okay
local id = 191936571
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.WalkSpeed = 40
end
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").WalkSpeed = 40
end
end)
end)
there you go
its have to be another end)
to work
change
local id = 191936571
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.WalkSpeed = 40
end
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").WalkSpeed = 40
end
end)
end)
it worksss
but my jump power still doesnt
local id = 191977353
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.JumpPower = 100
end
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").JumpPower = 100
end
end)
end)
this is the current script for it i just copied yours
but it doesnt work for jump idk why tho
as i said im kinda new to all of this
use
wait
its not you
its roblox
they
put JumpHeight
instead of JumpPower
to activate
use the line of
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").UseJumpPower = true
this should work
wait
change
local id = 191977353
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.JumpPower = 100
end
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").UseJumpPower = true
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").JumpPower = 100
end
end)
end)
use this
this should work
u too man
but
wait
there is some prob ther
for the first time purchaser
it couldnt work cus
@remote pewter
why not?
i gotta do something just one more
wait
i have something else
local mps = game:GetService("MarketplaceService")
script.Parent.MouseButton1Click:Connect(function()
mps:PromptGamePassPurchase(game.Players.LocalPlayer,script.Parent.GamePassID.Value)
end)
this
in my image button
if this helps
change
local id = 191977353
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and id == ido then
plr.Character.Humanoid.UseJumpPower = true
plr.Character.Humanoid.JumpPower = 100
end
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,id)then
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").UseJumpPower = true
game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").JumpPower = 100
end
end)
end)
now its complete
what is this is a problem ?
this is the ponw
one
you should use this
and if you have any suggest you can dm me
u want to test my game rq?
should be this
and spawn is kinda moved rn since im testing levels
but its nowhere near complete
ok can u join too
im in
np take ur time
** You are now Level 2! **