How can i get a Speed Coil to work with Filtering Enabled?
Asked by
Kulh 125
7 years ago Edited 7 years ago
I've been trying to do this ever since i woke up. Every attempt i make fails when i test it with a server. I've had small successes with the Client, but not Server
If it works with Server test i will accept the help of you.
03 | local tool = script.Parent |
04 | local speedEvent = tool.SpeedEvent |
05 | local humanoid = game.Players.LocalPlayer.Character.Humanoid |
07 | local function onActivated() |
08 | speedEvent:FireServer(humanoid) |
11 | speedEvent.OnClientEvent:connect( function (arg) |
17 | tool.Activated:Connect(onActivated) |
03 | local tool = script.Parent |
05 | local speedEvent = tool.SpeedEvent |
07 | local function onSpeedEventFired(player, arg) |
08 | if arg and arg.Name = = "Humanoid" and not arg.WalkSpeed = = 32 then |
09 | tool.Handle.CoilSound:Play() |
14 | speedEvent.OnServerEvent:Connect(onSpeedEventFired) |
Both scripts including RemoteEvent are in the Tool