View difference between Paste ID: m2p1pUBB and pDAECNmW
SHOW: | | - or go back to the newest paste.
1
--[[
2
	made by mr steal yo bork dont edit anything below plz just run script and you will see
3
--]]
4
-- This script has been converted to FE by iPxter
5
6-
p = game.Players.LocalPlayer
6+
7
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
8
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
9
do
10
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
11
	script.Parent = Player.Character
12
13
	--RemoteEvent for communicating
14
	local Event = Instance.new("RemoteEvent")
15
	Event.Name = "UserInput_Event"
16
17
	--Fake event to make stuff like Mouse.KeyDown work
18
	local function fakeEvent()
19
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
20
		t.connect = t.Connect
21
		return t
22
	end
23
24
	--Creating fake input objects with fake variables
25
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
26
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
27
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
28
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
29
	end}
30
	--Merged 2 functions into one by checking amount of arguments
31
	CAS.UnbindAction = CAS.BindAction
32
33
	--This function will trigger the events that have been :Connect()'ed
34
	local function te(self,ev,...)
35
		local t = m[ev]
36
		if t and t._fakeEvent and t.Function then
37
			t.Function(...)
38
		end
39
	end
40
	m.TrigEvent = te
41
	UIS.TrigEvent = te
42
43
	Event.OnServerEvent:Connect(function(plr,io)
44
	    if plr~=Player then return end
45
		if io.isMouse then
46
			m.Target = io.Target
47
			m.Hit = io.Hit
48
		else
49
			local b = io.UserInputState == Enum.UserInputState.Begin
50
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
51
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
52
			end
53
			for _,t in pairs(CAS.Actions) do
54
				for _,k in pairs(t.Keys) do
55
					if k==io.KeyCode then
56
						t.Function(t.Name,io.UserInputState,io)
57
					end
58
				end
59
			end
60
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
61
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
62
	    end
63
	end)
64
	Event.Parent = NLS([==[
65
	local Player = game:GetService("Players").LocalPlayer
66
	local Event = script:WaitForChild("UserInput_Event")
67
68
	local UIS = game:GetService("UserInputService")
69
	local input = function(io,a)
70
		if a then return end
71
		--Since InputObject is a client-side instance, we create and pass table instead
72
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
73
	end
74
	UIS.InputBegan:Connect(input)
75
	UIS.InputEnded:Connect(input)
76
77
	local Mouse = Player:GetMouse()
78
	local h,t
79
	--Give the server mouse data 30 times every second, but only if the values changed
80
	--If player is not moving their mouse, client won't fire events
81
	while wait(1/30) do
82
		if h~=Mouse.Hit or t~=Mouse.Target then
83
			h,t=Mouse.Hit,Mouse.Target
84
			Event:FireServer({isMouse=true,Target=t,Hit=h})
85
		end
86
	end]==],Player.Character)
87
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
88
end
89
90
p = owner
91
t = Instance.new("Tool") 
92
t.Parent = p.Backpack 
93
t.Name = "Sign lololo" 
94
local handlelol = Instance.new("Part") 
95
handlelol.Name = "Handle" 
96
handlelol.Parent = t 
97
handlelol.formFactor = "Plate" 
98
handlelol.BrickColor = BrickColor.new("Brown") 
99
handlelol.Size = Vector3.new(1, 4.5, .5) 
100
handlelol.TopSurface = "Smooth" 
101
handlelol.BottomSurface = "Smooth" 
102
handlelol.Reflectance = 0 
103
handlelol.Material = "Wood"
104
local sign = Instance.new("Part") 
105
sign.Name = "Part" 
106
sign.Parent = t 
107
sign.formFactor = "Plate" 
108
sign.BrickColor = BrickColor.new("Bright bluish green") 
109
sign.Size = Vector3.new(5, 4, 1) 
110
sign.TopSurface = "Smooth" 
111
sign.BottomSurface = "Smooth" 
112
sign.Reflectance = 0 
113
 
114
mesh123 = Instance.new("BlockMesh") 
115
mesh123.Parent = sign 
116
mesh123.Scale = Vector3.new(1.1, 1.1, 0.8) 
117
118
w2 = Instance.new("Weld")
119
w2.Parent = handlelol
120
w2.Part0 = sign
121
w2.Part1 = handlelol
122
w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2.5, 0)
123
-----------------------------------------------------------------------
124
local SurfaceGui = Instance.new("SurfaceGui")
125
local TextBox = Instance.new("TextBox")
126
local ScreenGui = Instance.new("ScreenGui")
127
local TextLabel = Instance.new("TextBox")
128
ScreenGui.Parent = p.PlayerGui
129
TextBox.Parent = ScreenGui
130
TextBox.BackgroundColor3 = Color3.new(0.756863, 0.705882, 1)
131
TextBox.Position = UDim2.new(0, 74, 0, 374)
132
TextBox.Size = UDim2.new(0, 176, 0, 50)
133
TextBox.Font = Enum.Font.Highway
134
TextBox.FontSize = Enum.FontSize.Size28
135
TextBox.Text = "Type text you want here"
136
TextBox.TextSize = 10
137
TextBox.TextWrapped = true
138
TextBox.Visible = false
139
SurfaceGui.Parent = sign
140
SurfaceGui.Face = Enum.NormalId.Front
141
TextLabel.Parent = SurfaceGui
142
TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
143
TextLabel.BackgroundTransparency = 1
144
TextLabel.Size = UDim2.new(0, 800, 0, 600)
145
TextLabel.Font = Enum.Font.SourceSans
146
TextLabel.FontSize = Enum.FontSize.Size96
147
TextLabel.Text = "same"
148
TextLabel.TextColor3 = Color3.new(0.956863, 0.345098, 0.0588235)
149
TextLabel.TextSize = 100
150
TextLabel.TextWrapped = true
151
t.Equipped:connect(function()
152
	TextBox.Visible = true
153
end)
154
155
t.Unequipped:connect(function()
156
	TextBox.Visible = false
157
end)
158
wait(1)
159
TextBox.Changed:connect(function()
160
	TextLabel.Text = TextBox.Text
161
end)