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

[SOLVED] My fire ball ability isn't working?

Asked by
vileras 22
3 years ago
Edited 3 years ago

Hello! its me again, so theres a Boss Morph ive maded with abilities, However it doesn't seems the fire ball script working..

Again i will be grateful for every possible help!

Local Script Code:

01local UserInt = game:GetService("UserInputService")
02local Player = game.Players.LocalPlayer
03local Character = script.Parent
04local Mouse = Player:GetMouse()
05local Remote = game.ReplicatedStorage.Abilities.SkullAbility
06 
07UserInt.InputBegan:Connect(function(input, gameProcessed)
08    if input.KeyCode == Enum.KeyCode.Q then
09        Remote:FireServer(Mouse.Hit.p)
10    end
11end)

Server Code:

01local RS = game:GetService("ReplicatedStorage")
02local Skull = RS:WaitForChild("SkullAbility")
03 
04 
05 
06 
07Skull.OnServerEvent:Connect(function(player, Mouse, Character)
08    wait(0.9)
09    local Fireball = Instance.new("Part")
10    Fireball.Parent = workspace
11    Fireball.CFrame = Character:WaitForChild("HumanoidRootPart").CFrame
12    local Mesh = Instance.new("SpecialMesh")
13    Mesh.Parent = Fireball
14    Mesh.MeshId = "http://www.roblox.com/asset/?id=4770583"
15    Mesh.TextureId = "http://www.roblox.com/asset/?id=76745352"
View all 30 lines...

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

In the localscript it looks inside ReplicatedStorage.Abilities for "SkullAbility" but on the server side it only looks inside ReplicatedStorage

Ad

Answer this question