Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What code can i put in this script to make it also give items?

Asked by
nanaluk01 247 Moderation Voter
9 years ago

Places = {Vector3.new(383.4, 254, -630.8), Vector3.new(384.4, 254, -675.6), Vector3.new(328.6, 254, -813.4), Vector3.new(248.4, 254, -788), Vector3.new(257, 254, -655), Vector3.new(380.2, 254, -791.8)} ---Change the figures inside the "("'s to where you want a player to randomly teleport. You can more, too. local Player = script.Parent.Parent.Parent.Parent --------------------------------------Please don't Touch anything under this line unless you know what you are doing.----- function Click() Player.Character:MoveTo(Places[math.random(1,#Places)]) wait() script.Parent.Parent = game.StarterGui script:remove() wait() game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson end script.Parent.MouseButton1Down:connect(Click)

What code and where can I put it to make it give items when the button is clicked? Please help me! Thx ~Nanaluk01

0
Please edit your post to use the Lua code formatting option. BlueTaslem 18071 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Highlight your code and click the blue icon when you edit your post.

Ad

Answer this question