So I am making a script for my sled tool when in output It says Destroy not a member of output and when ever I place down my sled it doesn't go to my mousePos

local Sled = game.ReplicatedStorage:WaitForChild("Sled")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
local Metal = script.Parent.Metal
local Wood = script.Parent.Wood

mouse.Button1Down:Connect(function()
	local mousePos = mouse.Hit
	local SledCopy = Sled:Clone()
	Metal.Transparency = 1
	Wood.Transparency = 1
	SledCopy.Parent = workspace
	Sled.PrimaryPart.CFrame = CFrame.new(Vector3.new(mousePos))
	
mouse.Button2Down:Connect(function()
	SledCopy:Destory()
	Metal.Transparency = 0
	Wood.Transparency = 0
		
end)
end)

3 comments

0

you made a typo. You misspelled destroy as destory.

0

im stupid

0

well i fixed that do you know anything about the sled not tp'ing?