How can I make a part that give you a shield when you are on it?
This is not a request site, make sure you’ve detailed ways you’ve attempted to solve the problem.
local part = game.Workspace:WaitForChild("ShieldGiver") --Change to Actual Part
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChlid("HumanoidRootPart") then
if hit.Parent.HumanoidRootPart:FindFirstChild("ForceField") then
local FF = Instance.new("ForceField")
FF.Parent = hit.Parent.HumanoidRootPart
end
end
end)
2 Likes
thank you,but I’m new to scripting ,I dont know very well how to do this stuff,I’m sorry
Here ya go:
https://education.roblox.com/en-us/resources/intro-to-coding-coding-1-create-a-script
Please study up first before asking vague questions. We can’t help you if we don’t know what you’re asking. Some knowledge of the subject IS REQUIRED when asking a question on the dev forums.
3 Likes