Alright let me test it in game
can you put some prints please
It’s giving me weird errors, I think i messed up the code let me look through it
try this
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassId = 16558561
game.Players.PlayerAdded:Connect(function(player)
print("PLayer added")
player.CharacterAdded:Wait(function()
print("Character added")
if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassId) then
print("Owns Pass")
local CharacterClone = game.ReplicatedStorage:FindFirstChild("LightningMan"):Clone()
CharacterClone.Name = player.Name
player.Character:Destroy()
player.Character = CharacterClone
CharacterClone.Parent = game.Workspace
print(Player.Characer)
end
end)
end)
telll us what it prints
It only prints playeradded
do
player.CharacterAdded:Wait() --this
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassId = 16558561
game.Players.PlayerAdded:Connect(function(player)
print("PLayer added")
player.CharacterAdded:Wait()
print("Character added")
if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassId) then
print("Owns Pass")
local CharacterClone = game.ReplicatedStorage:FindFirstChild("LightningMan"):Clone()
CharacterClone.Name = player.Name
player.Character:Destroy()
player.Character = CharacterClone
CharacterClone.Parent = game.Workspace
print(Player.Characer)
end
end)
That works but the animation doesn’t even load
1 Like
what does it print now???
Here this worked for me.
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassId = 16558561
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
wait(4)
if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassId) then
local CharacterClone = game.ReplicatedStorage.LightningMan:Clone()
player.Character:Destroy()
CharacterClone.Name = player.Name
player.Character = CharacterClone
CharacterClone.Parent = game.Workspace
end
end)
end)
Apparently you cant set the players character to fast
1 Like
what do you mean by the animations???
Like the animate script, he means
The Roblox default one
i have a run animation and it’s not loading in
does the model have run Anims???
no?
try giving it it some run Anims
like putting the local script inside the character?
3 Likes
Thanks for the help with my messed up code lol