Hello, I'm not an experienced scripter but I know a little about scripting and I'm working on my game here and I made a tool that whenever you activate it, it will teleport a horse model to your player, I'm having issues doing so and the script seems to not be working, Here is the script:
game.Players.PlayerAdded:Connect(function(player)
local Tool = script.Parent
local Horse = game.ServerStorage.Horse:Clone()
local char = player.Character
local characterCFrame = player.Character.HumanoidRootPart.CFrame
Tool.Activated:Connect(function()
Horse:SetPrimaryPartCFrame(characterCFrame)
end)
end)
The script is inside of the tool, which is inside of StarterPack. Any help would be very much appreciated, Thanks!

4 comments
Hey don't say it like that he's still learning how to script.
I learned to script both from youtube and experiencing scripting in Roblox Studio without knowlegde .
hello my guy :)
Sorry, I didn't see that he mentioned that he is learning scripting.