o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
make a roblox script i can put inside of a part that will add a proximity prompt and…
- User
make a roblox script i can put inside of a part that will add a proximity prompt and when activated will make it open up using tweenservice like a door. And from now on dont put any comments / context about or in the script and only do that if the user asks about something
- Assistantlua
local TweenService = game:GetService("TweenService") local part = script.Parent local proximityPrompt = Instance.new("ProximityPrompt") proximityPrompt.Parent = part proximityPrompt.Triggered:Connect(function(player) local tweenInfo = TweenInfo.new(2) local goal = {} goal.CFrame = part.CFrame * CFrame.Angles(0, math.rad(90), 0) local tween = TweenService:Create(part, tweenInfo, goal) tween:Play() end)