When my client fires a Remote Event, the server doesn't return any error. When I do fire the event, the first animation never seems to load. There's no indacation in my script that says straight out of the bloom, "Hey, this is an error." Take a look at the server script.
001 | local PunchEvent = game.ReplicatedStorage:WaitForChild( 'punch' ) |
002 | local Cooldown = 0.8 |
003 |
004 | local PunchData = { } |
005 | local Cooldowns = { } |
006 |
007 | local function PlaySound(ID,Parent) |
008 | local Sound = Instance.new( "Sound" ) |
009 | Sound.SoundId = "rbxassetid://" ..ID |
010 | Sound.PlayOnRemove = true |
011 | Sound.Parent = Parent |
012 | Sound:Destroy() |
013 | end |
014 |
015 | function Make(Character) |
And here's the client script.
01 | local Players = game:GetService( 'Players' ) |
02 | local ReplicatedStorage = game:GetService( 'ReplicatedStorage' ) |
03 | local UserInputService = game:GetService( 'UserInputService' ) |
04 |
05 | local Player = Players.LocalPlayer |
06 | local PunchEvent = game.ReplicatedStorage.punch |
07 |
08 | UserInputService.InputBegan:Connect( function (Key, GameProcessedEvent) |
09 | if not GameProcessedEvent then |
10 | if Key.UserInputType = = Enum.UserInputType.MouseButton 1 then |
11 | PunchEvent:FireServer() |
12 | end |
13 | end |
14 | end ) |
function square(iteratorMaxCount,currentNumber)
if currentNumber<iteratorMaxCount then currentNumber = currentNumber+1 return currentNumber, currentNumber*currentNumber end
end
for i,n in square,3,0 do print(i,n) end and nowit is more than enough to add the transfer time in seconds transformed into data