Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

when i kill the dummy it only gave me the double value once. Why?

im using gamepass for this game when someone kill the dummy, it gave you double the reward

local hum = script.Parent:WaitForChild("Humanoid")
game.Players.PlayerAdded:Connect(function(player)
	local wew = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 10995771)
hum.Died:Connect(function()
		local kepintaran = player.leaderstats.Kepintaran.Value
		if wew then
			game.ServerStorage.Give:Fire(20*(kepintaran+1)*2)
		else
			game.ServerStorage.Give:Fire(20*(kepintaran+1))
		end
	end)
	end)

and when the dummy was respawned . I didnt got the double reward. Please help

3 comments

0

Is it because you didn't own the gamepass?

0

he should

0

if you make a gamepass it makes you own it automatically

1 answer

on line 6 do

if wew = true then

-- = true is the only thing i changed

4 comments

0

alright

0

i think the problem is roblox is kinda laggy

0

This is not an answer. if wew = true then and if wew are both, BOTH the same. Roblox is experiencing server problems so that might be the issue.

0

???? r u saying my answer dont work cuz roblox is laggy? SRSLY UR SO RANTS CURSES AT LazerShatters AAAAAAAAAAAAAAAAAA

This discussion is preserved as it was. New answers, comments, and votes are closed.