for some weird reasn, is not being sended the arguments that i just now need:
local Domain = utils.Gojo.InfiniteVoid.Domain:Clone()
local Collider = utils.DomainCollider:Clone()
Collider.Parent = workspace.Domains
Collider.Name = plr.Name..'Collider'
Domain.Parent = workspace.Domains
if Collider and Collider.Parent then
Domain.Position = Position + Vector3.new(0,2,0)
Domain.DomainGround.Position = Position
Domain.Name = plr.Name..'StartupDomain'
for i, v in pairs(workspace.Domains.Cframes:GetChildren()) do
if v:IsA("Part") and v:GetAttribute("AlreadyTaken") ~= true then
Collider.CFrame = v.CFrame
Collider.Ground.CFrame = v.CFrame * CFrame.new(0,-2,0)
v:SetAttribute("AlreadyTaken", true)
domaincframepart = v
break
end
end
task.wait(0.1)
task.spawn(function()
local ddd = {
DomainCOllider = Collider;
Opening = Domain;
Char = char;
WhatEvent = "opening";
Who = "Gojo";
}
vizualiser:FireClient(plr, plr, "Domains", ddd)
end)
else
return
end
this is client:
game.ReplicatedStorage.Client_effect.OnClientEvent:Connect(function(plr, theoneandonly, ...)
local module = require(script.VisualizerModule)
local player = game.Players.LocalPlayer
local di = {...}
print(di)
--prints out just {Char = char, WhatEvent = "opening", Who = "Gojo"} and not the ones i want
if theoneandonly == "Domains" then
task.spawn(function()
local object = module.new(plr)
print(table.unpack(di))
object:Domains(table.unpack(di))
end)
end
end)
local module = {}
local Domm = require(script.Domains)
function module.new(player)
local neww = {}
function neww:Domains(params)
if player then
Domm.Domains(params)
end
end
return neww
end
return module
local Rep = game:GetService("ReplicatedFirst").Main_RFirst.Vfx.Other
local TweenService = game:GetService("TweenService")
local ThisPlayer = game.Players.LocalPlayer
local FXModule = require(script.ModuleScript)
local utils = Rep.Utils
function module.Domains(params)
if params.Who == "Gojo" then
elseif event == "opening" then
print(params)
local Sound = params.Sound
local Opening = params.Opening
local DomainCollider = params.DomainCOllider
local p21 = Opening
local Travel = utils.Gojo.InfiniteVoid.DomainTravel:Clone()
Travel.CFrame = DomainCollider.CFrame
Travel.Lines.CFrame = DomainCollider.CFrame
Travel.Parent = Opening
local DomainBG = utils.Gojo.InfiniteVoid.DomainBG:Clone()
DomainBG.CFrame = DomainCollider.CFrame
p21.Destroying:Connect(function()
Travel:Destroy()
DomainBG:Destroy()
end)
local sound = Instance.new("Sound", workspace)
sound.SoundId = "rbxassetid://88526454591628"
sound.Name = "bruh"
sound:Play()
sound.SoundGroup = game.SoundService["Sfx sound"]
sound.Ended:Connect(function()
sound:Destroy()
end)
if Sound then
else
--opening white stuff, domain travel
local Ground = p21.DomainGround
Ground.Surround.Enabled = true
TweenService:Create(Ground.Surround, TweenInfo.new(0.8), {
["ShapePartial"] = 1
}):Play()
--FXModule:PlaySound(sfx.Misc.Domain.Domain, workspace, game.SoundService.Effect, true)
game.Debris:AddItem(Ground, 2)
--FXModule:PlaySound(sfx.Gojo.InfiniteVoid.InfiniteVoid, workspace, game.SoundService.Effect)
task.delay(0.8, function()
TweenService:Create(Ground, TweenInfo.new(0.4), {
["Transparency"] = 0
}):Play()
FXModule:DomainMapFade(Color3.new(1, 1, 1), 0.4, 1.6)
end)
task.wait(1.5)
Travel.Dissolve:Emit(100)
Travel.Dissolve.Enabled = true
TweenService:Create(Travel, TweenInfo.new(0.2), {
["Transparency"] = 1
}):Play()
TweenService:Create(Travel.Dissolve, TweenInfo.new(0.5), {
["ShapePartial"] = 0,
["Rate"] = 50
}):Play()
task.delay(0.5, function()
Travel.Dissolve.Enabled = false
end)
end
local Lines = Travel.Lines
Travel.SpaceBG.Enabled = true
game.Debris:AddItem(Travel, 2.4)
local RenderV1 = nil
RenderV1 = game:GetService("RunService").RenderStepped:Connect(function()
if Lines.Parent then
Lines.Position = (workspace.CurrentCamera.CFrame * CFrame.new(0, 0, -5)).Position
else
RenderV1:Disconnect()
end
end)
if DomainCollider and DomainCollider.Parent then
--local Music = FXModule:PlaySound(sfx.Gojo.InfiniteVoid.Music, workspace, game.SoundService.Music, true)
--domain travel, youre enter
game.SoundService.AmbientReverb = Enum.ReverbType.Alley
DomainCollider.Destroying:Connect(function()
game.SoundService.AmbientReverb = Enum.ReverbType.NoReverb
--TweenService:Create(Music, TweenInfo.new(2), {
-- ["Volume"] = 0
--}):Play()
--game.Debris:AddItem(Music, 2)
end)
--CamShake.CurrentShaker:ShakeOnce(5, 25, 2.4, 0.5, Vector3.new(0.5, 0.5, 0), Vector3.zero)
TweenService:Create(workspace.CurrentCamera, TweenInfo.new(2.3, Enum.EasingStyle.Circular, Enum.EasingDirection.In), {
["FieldOfView"] = 120
}):Play()
task.delay(2.4, function()
workspace.CurrentCamera.FieldOfView = 0
TweenService:Create(workspace.CurrentCamera, TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {
["FieldOfView"] = 70
}):Play()
end)
task.delay(1, function()
local v30 = Instance.new("ColorCorrectionEffect", game.Lighting)
TweenService:Create(v30, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
["Contrast"] = 3,
["Brightness"] = 0.5
}):Play()
task.wait(1)
TweenService:Create(v30, TweenInfo.new(0.3), {
["Contrast"] = 3.5,
["Brightness"] = 4
}):Play()
task.wait(0.4)
v30.Contrast = 0
TweenService:Create(v30, TweenInfo.new(0.4), {
["Brightness"] = 0
}):Play()
game.Debris:AddItem(v30, 0.5)
end)
task.wait(2.4)
if DomainCollider and DomainCollider.Parent then
DomainBG.Parent = Opening
DomainBG.Splatter1:Emit(5)
DomainBG.Splatter2:Emit(5)
DomainBG.Splatter3:Emit(5)
DomainBG.Smoke1:Emit(20)
local Render = nil
Render = game:GetService("RunService").RenderStepped:Connect(function()
if not DomainCollider.Parent then
DomainBG:Destroy()
end
if DomainBG.Parent then
DomainBG.Position = workspace.CurrentCamera.CFrame.Position
else
Render:Disconnect()
end
end)
end
else
return
end
elseif event == "Shatter" then
end
end
end
return module