I'm trying to make it so that the campfire spawns at the player but it always spawns somewhere else does anyone know how to fix this? This is in a local script because it's using a GUI.
local player = game.Players.LocalPlayer
local character = game.Players.LocalPlayer.Character
local Campfire = game.ReplicatedStorage.Campfire
script.Parent.MouseButton1Click:connect(function()
if player.Sticks.Value >= 2 then
if player.Stone.Value >= 1 then
player.Stone.Value = player.Stone.Value -1
player.Sticks.Value = player.Sticks.Value -2
local ClonedCampfire = Campfire:Clone()
ClonedCampfire.Parent = game.Workspace
ClonedCampfire.Position = character.Position
end
end
end)

6 comments
only problem is that now the campfire spawns on top of the characters head
Ok let me edit to fix it
k
im not sure wants wrong the campfire still spawns on top of my head
edited again lol
lol it works now thanks