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

I need help with a sell,backpack,and shovel script. Thanks ?

I want to learn how to make a snow shovel script and backpack, almost like bee swarm sim or snow shoveling sim, but this game will be private for my friends. This is the code I got:

local waitdur = 1.2 playing = false local leaderstats = game.Players.LocalPlayer:WaitForChild("leaderstats")

script.Parent.Activated:connect(function() local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Shoveled) wait() if playing == false then playing = true attack:Play() wait(waitdur) playing = false attack:Stop() end end)

script.Parent.takeawaypart.Touched:connect(function(part) if playing == false then elseif playing == true then if part.Name == "snowpiece" and part.Digsleft.Value == 3 then part.Digsleft.Parent.Size = Vector3.new(4, 1.5, 4) wait(1) part.Digsleft.Value = 2

		elseif part.Name == "snowpiece" and part.Digsleft.Value == 2 then
		part.Digsleft.Parent.Size = Vector3.new(4, 1, 4)
		wait(1)
		part.Digsleft.Value = 1
		
		
		elseif part.Name == "snowpiece" and part.Digsleft.Value == 1 then
		part.Digsleft.Parent.Size = Vector3.new(4, .5, 4)
		wait(1)
		part.Digsleft.Value = 0
		
		elseif part.Name == "snowpiece" and part.Digsleft.Value == 0 then
		part.Digsleft.Parent.Size = Vector3.new(4, 0, 4)
		wait(1)
		part.Digsleft.Value = -1
	end
	
	
end

end)

but I can't figure out how to make a backpack script or a basic "Sell snow at Frosty!" script. Someone please help.

(sorry for asking for scripts)

3 comments

0

Just play the carbon copy games from that game. treasure hunt simulator, woodcutting simulator, snow shoveling simulator, ghost hunt simulator, the list goes on and on.

0

Please put all of your code in a code block

0

Bump

1 answer

My personal approach to that problem would be to store the backpack snow in a constrained intvalue inside a folder in the player. For frosty you should make a hitbox with a clickdetector and put on a billboard gui make frosty check how much snow you have remove the snow and give you the money

This is just theory since it would be better if you made it yourself

If you need more help please let me know

Edit: IntConstrainedValue is deprecated but should be ok to use if it's just for friends

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