hello there! i know im really late here, but i wanted to ask a quite important question, Is there any way to make the Crate/Spin System give tools instead of just Decals? Would be appreciated if i can get an answer! Thank You.
How would make it so that it rewards the player, a tool to the starter pack/Backpack instead of a value in leaderstats? Sorry I’m new to this and your tutorial is the only one out there that actually make sense.
Thank you for your reply, ill try this now.
I have another question, seeing how this script gets the name of the object like for example “Bank”
How would you script it so that they are rewarded all the children of “Bank”, so like the tools in a folder named “Bank” are rewarded?
local ServerStorage = game:GetService("ServerStorage") --// I remember Crate/Spin script is on server so please do this in server
local Bank = ServerStorage:WaitForChild("Bank")
--// FindFirstChild is to check if this Model Exist.
if Bank:FindFirstChild(ToolName) then
local Tool = Bank:FindFirstChild(ToolName):Clone()
local Backpack = player.Backpack
Tool.Parent = Backpack
else
warn("There is no tool with this name that exist")
end
function contents:PermissionToSpin(player)
local leaderstats = player:FindFirstChild("leaderstats")
return leaderstats and leaderstats.Cash.Value >= contents.Price
end