lava.Touched:Connect(function(touched)
local victim = touched.Parent and touched.Parent:FindFirstChild("Humanoid")
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://12222058"
sound.Volume = 1
sound.RollOffMaxDistance = 100
sound.Parent = workspace
sound:Play()
game.Debris:AddItem(sound, 3)
if victim then
root = victim.Parent:FindFirstChild("HumanoidRootPart")
if root then
print("hi im root")
root:ApplyImpulse(Vector3.new(0, 5000, 0))
end
end
if touched:IsA("BasePart") then
touched.BrickColor = BrickColor.new("Black")
touched.AssemblyLinearVelocity = Vector3.new(2342340,1022340,2342342340)
fire = Instance.new("Fire")
fire.Parent = touched
wait(3)
touched:Destroy()
end
end) ```
#does anyone know why the player isnt being flung man
1 messages · Page 1 of 1 (latest)
Try setting the root's assemblylinearvelocity instead of apply impulse
** You are now Level 1! **
what happens?
like this? :root.AssemblyLinearVelocity = Vector3.new(0, 1000, 0)
yeah like that
** You are now Level 1! **
also when itried to uhhhhhhhh
enter assemvlylinearvelocity
it didnt have tab complete for it
maybe unrelated but yeah
Yeah thats normal
but heres what i did
lava = script.Parent
lava.Touched:Connect(function(touched)
local victim = touched.Parent and touched.Parent:FindFirstChild("Humanoid")
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://12222058"
sound.Volume = 1
sound.RollOffMaxDistance = 100
sound.Parent = workspace
sound:Play()
game.Debris:AddItem(sound, 3)
if victim then
root = victim.Parent:FindFirstChild("HumanoidRootPart")
if root then
print("hi im root")
--root:ApplyImpulse(Vector3.new(0, 5000, 0))
root.AssemblyLinearVelocity = Vector3.new(0, 1000, 0)
end
end
--if touched:IsA("BasePart") and touched.Name ~= "Baseplate" then
-- touched.BrickColor = BrickColor.new("Black")
-- touched.AssemblyLinearVelocity = Vector3.new(2342340,1022340,2342342340)
-- fire = Instance.new("Fire")
-- fire.Parent = touched
-- wait(3)
-- touched:Destroy()
--end
end)
let me try
i commented out the basepart bit
ok it is moving me
but like
Down
and it flung me super far up
after a sec
is the basepart for like non players or?
well its cause like left leg and right leg are baseparts so itll trigger that
yeah
and also apply the insane vector3 onto the whole body
so you can have seperate like events for player and non player?
the vector3 turned insane for testing by the way
its only seperate because i thought i needed to to fling humanoids
I mean its not seperate both will happen if its human
So cant you use elseif so that if its not human smth touches itll do the fire
if victim then
root = victim.Parent:FindFirstChild("HumanoidRootPart")
if root then
print("hi im root")
--root:ApplyImpulse(Vector3.new(0, 5000, 0))
root.AssemblyLinearVelocity = Vector3.new(0, 1000, 0)
end
elseif touched:IsA("BasePart") and touched.Name ~= "Baseplate" then
touched.BrickColor = BrickColor.new("Black")
touched.AssemblyLinearVelocity = Vector3.new(10, 10, 10)
fire = Instance.new("Fire")
fire.Parent = touched
wait(3)
touched:Destroy()
end
like that, so humans will get flung and non humans will turn to fire then get destroyed, if thats what you want?
well it’s meant to set both humans and items to black and set on fire
and fling both
???
if touched:IsA("BasePart") and touched.Name ~= "Baseplate" then
touched.BrickColor = BrickColor.new("Black")
if victim then
victim.Parent:FindFirstChild("HumanoidRootPart").AssemblyLinearVelocity = Vector3.new(0, 1000, 0)
else
touched.AssemblyLinearVelocity = Vector3.new(0, 1000, 0)
end
fire = Instance.new("Fire")
fire.Parenddt = touched
wait(3)
if not victim then touched:Destroy() end
end
like that? if you havent done yet sry fr late reply
i can try that
idk though it seems to be moving me
but down
and like
it flung me up once
hmm
** You are now Level 2! **
Can I dm u
uhhh for what?
