I made a thing where instead it makes the proximity prompt appear as a UI/2d In screen instead of it floating around as i think it would fit better with my game. But its not animated.
Is there any way i can instert some sort of animation into this when i get close? something like the default prompt where it fades in and out when you get into the proximity.
if it helps this is the script i used for it to appear as a UI:
local ProximityPromptService = game:GetService("ProximityPromptService")
local plr = game:GetService("Players").LocalPlayer
ProximityPromptService.PromptShown:Connect(function(promptInstance: ProximityPrompt)
if promptInstance.Style == Enum.ProximityPromptStyle.Default then return end
local CustomProximity = game.ReplicatedStorage:WaitForChild("UsePrompt"):Clone()
CustomProximity.Frame.TextFrame.ActionText.Text = promptInstance.ActionText
CustomProximity.Frame.TextFrame.ObjectText.Text = promptInstance.ObjectText
CustomProximity.Parent = plr.PlayerGui
promptInstance.PromptHidden:Once(function()
if CustomProximity then
CustomProximity:Destroy()
end
end)
end)
i basically just removed the billboard GUI so it would appear on the screen instead of it floating around.