#Solved

360 messages · Page 1 of 1 (latest)

bright night
#

i have no clue what 60% of those words mean

tepid mauve
#

well. thats expected.

#

allow me to dumb it down for you.

#

i want it to look like that

#

as u can see

#

its not going in a zig zag path correctly

normal fox
amber crag
tepid mauve
dim crescent
bright night
woven crest
tepid mauve
#
-- Dependencies
local TweenService = game:GetService("TweenService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Modules = ReplicatedStorage.Modules
local allVFX = require(Modules.AbilityUtility)

-- Constants
local BounceAmount = 3
local Tweeninfo = TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)

-- Function to play a list of tweens
local function PlayTweens(tweens)
    for _, tween in pairs(tweens) do
        tween:Play()
    end
end

-- Function to set character parts' transparency
local function SetCharacterTransparency(character, transparency)
    for _, part in pairs(character:GetDescendants()) do
        if (part:IsA("BasePart") or part:IsA("Decal")) and part.Name ~= "HumanoidRootPart" then
            part.Transparency = transparency
        end
    end
end

-- Main function
return function(Data)
    local Character = Data.Character
    local Humanoid = Character:WaitForChild("Humanoid")
    local RootPart = Character:WaitForChild("HumanoidRootPart")
    local Beams = script.Parent.Effects.Beams:GetChildren()
    local Task = Data.Task

    local Bottom = script.Parent.Effects:WaitForChild("Bottom"):Clone()
    Bottom.Parent = workspace

    local Reverse = false
    RootPart.Anchored = true
    SetCharacterTransparency(Character, 1)

    for count = 0, BounceAmount do
        Reverse = not Reverse

        local Beam = Beams[math.random(1, #Beams)]:Clone()
        local A1 = Beam.Attachment0.A
        local A2 = Beam.Attachment0.A2
        local RightVector = Reverse and Vector3.new(-20, 0, 0) or Vector3.new(20, 0, 0)  -- Adjusted RightVector
        local Forward = Vector3.new(0, 0, 20)  -- Adjusted Forward

        Beam.CFrame = RootPart.CFrame
        Beam.Parent = workspace

        local PlayerTween = TweenService:Create(
            RootPart,
            Tweeninfo,
            {
                CFrame = CFrame.new(
                    RootPart.Position + Vector3.new(0, 10, 0) +
                        RootPart.CFrame.RightVector * RightVector +
                        RootPart.CFrame.LookVector * Forward
                ) * CFrame.Angles(0, math.rad(RootPart.Orientation.Y), 0)
            }
        )

        local EffectTween = TweenService:Create(
            A1,
            TweenInfo.new(0),
            {
                WorldCFrame = CFrame.new(
                    RootPart.Position + Vector3.new(0, 10, 0) +
                        RootPart.CFrame.RightVector * RightVector +
                        RootPart.CFrame.LookVector * Forward
                ) * CFrame.Angles(0, math.rad(RootPart.Orientation.Y), 0)
            }
        )

        allVFX:AllVFX(Beam, true)
        allVFX:AllVFX(Beam, true)

        PlayTweens({PlayerTween, EffectTween})
        game.Debris:AddItem(Beam, 1.2)
        game.Debris:AddItem(Bottom, 1.2)
        wait(0.2)
    end

    RootPart.Anchored = false
    SetCharacterTransparency(Character, 0)
end
dim crescent
#

Why was I pinged in here?

tepid mauve
dim crescent
#

Then why delete the message after pinging me?

tepid mauve
#

@dim crescent

#

help

#

i sent code

severe river
#

whats the issue

#

hoes

tepid mauve
#

basically

#

scroll up

#

look

#

it doesnt go in a zig zag

#

it spawns in like

#

diff beams

indigo bough
severe river
#

listen to sage, hes better than me

#

I'm stupid

tepid mauve
#

lmao

severe river
tepid mauve
severe river
#

I know I know

#

I was out there making 15 usd a comm

#

(literally)

tepid mauve
indigo bough
#

get used to just using upvector rightvector and lookvector instead of adding vector3.new (just a tip)

severe river
#

RightVector is the Vector to the Righ

tepid mauve
#

😼

severe river
tepid mauve
#

hi @severe river i love you so much wanna fix the code for me

indigo bough
#

also look at how the CFrame is literally the same

tepid mauve
#

rewrite for me pls and pass the scripts

indigo bough
#

wait im so confused u do use rightvector and lookvector

tepid mauve
#

sooo

#

what should i do

#

to fix the bu

#

bug

indigo bough
#

here replace these with the numbers

#

wait what even is ur bug

glass socket
#

I made this in like

severe river
#

fr

glass socket
#

10 minutes

#

Bc he forced me

tepid mauve
#

😊

glass socket
#

It was against my will

tepid mauve
#

@severe river

#

relateable?

severe river
#

very

tepid mauve
#

..anyways.....

#

i want it like this

#

where u go in zig zag

#

straight down

#

and the explosion

indigo bough
#

bro

#

i know u can figure that out urself

#

ur standing at the middle point

tepid mauve
indigo bough
#

ur going up to the top

tepid mauve
#

this is my bug

#

seehow itsd like

#

spawning in random beams

indigo bough
#

before u get to the top u go left right left right left

tepid mauve
#

i wanna fix this issue first

glass socket
#

It’s bc the execution of the script is weird bc the way you set it up for me was weird

indigo bough
#

because look

#

ur getting a new middle point every time

#

u didnt set it down before u started the loop

tepid mauve
#

wtf

#

i made it even worse

spring locust
#

Progress

tepid mauve
#

imma undo

tepid mauve
spring locust
#

I mean you making progress :D

glass socket
#

Failure is progress

tepid mauve
#

im not

#

ive made no progresws

#

progress

#

i have actually

#

downwards trend in progresws

#

progress

#

im back at where i was now

spring locust
#

If you can make it worse then you can make it better, atleast your somewhere

tepid mauve
spring locust
#

Progress isn't always linear

tepid mauve
#

what do i do

#

whats my first step

#

mr. sage wasnt being a great help

#

mr. var @severe river

#

hello

indigo bough
#

progress is linear when u know what ur doing

#

r u just looking at the code and picking at random shit

tepid mauve
#

i need more explanation sir

indigo bough
#

start from scratch

tepid mauve
#

how do i

#

yes sir

#

there

#

i deleted the code

indigo bough
#

first u get the start cframe which is where u r already

#

then u get the top which is X up

#

then u get the zig zag points

#

left right left right left right

#

now that u have all the points

#

now u can connect it all with tweens and effects

#

get the points first before u even tween anything or play any effects

#

then test if ur getting it right, by just spawning parts to those points

#

and then u can finally continue on to effects once thats all right

tepid mauve
indigo bough
#

cframe

tepid mauve
#

what do i typ

#

type

#

in my code

spring locust
#

...

#

HumanoidRootPart.CFrame

#

I think we have bigger issues if you don't know how to get a part's CFrame

spring locust
# tepid mauve in my code

From the character CFrame you can apply some offset to it to get the final position. That's the next step sage listed

#

Then using this same concept for the zig-zag points inbetween

tepid mauve
#

@spring locust

#

what i do next

spring locust
#

You're joking right?

tepid mauve
#

What’s next

#

Sir?

tepid mauve
#

For final position

spring locust
#

Because you want the final position to be based off your current position

tepid mauve
#

Ok

#

So

tepid mauve
#

What’s my next step

spring locust
#

That line does close to nothing

#

Because your not holding that value anywhere

tepid mauve
#

Then don’t give bad explanations

spring locust
#

And in what case are you getting the position

mighty ruin
#

what

tepid mauve
spring locust
#

Variables??! How are you scripter 1

tepid mauve
#

How are you scripter 3

#

How do i hold values

mighty ruin
#

bruh

tepid mauve
#

And how do I write variables

#

🤔

tepid mauve
mighty ruin
tepid mauve
#

So you can see the big

#

Bug

spring locust
#

We're not going to get anywhere at this pace, learn Lua

#

It has 21 or so keywords its really not that hard

tepid mauve
#

I’m making good progress

#

“If you can make it worse then you can make it better, atleast your somewhere” - Censor

#

😎

spring locust
#

Because I assumed you had minimal knowledge of Lua

#

Your just fumbling around expecting things to work

tepid mauve
#

No

#

You are..

spring locust
#

Oh woah, thats so deep

#

A real thinker

tepid mauve
#

Good

spring locust
#

Go learn Lua

mighty ruin
tepid mauve
#

@spring locust

#

What is my first step

fluid blaze
#

LUA

#

@pine sage

spring locust
#

Or hire a scripter 🤷‍♂️

spring locust
#

Right here

tepid mauve
#

I did cframe

#

I did exactly what you told me to do

#

@spring locust how are you s3?

pine sage
#

bruh

tepid mauve
#

Hello prime

#

Wanna help me ou

#

Out

regal laurel
#

😭

pine sage
#

You don't have a reference to the HumanoidRootPart

pine sage
#

Using the word doesn't mean anything

tepid mauve
#

How do I make a reference to it sir?

#

And

#

What do i reference it to?

#

🤔

pine sage
#

I'll be straight with you, you need to learn some basic scripting and then attempt this.

spring locust
#

They're just being intentionally difficult

#

I genuinely believe someone can't be this clueless

#

They're just trying to get a rise out of people

#

Trolling

regal laurel
#

Why is it in a module script

tepid mauve
#

I just want my vfx to be scripted sir

#

But I’m not getting good advice

pine sage
#

If you don't know anything about scripting, we can't really help you without simply doing it for you

regal laurel
#

First thing is that you have it in a module script without requiring it in a script or local script

pine sage
#

No, no one here is going to do it for you

tepid mauve
#

?

#

@mighty ruin is doing it for me then

#

But

#

I want to do myself sir

#

And then he can do it

#

@fluid blaze why did you bring this prime guy does he know anything about scripting?

regal laurel
#

Bro?

tepid mauve
#

Seems sus

#

Sussy

fluid blaze
tepid mauve
#

seens sus

#

ok bet senpai

regal laurel
#

Learn some scripting then write the script and finger out the problems then if you have error in the script then come back

tepid mauve
#

You are supposed to explain to me

#

first u get the start cframe which is where u r already

#

Explain to me how to do this

#

This is why I opened the ticket

empty salmon
#

cframe

#

angle

tepid mauve
empty salmon
#

you make variable

tepid mauve
#

local yourvariablename = the value

#

What would be the value sir?

empty salmon
#

primarypart

tepid mauve
#

Oh!!

regal laurel
tepid mauve
#

Why is the value primarypart?

tepid mauve
#

So that’s what I’m doing

#

Ohhh I know now

#

local yourvariablename = primarypart

#

What would be my variable name? 🤔

#

@empty salmon

empty salmon
#

If you want the HumanoidRootPart, you need the character

local Players = game:GetService("Players")

local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
``` this only works in the client side
oak crypt
#

dewd

pine sage
#

HumanoidRootPart.CFrame

oak crypt
#

why are there so many decent scripters here

oak crypt
#

what's wrong

tepid mauve
oak crypt
#

yuh where

#

i aint scrolling up

tepid mauve
#

Yay

#

@oak crypt

tepid mauve
#

On my first line

#

Don’t say dumb things

tall lark
#

how is it looking rn? the effect and the code

tepid mauve
#

The effect

tall lark
#

RootPart.CFrame.RightVector * RightVector +
RootPart.CFrame.LookVector * Forward

shouldn't RightVector and Forward actually be numbers instead of Vector3?

#

i mean, just 20 or -20 for RightVector and 10 for Forward

#

not Vector3s

#

@tepid mauve

spring locust
#

All around bad look for a ranker of the server lmao
Refusing to learn and demanding spoonfeeding

lunar daggerBOT
#

studio** You are now Level 4! **studio

severe river
#

what do you expect 😭

tall lark
#

he's like multiplying the Y and Z values of the CFrame.RightVector by 0, so it's only going to be pointing towards the global X axis isn't it?

#

the same with the CFrame.LookVector, instead of actually going towards the place the character is looking it's actually just going towards the Z axis

#

so this is creating a seemingly random path, but what's happening is that it creates a different outcome everytime you move your camera around

spring elm
#

What I'm seeing is you're sitting here waiting to be spoonfed code without the most basic scripting knowledge, while insulting them for trying to help you

#

Quite frankly if I was any of them I would've left by now. I would suggest going to learn some LUAU before attempting to script, because talking to scripters isn't going to do you any good if you don't know what they're saying

pine sage
#

Combine the two

tepid mauve
#

Why did you join my ticket?

#

I didn’t ask

#

I asked for help

tall lark
tepid mauve
#

I just got out the shower

tepid mauve
#

All my job is, is to determine effects

#

Nothing outside of it

tepid mauve
#

i have an issue

#

wait actually

#

do i replace both

#

of them

tall lark
#

yes

#

you don't have to replace them there i think

#

change their values here instead

#

just change it for -20 or 20

#

instead of Vector3.new(-20, 0, 0)

#

actually, what?

tepid mauve
#

?

tall lark
#

nope

#

gimme a second

tepid mauve
#

kk

tall lark
#

local RightVector = Reverse and -20 or 20 -- Adjusted RightVector
local Forward = 20 -- Adjusted Forward

#

this

tepid mauve
#

yes

#

i tested and sadly its still bugged

#

@tall lark

#

waut

#

it actually does kinda work

#

u need to hold Z though

#

if u click it, it does the bug

tall lark
#

what do you mean?

#

what does it look like now?

tall lark
#

what is the problem now?

tepid mauve
#

join

tepid mauve
#

Solved