Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Model Won't stay in place?[SLOVED]

I trying to make a lightning bolt appear(which it does), but it won't stay in place with the enemy. This is FE and Server Script


local function lighting(player, enemy, damage)
	print(enemy.Name)
print(damage)
local bc = game.ReplicatedStorage.AbilityModels.LightningBolt:Clone()
			bc.Parent = workspace.Ignore
			bc.Zap:Play()
			local random = math.random(0,100)
			local eh = enemy:WaitForChild("Resources").Health.Health
			eh.Value = eh.Value - damage
			repeat
print("Placing LightningBolt")
		    bc.Main.CFrame = enemy:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0,6,0)*CFrame.Angles(0,random,.2)
			until 
			wait(.5)
			bc:Destroy()
end
game.ReplicatedStorage.AbilityEvents.LightningEvent.OnServerEvent:connect(lighting)

1 comment

0

SLOVED

1 answer

You go to the Model then you find Anchor then when you `Anchor' it test it out, it won't fall or move. I hope!

Your welcome have a great day! If this didn't work then please, respond!

2 comments

0

No the Anchor didn't work.

0

Oh sorry. I tried.

This discussion is preserved as it was. New answers, comments, and votes are closed.