local TweenService = game:GetService("TweenService") local part = Instance.new("Part") part.Position = Vector3.new(0, 10, 0) part.Color = Color3.new(0, 0, 0) part.Anchored = false part.Parent = game.Workspace local goal = {39.7, 0.5, -127.5} goal.Position = Vector3.new(10, 10, 0) goal.Color = Color3.new(0, 1, 0) local tweenInfo = TweenInfo.new(5) local tween = TweenService:Create(part, tweenInfo, goal) tween:Play()
that is an example of my code. so it is reaching the spawn location where the player is most likely at and it is not working
It'd pay off to use something like UserInputService.InputBegan to detect when a key is pressed. Here's what that should look like:
UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.(key here) then
Closed as Not Constructive by zadobyte, megukoo, Cynical_Innovation, moo1210, and JesseSong
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?