--When a player spawns, sets up stuff for them
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local function onCharacterAdded(player)
local lobbyTeam = game.Teams.Lobby
--Well use the player in Players cause Team is not a child of the player model
local teamPlayer = Players:WaitForChild(player.Name)
if teamPlayer.Team ~= lobbyTeam then
local stick = ReplicatedStorage.HittingStick
local stickClone = stick:Clone()
stickClone.Parent = teamPlayer.Backpack
stickClone.Handle.Anchored = false
stickClone.Top.Anchored = false
end
end
Players.LocalPlayer.CharacterAdded:Connect(onCharacterAdded)
This is just a checker local script for when people spawn, not actually that relevant. But maybe problem is in code.
Basically, in my undeveloped game, there are two team blocks and if you touch one it loads your character and then spawns you in the map. It gives you a fighting stick then. But when I send a stick clone into the player's inventory from ReplicatedStorage, the Animation Script inside it I use (local script) seems to work, but the script for other stuff like damage does not run from the start. Can somebody please help me as to where the problem lies. What storage or area.

2 comments
So, if a script, even if it isn't in one of those places in the above, but originated from there, it will not run?
Anyway, after I will have a look, but since there seems to be a solution, I think it is ok. Thank you!