Itsyarne
(Itsyarne)
January 23, 2021, 3:35pm
1
I have local script which makes meshparts size from the head and size back making like a wavy effect. But the problem is that when I size these meshparts with tweenservice, it makes the whole character being able to walk through anything. I tried most things to figure out if the script has anything to do with it, but it turns out it’s really just the sizing of the meshpart which causes this weird problem. Is this a bug or is this fixable?
https://gyazo.com/1ea6bf90c8f96b8f97c992ac75e8e33b
local TelepathyWaves = true
local Charger = Variable2
local TotalWaves = 1
local Connection = nil
Connection = Events:FindFirstChild("KineticEvent").OnClientEvent:Connect(function(State, Variable, Variable2, Variable3, Variable4, Variable5)
if State == "TelepathyWavesOut" and Variable == false and Variable2 == Charger then
TotalWaves = TotalWaves - 1
if TotalWaves == 0 then
TelepathyWaves = false
Connection:Disconnect()
end
elseif State == "TelepathyWavesOut" and Variable == true and Variable2 == Charger then
TotalWaves = TotalWaves + 1
end
end)
while TelepathyWaves == true do
if Variable2 == nil or Variable2.Parent == nil or Variable2:FindFirstChild("Head") == nil or Variable2:FindFirstChild("HumanoidRootPart") == nil or Variable3 == nil or Variable3.Parent == nil then
Connection:Disconnect()
break
end
local Waves = game:GetService("ReplicatedStorage"):FindFirstChild("Assets"):FindFirstChild("Telepathy"):FindFirstChild("TelepathyWaves"):Clone()
Waves.Parent = game:GetService("Workspace"):FindFirstChild("Moves")
local Weld = Instance.new("Weld", Waves)
Weld.Part0 = Waves
Weld.Part1 = Variable2:FindFirstChild("Head")
Weld.C0 = Weld.C0 * CFrame.fromEulerAnglesXYZ(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)) * CFrame.new(0, -0.5, 0)
Waves.Transparency = 1
Waves.Size = Waves.Size/3.5
local TweenInformation = TweenInfo.new(
0.2,
Enum.EasingStyle.Circular,
Enum.EasingDirection.Out,
0,
true,
0
)
local TweenGoals = {
Size = Waves.Size * math.random(15, 25)/10,
}
local TweenAnimation = TweenService:Create(Waves, TweenInformation, TweenGoals)
TweenAnimation:Play()
if Variable2:FindFirstChild("Head").Transparency ~= 1 then
local TweenInformation = TweenInfo.new(
0.05,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local TweenGoals = {
Transparency = 0.85,
}
local TweenAnimation = TweenService:Create(Waves, TweenInformation, TweenGoals)
TweenAnimation:Play()
end
spawn(function()
wait(0.05)
if Waves ~= nil and Waves.Parent ~= nil then
local TweenInformation = TweenInfo.new(
0.15,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local TweenGoals = {
Transparency = 1,
}
local TweenAnimation = TweenService:Create(Waves, TweenInformation, TweenGoals)
TweenAnimation:Play()
wait(0.35)
if Waves ~= nil and Waves.Parent ~= nil then
Waves:Destroy()
end
end
end)
wait()
end
2 Likes
x_Lukeex
(Luke)
January 23, 2021, 3:37pm
2
Is it possible to show us the script.
Itsyarne
(Itsyarne)
January 23, 2021, 3:42pm
3
local TelepathyWaves = true
local Charger = Variable2
local TotalWaves = 1
local Connection = nil
Connection = Events:FindFirstChild("KineticEvent").OnClientEvent:Connect(function(State, Variable, Variable2, Variable3, Variable4, Variable5)
if State == "TelepathyWavesOut" and Variable == false and Variable2 == Charger then
TotalWaves = TotalWaves - 1
if TotalWaves == 0 then
TelepathyWaves = false
Connection:Disconnect()
end
elseif State == "TelepathyWavesOut" and Variable == true and Variable2 == Charger then
TotalWaves = TotalWaves + 1
end
end)
while TelepathyWaves == true do
if Variable2 == nil or Variable2.Parent == nil or Variable2:FindFirstChild("Head") == nil or Variable2:FindFirstChild("HumanoidRootPart") == nil or Variable3 == nil or Variable3.Parent == nil then
Connection:Disconnect()
break
end
local Waves = game:GetService("ReplicatedStorage"):FindFirstChild("Assets"):FindFirstChild("Telepathy"):FindFirstChild("TelepathyWaves"):Clone()
Waves.Parent = game:GetService("Workspace"):FindFirstChild("Moves")
local Weld = Instance.new("Weld", Waves)
Weld.Part0 = Waves
Weld.Part1 = Variable2:FindFirstChild("Head")
Weld.C0 = Weld.C0 * CFrame.fromEulerAnglesXYZ(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)) * CFrame.new(0, -0.5, 0)
Waves.Transparency = 1
Waves.Size = Waves.Size/3.5
local TweenInformation = TweenInfo.new(
0.2,
Enum.EasingStyle.Circular,
Enum.EasingDirection.Out,
0,
true,
0
)
local TweenGoals = {
Size = Waves.Size * math.random(15, 25)/10,
}
local TweenAnimation = TweenService:Create(Waves, TweenInformation, TweenGoals)
TweenAnimation:Play()
if Variable2:FindFirstChild("Head").Transparency ~= 1 then
local TweenInformation = TweenInfo.new(
0.05,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local TweenGoals = {
Transparency = 0.85,
}
local TweenAnimation = TweenService:Create(Waves, TweenInformation, TweenGoals)
TweenAnimation:Play()
end
spawn(function()
wait(0.05)
if Waves ~= nil and Waves.Parent ~= nil then
local TweenInformation = TweenInfo.new(
0.15,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local TweenGoals = {
Transparency = 1,
}
local TweenAnimation = TweenService:Create(Waves, TweenInformation, TweenGoals)
TweenAnimation:Play()
wait(0.35)
if Waves ~= nil and Waves.Parent ~= nil then
Waves:Destroy()
end
end
end)
wait()
end
x_Lukeex
(Luke)
January 23, 2021, 3:43pm
4
Bare with me, have you got a link to the game I can access it with.
x_Lukeex
(Luke)
January 23, 2021, 3:44pm
6
So, you are the owner or just a developer.
Itsyarne
(Itsyarne)
January 23, 2021, 3:45pm
7
I am the owner of the game and group
x_Lukeex
(Luke)
January 23, 2021, 3:45pm
8
Okay, have you got a discord? It will be easier for me to explain a few things.
Itsyarne
(Itsyarne)
January 23, 2021, 3:46pm
9
Itsyarne#7349 is my tag, add me
Itsyarne
(Itsyarne)
January 23, 2021, 7:32pm
10
Figured it out myself, I could just put a specialmesh in a part and scale the mesh, instead of sizing a meshpart.
I swear thank you for telling people how to fix this, and not just saying “I figured it out”.
1 Like