Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[EMERGENCY] How Would I Make My Monster Spit Out Fire Cubes At People?

Asked by 4 years ago
Edited 4 years ago

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!

0
look out body movers or changing the parts velocity royaltoe 5144 — 4y
0
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? EnzoTDZ_YT 275 — 4y
0
Enzo, this isn't the place to criticize ideas, this is the place to help people with scripting. Maxis_s 97 — 4y
0
he isn't "criticizing" anything, he is just stating facts. Sadwowow21 57 — 4y

Answer this question