Nobie_dev
(Nobie_dev)
August 16, 2023, 9:39pm
#1
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
A tsunami like ability that goes into the direction the player is looking at.
What is the issue? Include screenshots / videos if possible!
Body velocity isn’t working at all. (part isn’t anchored)
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i’ve tried to look on Dev forum if i could fix it.
Lua code:
local Tsunami = game.ServerStorage.TsunamiWave:Clone()
Tsunami.Parent = workspace
Tsunami.CFrame = plr.Character.HumanoidRootPart.CFrame
Tsunami.Anchored = true
local BodyVelocity = Instance.new(“BodyVelocity”, Tsunami)
BodyVelocity.MaxForce = Vector3.new(4000,4000,4000)
BodyVelocity.Velocity = plr.Character.HumanoidRootPart.CFrame.LookVector * 50
BodyVelocity.P = 5000
Tsunami.WaveSound:Play()
Debris:AddItem(Tsunami, 8)
Fusionet
(Fusionet)
August 16, 2023, 9:40pm
#2
It’s because the Tsunami is anchored, you might also want to increase max force.
Nobie_dev
(Nobie_dev)
August 16, 2023, 9:46pm
#3
thanks for the reply. as i said the part isn’t anchored. i tried your suggestion by making the MaxForce to Vector3.new(1,1,1) * math.huge. but it stays still like if it was anchored for some reason.
Mxcentric
(Mxcentric)
August 16, 2023, 9:59pm
#4
Does the tsunami just not move at all?
Also the tsunami seems to be anchored
Nobie_dev
(Nobie_dev)
August 16, 2023, 10:03pm
#5
oh wait, now that i look at the code it seems like i set the anchor property to true. i didn’t notice it at all.
Nobie_dev
(Nobie_dev)
August 16, 2023, 10:08pm
#6
yup, that was the issue. i literally didn’t notice that line. apparently i must have misspelt it when i was setting the anchor property to false via script.
system
(system)
Closed
August 30, 2023, 10:08pm
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.