so basically I followed this tutorial on how to make a simple fireball however every time I try to use my fireball it says Fireball is not a valid member of ReplicatedStorage. I've double checked and triple checked my script but I still don't understand what I did wrong. My Fireball is in Server storage. My Script is is ServerScriptService My Local script is in StartedGui
Thanks in advance for the help.
my local script:
local UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local debounce = false
UserInputService.InputBegan:Connect(function(input , IsTyping) if not IsTyping then if not debounce then debounce = false
if input.KeyCode == Enum.KeyCode.Q then
game.RplicatedStorage.Fireball:FireServer()
end
wait (0.01)
debounce = false
end
end
end)
my script:
local Fireball = game.ServerStorage:WaitForChild("Fireball")
game.ReplicatedStorage.Fireball.OnServerEvent:Connect(function(player)
local character = player.Character
local newfireball = Fireball:Clone()
newfireball.CFrame = character.HumanoidRootPart.CFrame
local bodyVelocity = Instance.new("BodyVelocity")
bodyvelocity.MaxForce = vector3.new(5000,5000,5000)
bodyvelocity.velocity = (character.HumanoidRootPart.CFrame.LookVector*100)
bodyVelocity.Parent = newfireball
newfireball.Parent = workspace
local touchConn
touchConn = newfireball.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("humanoid") then
if hit.Parent.Name ~= player.Name then
hit.Parent:BreakJoints()
if touchConn ~= nill then touchConn:Disconnect()end
end
end

9 comments
please indent this
what do you mean?
Is your fireball in game.ReplicatedStorage?
Its in server storage
The event?
what event?
"game.RplicatedStorage.Fireball:FireServer()"
OOH I SPELLED IT WRONG
honestly I am so confused