local CharacterModule = require(game.ReplicatedStorage.CharacterModule)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local CharacterChosen = plr:GetAttribute("CharacterChosen")
if not CharacterChosen then return end
local Data = CharacterModule[CharacterChosen]
if not Data then return end
local Weapon = game.ReplicatedStorage:FindFirstChild(Data.Weapon)
if Weapon then
Weapon = Weapon:Clone()
Weapon.Parent = char
local hand = char:WaitForChild("RightHand")
local weld = Instance.new("Motor6D")
weld.Part0 = hand
weld.Part1 = Weapon
weld.C0 = CFrame.new(0,0,0)
weld.C1 = CFrame.new(0,0,0)
weld.Parent = hand
print("Hello")-- this doesnt print btw
end
end)
end)