Vapirn
(Vapirnest)
October 10, 2023, 11:34am
#1
Hi Developer!
So, I’m trying the following this model:
Trail Shop - Creator Marketplace (roblox.com)
HaloGui Package - Creator Marketplace (roblox.com)
I want when an item is equipped, it will still be equipped even if it gets reset character.
Please give me an example of what I should do, because honestly I don’t understand scripting
All you need is literally a simple google search:
local Game = game
local Players = Game:GetService("Players")
local function OnPlayerAdded(Player)
local function OnCharacterAdded(Character)
local Backpack = Player:FindFirstChildOfClass("Backpack") or Player:WaitForChild("Backpack")
local Humanoid = Player:FindFirstChildOfClass("Humanoid") or Player:WaitForChild("Humanoid")
local function OnHumanoidDied()
Humanoid:UnequipTools()
for _, Tool in ipairs(Backpack:GetChildren()) do
Tool.Parent = Player
end
end
Humanoid…
3 Likes
A normal script in ServerScriptService, you can’t do that in a local script to make it visible to others
1 Like