The 'PowerUp' should spawning at the UpperTorso position of the zombie but it will spawning on top of it and when a zombie touches him he goes up but I want that it remain her basic position, demonstration -->
How to fix this?
PowerUp Script:
local RStorageService = game:GetService('ReplicatedStorage')
local LightingService = game:GetService('Lighting')
local SoundService = game:GetService('SoundService')
script.Parent.Touched:Connect(function(h)
local player = game:GetService('Players'):GetPlayerFromCharacter(h.Parent)
if player then
--< My script
end
end)
Rotation Script:
local c = 0
local a = 0
while wait() do
if c < 200 then
script.Parent.Orientation = script.Parent.Orientation + Vector3.new(0, 0.4, 0)
c = c + 1
a = 0
elseif a < 50 then
script.Parent.Orientation = script.Parent.Orientation + Vector3.new(0, -0.8, 0)
a = a + .5
else
c = 0
end
end
PowerUp spawning script:
local position = z.UpperTorso.Position
local PUp
if z.Zombie:FindFirstChild('PowerUp') ~= nil then
PUp = z.Zombie.PowerUp.Value; z.Zombie.PowerUp:Destroy()
local PoUp = RStorageService.PowerUp[PUp]:Clone()
PoUp.Parent = workspace
PoUp.Position = position
end

3 comments
The Zombie has can collide and the part too, do you know how phisics works =D
Not in ROBLOX lol
So I don't can realised my project because ROBLOX update create a real 'Physics'?