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

Works when Im in a server by my self, otherwise "fireball" stays still visibly but does damage?

Asked by 6 years ago
Edited 6 years ago

This was working fine a while ago, but after I tried too expand with other ability ideas, I think I tinkered with something I should have, and stupidly didn't save.I also think I might be using something outdated. I can shoot out the "fireball" but when in a game with other people,it doesn't move but still hits as if it was moving. Thanks for any help (:

In serverscriptservice as regular script

01local ReplicatedStorage = game:GetService("ReplicatedStorage")
02local Debris = game:GetService('Debris')
03 
04 
05local Remote = ReplicatedStorage.FireBallEvent
06local FireBall = ReplicatedStorage.FireBall
07 
08 
09local Damage = 20
10 
11local ServerDebounces = {}
12FireBall.Transparency = 0.5
13FireBall.CanCollide = false
14Remote.OnServerEvent:Connect(function(plr, Mouse)
15if not ServerDebounces[plr] then
View all 57 lines...

In Starter GUI as local script

01local ReplicatedStorage = game:GetService("ReplicatedStorage")
02local UserInputService = game:GetService("UserInputService")
03 
04local plr = game.Players.LocalPlayer
05local Char = plr.Character or plr.CharacterAdded:Wait()
06local Remote = ReplicatedStorage.FireBallEvent
07local Mouse = plr:GetMouse()
08 
09local Debounce = true
10local Key = 'Q'
11local Animation = Instance.new("Animation")
12Animation.AnimationId = 'rbxassetid://2464206362'
13 
14UserInputService.InputBegan:Connect(function(Input, IsTyping)
15if IsTyping then return end
View all 25 lines...

thanks again

Answer this question