#WHAT DOES THIS MEAN

22 messages · Page 1 of 1 (latest)

trail sandal
#
local TweenService = game:GetService("TweenService")

local Player = game.Players.LocalPlayer
local Character = script.Parent.Parent.Parent

local Events = ReplicatedStorage.Events

Events:WaitForChild("TweenWaterblastSize").OnClientEvent:Connect(function(Waterblast, NewSize, Tween, TweenDuration)
    if not Tween then
        Waterblast.Size = NewSize
    else
        TweenService:Create(Waterblast, TweenInfo.new(TweenDuration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = NewSize}):Play()
    end
end)```
#

script

bold drift
#

Yo shit is nil

trail sandal
#

i dont know how to fix that

bold drift
#

Show how u firing

robust oyster
#

Show the local script firing the re

trail sandal
#

local CharacterConfigurations = require(ReplicatedStorage.SharedModules.Configurations.CharacterConfigurations)

local Events = ReplicatedStorage.Events

local AttackDebounces = {}
local module = {}

local AttackData = nil

for _, v in CharacterConfigurations do
    if v.CharacterName == script.Parent.Name then
        AttackData = v
        break
    end
end

module.AttackFunction = function(Player)
    if Player.Values.IsAttacking.Value == false and not AttackDebounces[Player] then
        AttackDebounces[Player] = true
        Player.Values.IsAttacking.Value = true
        
        task.delay(AttackData.Attacks[tonumber(script.Name)].AttackDuration, function()
            Player.Values.IsAttacking.Value = false
        end)
        
        local Character = Player.Character
        
        local WaterBlastAnimation = Character.Humanoid.Animator:LoadAnimation(script.WaterBlastAnimation)
        WaterBlastAnimation:Play()
        
        WaterBlastAnimation:GetMarkerReachedSignal("WaterAppear"):Connect(function()
            local Waterblast = ReplicatedStorage.Assets.WaterBlast:Clone()
            Waterblast.Anchored = true
            Waterblast.CFrame = Character["Right Arm"].RightGripAttachment.WorldCFrame
            Waterblast.Parent = workspace
            task.wait()
            Events.TweenWaterblastSize:FireAllClients(Waterblast, Vector3.new(0.1, 0.1, 0.1), false)
            Events.TweenWaterblastSize:FireAllClients(Waterblast, Vector3.new(2.282, 2.282, 2.282), true, 0.2)
        end)
        
        task.delay(AttackData.Attacks[tonumber(script.Name)].AttackDebounce, function()
            AttackDebounces[Player] = false
        end)
        return true
    else
        return false
    end
end

return module```
#

module script

robust oyster
robust oyster
#

OnClientEvent in a local script?

#

Oh wait

#

I’m tired

trail sandal
#

i was following a tutorial

robust oyster
#

Anyways, it’s odd that’s it’s nil, as it should get turned into a string

#

Odd, just print some values I guess

trail sandal
#

k ill tell you what it prints

trail sandal
#

fixed one of them

#
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")

local Size = ReplicatedStorage.Assets.WaterBlast.Size

local Player = game.Players.LocalPlayer
local Character = script.Parent.Parent.Parent

local Events = ReplicatedStorage.Events

Events:WaitForChild("TweenWaterblastSize").OnClientEvent:Connect(function(WaterBlast, NewSize, Tween, TweenDuration)
    print(NewSize)
    if not Tween then
        print(WaterBlast)
        Size = NewSize
    else
        TweenService:Create(WaterBlast, TweenInfo.new(TweenDuration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = NewSize}):Play()
    end
end) ```