How to make a FIREBALL in ROBLOX STUDIO!
ฝัง
- เผยแพร่เมื่อ 5 ก.ค. 2024
- How to make a Fireball in Roblox Studio
This is a tutorial about making a fireball in Roblox Studio. Make sure to subscribe, leave a like and comment!
Thanks so much for watching!
Chapters:
0:00 Intro
1:18 Making the fireball
6:19 Scripting
8:34 Animating
10:42 Scripting again
12:50 Debugging
26:30 Outro
roblox particle,roblox tutorials,lighting tutorials,roblox studio,roblox plugin,roblox anime vfx,modeling tutorials,building tutorials,lighting,particles,particle tutorials,particle emitter,lights,modeling,building,roblox vfx,vfx tutorials,light,roblox,studio,tutorials,gaming,builds,models,blender,tutorial,build,games,model,plugins,help,game - เกม
Just wanna say I love these tutorials and you are indeed the goat
thanks I wanted to know how to make a charge/hold system for skills. this answers everything I wanted to know that was missing from the first fireball tutorial
You deserve more recognition
Nicee tkanks for new video ❤
welcome!
love the vibes of the video btw
Thanks!!
Hey, very good video!
only issue that i had, was that it didn't work whenever there was already a fireball in the game, but i fixed it by moving the fireball into the workspace.
the goat is back! missed you bro
Under-rated channel
the greatest video i have ever seen , can you please make a video on animations like how to change idle animation , change animations if weapon is equipped and stuff like that i would really like to see something like that
something like tool.equipped:connect function()
get the humanoid and then put the anim Idk i kinda forgot to script
is there a reason on why ur putting the RemoveEvent in the StarterCharacter instead of replicatedStorage?
How do you make flipbook particles from scratch can you pls show I have been struggling and can you make it all sorts of flipbook particles not just lightning.
dude u are soo good, can i ask u how u learned?
we missed you man!
thanks!
Sir help, i'm having some problems with the debug scripts, pratically when i play the animation function buy the Fire all dont spawn. Help
im super new at code just learned some basic what should i do next
bro is the main character
Nice video
Thanks!
tutorial on a counter move next; you teleport behind them then do a grabbing attack?
pretty please????????
pin me.
can you teach how to make lightning in roblox studios with damage
pokemon music in the background
@SnakesRobbs the scripting is not working and i did everything step by step i dont wanna loose 5 hours of work for nothing pls help
How would you make this a tool?
i want tool version
i know that i the worst at scriptign and learining it around less than year but i did that video in liek 3 days so yeah , my mental health doesnt exist anymore :P
For some reason, whenever there is already a fireball i threw, and I try to throw another one, I get the error: WeldConstraint is not a valid member of Part "Workspace.U_DEErt.Right Arm.Fireball" - Server - Script:35. How do I fix this? Can you make a like cooldown making it so you can only throw another fireball after like 2 seconds and in between that cooldown you cannot throw another fireball at all. Please help
The dbtime is there for you, change the number to the amount of seconds between a throw
When you start animating how do you make the ball follow the hand in the animation
add a weld constraint in the fireball that has part0 as the fireball, and part1 as the arm/hand. also set the cframe of the fireball to the cframe of the attachment in the right arm/hand called "RightGripAttachment". you should see "worldCFrame", so just copy that and paste it into the fireball cframe.
How would I make the script into a tool? Thank you
replace the uisinputbegan with tool.activated:connect(function())
just make a variable with the name tool
btw heres a quick guide to tool
activated = when you click with the tool equipped
equipped = self explanatory
unequipped = again , i think u get it
those are the 3 main events people use with tools, hope it helps :3
oh and theres no need forthe istyping thing since its a tool and not a keybind
how to make it not dupe?
uhh i made the script and everything it worked in studio but it only worked for me and not my freind and also when i joined the game in the roblox web site it didnt work for any of us
plz help
Can you send me your script?
@@SnakesRobbs local ts = game:GetService("TweenService")
local remote = script:WaitForChild("FireballEvent")
local char = script.Parent.Parent
local humrp = char:FindFirstChild("HumanoidRootPart")
remote.OnServerEvent:Connect(function(player, state)
if state == "Charge" then
local fireball = script.Fireball:Clone()
fireball.Parent = char["Right Arm"]
fireball.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
wait()
fireball.WeldConstraint.Part1 = fireball.Parent
fireball.Anchored = false
fireball.Massless = true
local tween = ts:Create(fireball, TweenInfo.new(0.4), {Transparency = 0}):Play()
for i,v in pairs(fireball:GetChildren()) do
if v:IsA("Trail") then
v.Enabled = true
elseif v:IsA("ParticleEmitter") then
if v.Name == "Flame" then
local tween = ts:Create(v, TweenInfo.new(0.4), {Rate = 1000}):Play()
v.Enabled = true
end
v.Enabled = true
end
end
elseif state == "Throw" then
local fireball = char["Right Arm"]:FindFirstChild("Fireball")
fireball.WeldConstraint:Destroy()
fireball.CFrame = humrp.CFrame
local bv = Instance.new("BodyVelocity", fireball)
bv.MaxForce = Vector3.one * math.huge
bv.Velocity = humrp.CFrame.LookVector * 125
local touchedparts = {}
fireball.Touched:Connect(function(hit)
if hit.Parent.Name ~= char.Name then
if hit.Name == "HumanoidRootPart" then
if hit.Parent:FindFirstChild("Humanoid") then
if table.find(touchedparts, hit.Parent.Name) then return end
local ehumanoid = hit.Parent:FindFirstChild("Humanoid")
ehumanoid:TakeDamage(20)
table.insert(touchedparts, hit.Parent.Name)
if hit then
wait(0.1) fireball:Destroy()
end
end
end
end
end)
wait(1.5)
local tween = ts:Create(fireball, TweenInfo.new(0.4), {Transparency = 1}):Play()
for i,v in pairs(fireball:GetChildren()) do
if v:IsA("Trail") then
v.Enabled = false
elseif v:IsA("ParticleEmitter") then
if v.Name == "Flame" then
local tween = ts:Create(v, TweenInfo.new(0.4), {Rate = 0}):Play()
v.Enabled = false
end
v.Enabled = false
end
end
wait(0.8)
fireball:Destroy()
end
end) I just added that if it hit then the fireball destroys
@@SnakesRobbs yees yess pls
how and how long did it take you to learn to script?
around a year, maybe a tad more
i got this error: Destory is not a valid member of WeldConstraint "Workspace.yusufesen3.Right Arm.Fireball.WeldConstraint
It should be :Destroy(). You probably did .Destroy()
i didn't do .Destroy() i did :Destory()@@SnakesRobbs
lemme paste my script
local ts = game:GetService("TweenService")
local remote = script:WaitForChild("FireballEvent")
local char = script.Parent.Parent
local humrp = char:FindFirstChild("HumanoidRootPart")
remote.OnServerEvent:Connect(function(player, state)
if state == "Charge" then
local fireball = script.Fireball:Clone()
fireball.Parent = char["Right Arm"]
fireball.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
wait()
fireball.WeldConstraint.Part1 = fireball.Parent
fireball.Anchored = false
fireball.Massless = true
local tween = ts:Create(fireball, TweenInfo.new(0.4), {Transparency = 0}):Play()
for i,v in pairs(fireball:GetChildren()) do
if v:IsA("Trail") then
v.Enabled = false
elseif v:IsA("ParticleEmitter") then
if v.Name == "Flame" then
local tween = ts:Create(v, TweenInfo.new(0.4), {Rate = 1000}):Play()
v.Enabled = true
end
v.Enabled = true
end
end
elseif state == "Throw" then
local fireball = char["Right Arm"]:FindFirstChild("Fireball")
fireball.WeldConstraint:Destory()
local bv = Instance.new("BodyVelocity", fireball)
bv.MaxForce = Vector3.one * math.huge
bv.Velocity = humrp.CFrame.LookVector * 80
end
end)
i didn't do the full script yet
Help, i have copied the local script for the animation, when i enter in the test and i press "F" the output tell me: " Charge " and 1 second after "Charge" tell " Throw " , But the animation dont start. Help please..
Can you send your script?
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(input, istyping)
if istyping then return end
if input.KeyCode == Enum.KeyCode.F then
local char = script.Parent.Parent
local humanoid = char:FindFirstChild("Humanoid")
local humrp = char:FindFirstChild("HumanoidRootPart")
local anim = humanoid:LoadAnimation(script.FireballAnimation)
anim:Play()
anim:GetMarkerReachedSignal("Charge"):Once(function()
print ("Charge")
end)
anim:GetMarkerReachedSignal("Throw"):Once(function()
print ("Throw")
end)
local remote = script.Parent.Script.FireballEvent
remote:FireServer("Charge")
end
end)
StarterCharacterScripts, Folder, LocalScript
@@SnakesRobbs
Oh, now function. But the debugging from the visible ball don't function@@SnakesRobbs
btw, the script of the debug its this:
local ts = game:GetService("TweenService")
local remote = script.Parent:WaitForChild("FireballEvent")
remote.OnServerEvent:Connect(function(player, state)
if state == "Charge" then
local Fireball = script.Fireball:Clone()
local char = script.Parent.Parent
local humrp = char:FindFirstChild("HumanoidRootPart")
Fireball.Parent = char["Right Arm"]
Fireball.WeldConstraint.Part1 = Fireball.Parent
Fireball.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
local tween = ts:Create(Fireball, TweenInfo.new(0.4), {Trasparency = 0}):Play()
for i,v in pairs(Fireball:GetChildren()) do
if v:IsA("Trail") then
v.Enabled = false
elseif v:IsA("ParticleEmitter") then
if v.Name == "Flame" then
local tween = ts:Create(v, TweenInfo.new(0.4), {Rate = 1000}):Play()
v.Enabled = true
end
v.Enabled = true
end
end
elseif state == "Throw" then
end
end)
So can u help me with the debug script?@@SnakesRobbs
How to commit identity theft next?
100% agree
en.m.wikipedia.org/wiki/Identity_fraud
camera shake
can anyone post the script here plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Hello for me it says
WorkspaceFireball.Script:11: Expected identifier, got '[' - Studio - Script:11
why dosen't it work ?
Can you send your script?