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!