So I am now trying to create a survival/adventure/crafting game a bit like Fantastic Frontier.
But I am currently stuck on a tree monster that spits out fire cubes at approaching players.
Here is my script:
local tree = script.Parent
local hitpart = script.Parent.Hit
local cube = game.ServerStorage.Cube
hitpart.Touched:Connect(function(plr)
if plr.Parent:WaitForChild("Humanoid") then
cubed = game.ServerStorage.Cube:Clone()
cubed.Parent = workspace
cubed.Position = tree.Mouth
end
end)
All this does is make a part drop from his mouth... Could someone help me out here?
Thanks in advance!

4 comments
look out body movers or changing the parts velocity
I don’t know the answer to this question but wouldn’t a tree burn itself and it’s friends down with fire cubes why not killing them with roots?
Enzo, this isn't the place to criticize ideas, this is the place to help people with scripting.
he isn't "criticizing" anything, he is just stating facts.