Pool = script.Parent
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
for i =0,1 do
local Splash = Instance.new("Part")
Splash.Parent = game.Workspace
Splash.Position = human.LeftLeg.Position + Vector3.new(-1,-1,-1)
Splash.TopSurface = "SmoothNoOutlines"
Splash.BottomSurface = "SmoothNoOutlines"
Splash.Transparency = .7
Splash.CanCollide = false
Splash.Shape = "Ball"
Splash.formFactor = "Plate"
Splash.Name = "Footprint"
Splash.BrickColor = BrickColor.new("Really blue")
Splash.Reflectance = 0
Splash.Size = Vector3.new(1,.4,1)
game:GetService("Debris"):AddItem(Splash, .5)
end
end
end
script.Parent.Touched:connect(onTouched)
This script is supposed to spawn a brick to the characters' LeftLeg ONLY. But no matter how much I toy with Vector3, it DOES (mostly) spawn at his left leg, but sometimes it'll also spawn right above the players' shoulders or head. How can I fix this?
Also, how would I go about making the brick spawn at the players' left and right leg? Would it be like this?
Splash.Position = human.LeftLeg and RightLeg.Position + Vector3.new(-1,-1,-1)

2 comments
Thanks dude!!
No Problem